Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotationSquareCircle Detail: |
public PDBorderEffectDictionary getBorderEffect() {
COSDictionary be = (COSDictionary) getDictionary().getDictionaryObject( "BE" );
if (be != null)
{
return new PDBorderEffectDictionary( be );
}
else
{
return null;
}
}
This will retrieve the border effect dictionary, specifying effects to be
applied used in drawing the line. |
public PDBorderStyleDictionary getBorderStyle() {
COSDictionary bs = (COSDictionary) this.getDictionary().getItem(
COSName.getPDFName( "BS" ) );
if (bs != null)
{
return new PDBorderStyleDictionary( bs );
}
else
{
return null;
}
}
This will retrieve the border style dictionary, specifying the width and
dash pattern used in drawing the line. |
public PDGamma getInteriorColour() {
COSArray ic = (COSArray) getDictionary().getItem(
COSName.getPDFName( "IC" ) );
if (ic != null)
{
return new PDGamma( ic );
}
else
{
return null;
}
}
This will retrieve the interior colour of the drawn area
Colour is in DeviceRGB colourspace. |
public PDRectangle getRectDifference() {
COSArray rd = (COSArray) getDictionary().getDictionaryObject( "RD" );
if (rd != null)
{
return new PDRectangle( rd );
}
else
{
return null;
}
}
This will get the rectangle difference rectangle. Giving the difference
between the annotations rectangle and where the drawing occurs.
(To take account of any effects applied through the BE entry forexample) |
public String getSubtype() {
return getDictionary().getNameAsString( COSName.SUBTYPE);
}
This will retrieve the sub type (and hence appearance, AP taking precedence)
For this annotation. |
public void setBorderEffect(PDBorderEffectDictionary be) {
getDictionary().setItem( "BE", be );
}
This will set the border effect dictionary, specifying effects to be applied
when drawing the line. |
public void setBorderStyle(PDBorderStyleDictionary bs) {
this.getDictionary().setItem( "BS", bs);
}
This will set the border style dictionary, specifying the width and dash
pattern used in drawing the line. |
public void setInteriorColour(PDGamma ic) {
getDictionary().setItem( "IC", ic );
}
This will set interior colour of the drawn area
Colour is in DeviceRGB colourspace. |
public void setRectDifference(PDRectangle rd) {
getDictionary().setItem( "RD", rd );
}
This will set the rectangle difference rectangle. Giving the difference
between the annotations rectangle and where the drawing occurs.
(To take account of any effects applied through the BE entry forexample) |
public void setSubtype(String subType) {
getDictionary().setName( COSName.SUBTYPE, subType );
}
This will set the sub type (and hence appearance, AP taking precedence) For
this annotation. See the SUB_TYPE_XXX constants for valid values. |