org.pdfbox.pdmodel.interactive.annotation
Class PDBorderStyleDictionary
java.lang.Object
org.pdfbox.pdmodel.interactive.annotation.PDBorderStyleDictionary
- COSObjectable
public class PDBorderStyleDictionary
extends java.lang.Object
This class represents a PDF /BS entry the border style dictionary.
static String | STYLE_BEVELED - Constant for the name of a beveled style.
|
static String | STYLE_DASHED - Constant for the name of a dashed style.
|
static String | STYLE_INSET - Constant for the name of a inset style.
|
static String | STYLE_SOLID - Constant for the name of a solid style.
|
static String | STYLE_UNDERLINE - Constant for the name of a underline style.
|
STYLE_BEVELED
public static final String STYLE_BEVELED
Constant for the name of a beveled style.
STYLE_DASHED
public static final String STYLE_DASHED
Constant for the name of a dashed style.
STYLE_INSET
public static final String STYLE_INSET
Constant for the name of a inset style.
STYLE_SOLID
public static final String STYLE_SOLID
Constant for the name of a solid style.
STYLE_UNDERLINE
public static final String STYLE_UNDERLINE
Constant for the name of a underline style.
PDBorderStyleDictionary
public PDBorderStyleDictionary()
Constructor.
PDBorderStyleDictionary
public PDBorderStyleDictionary(COSDictionary dict)
Constructor.
dict
- a border style dictionary.
getDashStyle
public PDLineDashPattern getDashStyle()
This will retrieve the dash style used for drawing the border.
- the dash style of the border
getDictionary
public COSDictionary getDictionary()
returns the dictionary.
getStyle
public String getStyle()
This will retrieve the border style, see the STYLE_* constants for valid
values.
getWidth
public float getWidth()
This will retrieve the border width in points, 0 = no border.
- flaot the width of the border in points
setDashStyle
public void setDashStyle(PDLineDashPattern d)
This will set the dash style used for drawing the border.
d
- the dash style to use
setStyle
public void setStyle(String s)
This will set the border style, see the STYLE_* constants for valid values.
s
- the border style to use
setWidth
public void setWidth(float w)
This will set the border width in points, 0 = no border.
w
- float the width in points