|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.annotations.BorderStyle
public class BorderStyle
BorderStyle state of a PDF annotation. Some values of this class are mutable and do not change the value of the underlying PDF in any way. They are only keep in memory for the duration that the PDF document is open.
| Key | Type | Value | ||||||||||
| Type | name | (Optional) The type of PDF object that this dictionary describes; if present, must be Border for a border style dictionary. | ||||||||||
| W | number | (Optional) The border width in points. If this value is 0, no border is drawn. Default value: 1. | ||||||||||
| S | name | (Optional) The border style:
|
||||||||||
| D | array | (Optional) A dash array defining a pattern of dashes and gaps to be used in drawing a dashed border (border style D above). The dash array is specified in the same format as in the line dash pattern parameter of the graphics state (see "Line Dash Pattern" on page 187). The dash phase is not specified and is assumed to be 0. For example, a D entry of [3 2] specifies a border drawn with 3-point dashes alternating with 2-point gaps. Default value: [3]. |
| Field Summary | |
|---|---|
static java.lang.String |
BORDER_STYLE_BEVELED
Beveled rectangle border style surrounding the annotation |
static java.lang.String |
BORDER_STYLE_DASHED
Dashed rectangle border style surrounding the annotation |
static java.lang.String |
BORDER_STYLE_INSET
Inset rectangle border style surrounding the annotation |
static Name |
BORDER_STYLE_KEY
|
static java.lang.String |
BORDER_STYLE_SOLID
Solid rectangle border style surrounding the annotation |
static java.lang.String |
BORDER_STYLE_UNDERLINE
Underline rectangle border style surrounding the annotation |
static Name |
BORDER_WIDTH_KEY
|
static java.awt.Color |
DARK
|
static java.awt.Color |
DARKEST
|
static java.awt.Color |
LIGHT
|
static java.awt.Color |
LIGHTEST
|
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, inited, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
BorderStyle()
|
|
BorderStyle(Library l,
java.util.Hashtable h)
Creates a new instance of a BorderStyle. |
|
| Method Summary | |
|---|---|
java.lang.String |
getBorderStyle()
|
float[] |
getDashArray()
|
float |
getStrokeWidth()
|
boolean |
isStyleBeveled()
|
boolean |
isStyleDashed()
|
boolean |
isStyleInset()
|
boolean |
isStyleSolid()
|
boolean |
isStyleUnderline()
|
void |
setBorderStyle(java.lang.String lineStyle)
Sets the borderStyle type for this instance. |
void |
setDashArray(float[] dashArray)
|
void |
setStrokeWidth(float strokeWidth)
Sets the stroke width of the border style. |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Name BORDER_STYLE_KEY
public static final Name BORDER_WIDTH_KEY
public static final java.awt.Color DARKEST
public static final java.awt.Color DARK
public static final java.awt.Color LIGHT
public static final java.awt.Color LIGHTEST
public static final java.lang.String BORDER_STYLE_SOLID
public static final java.lang.String BORDER_STYLE_DASHED
public static final java.lang.String BORDER_STYLE_BEVELED
public static final java.lang.String BORDER_STYLE_INSET
public static final java.lang.String BORDER_STYLE_UNDERLINE
| Constructor Detail |
|---|
public BorderStyle(Library l,
java.util.Hashtable h)
l - document library.h - dictionary entries.public BorderStyle()
| Method Detail |
|---|
public float getStrokeWidth()
public java.lang.String getBorderStyle()
public void setStrokeWidth(float strokeWidth)
strokeWidth - float value representing width.public void setBorderStyle(java.lang.String lineStyle)
lineStyle - border style type as defined by, BORDER_STYLE_SOLID,
BORDER_STYLE_DASHED, BORDER_STYLE_BEVELED, BORDER_STYLE_INSET,
BORDER_STYLE_UNDERLINEpublic boolean isStyleSolid()
public boolean isStyleDashed()
public boolean isStyleBeveled()
public boolean isStyleInset()
public boolean isStyleUnderline()
public void setDashArray(float[] dashArray)
public float[] getDashArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||