Method from org.apache.pdfbox.pdmodel.interactive.annotation.PDBorderStyleDictionary Detail: |
public COSBase getCOSObject() {
return dictionary;
}
|
public PDLineDashPattern getDashStyle() {
COSArray d = (COSArray) getDictionary().getDictionaryObject( "D" );
if (d == null)
{
d = new COSArray();
d.add( COSInteger.THREE );
getDictionary().setItem( "D", d );
}
return new PDLineDashPattern( d, 0 );
}
This will retrieve the dash style used for drawing the border. |
public COSDictionary getDictionary() {
return dictionary;
}
|
public String getStyle() {
return getDictionary().getNameAsString( "S", STYLE_SOLID );
}
This will retrieve the border style, see the STYLE_* constants for valid
values. |
public float getWidth() {
return getDictionary().getFloat( "W", 1 );
}
This will retrieve the border width in points, 0 = no border. |
public void setDashStyle(PDLineDashPattern d) {
COSArray array = null;
if( d != null )
{
array = d.getCOSDashPattern();
}
getDictionary().setItem( "D", array );
}
This will set the dash style used for drawing the border. |
public void setStyle(String s) {
getDictionary().setName( "S", s );
}
This will set the border style, see the STYLE_* constants for valid values. |
public void setWidth(float w) {
getDictionary().setFloat( "W", w );
}
This will set the border width in points, 0 = no border. |