public class PDBorderStyleDictionary extends java.lang.Object implements COSObjectable
Modifier and Type | Field and Description |
---|---|
private COSDictionary |
dictionary |
static java.lang.String |
STYLE_BEVELED
Constant for the name of a beveled style.
|
static java.lang.String |
STYLE_DASHED
Constant for the name of a dashed style.
|
static java.lang.String |
STYLE_INSET
Constant for the name of a inset style.
|
static java.lang.String |
STYLE_SOLID
Constant for the name of a solid style.
|
static java.lang.String |
STYLE_UNDERLINE
Constant for the name of a underline style.
|
Constructor and Description |
---|
PDBorderStyleDictionary()
Constructor.
|
PDBorderStyleDictionary(COSDictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
COSDictionary |
getCOSObject()
returns the dictionary.
|
PDLineDashPattern |
getDashStyle()
This will retrieve the dash style used for drawing the border.
|
java.lang.String |
getStyle()
This will retrieve the border style, see the STYLE_* constants for valid values.
|
float |
getWidth()
This will retrieve the border width in points, 0 = no border.
|
void |
setDashStyle(COSArray dashArray)
This will set the dash style used for drawing the border.
|
void |
setStyle(java.lang.String s)
This will set the border style, see the STYLE_* constants for valid values.
|
void |
setWidth(float w)
This will set the border width in points, 0 = no border.
|
public static final java.lang.String STYLE_SOLID
public static final java.lang.String STYLE_DASHED
public static final java.lang.String STYLE_BEVELED
public static final java.lang.String STYLE_INSET
public static final java.lang.String STYLE_UNDERLINE
private final COSDictionary dictionary
public PDBorderStyleDictionary()
public PDBorderStyleDictionary(COSDictionary dict)
dict
- a border style dictionary.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public void setWidth(float w)
In Adobe Acrobat DC, the values are shown as "0 = Invisible, 1 = Thin, 2 = Medium, 3 = Thick" for widget and link annotations.
w
- float the width in pointspublic float getWidth()
public void setStyle(java.lang.String s)
s
- the border style to usepublic java.lang.String getStyle()
public void setDashStyle(COSArray dashArray)
dashArray
- the dash style to usepublic PDLineDashPattern getDashStyle()