public static class Annot.BorderStyle
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
e_beveled
The Constant e_beveled.
|
static int |
e_dashed
The Constant e_dashed.
|
static int |
e_inset
The Constant e_inset.
|
static int |
e_solid
The border style options.
|
static int |
e_underline
The Constant e_underline.
|
Constructor and Description |
---|
BorderStyle(int s,
int b_width,
int b_hr,
int b_vr)
Creates a new border style with given parameters.
|
BorderStyle(int s,
int b_width,
int b_hr,
int b_vr,
double[] b_dash)
Creates a new border style with given parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Frees the native memory of the object.
|
double[] |
getDash()
Get the dash.
|
int |
getHR()
Get the hR.
|
int |
getStyle()
Get the style.
|
int |
getVR()
Get the vR.
|
double |
getWidth()
Get the width.
|
void |
setDash(double[] dash)
Set the border dash pattern.
|
void |
setHR(int hr)
Set horizontal corner radius.
|
void |
setStyle(int style)
Set the border style.
|
void |
setVR(int vr)
Set vertical corner radius.
|
void |
setWidth(double width)
Set the border width.
|
public static final int e_solid
public static final int e_dashed
public static final int e_beveled
public static final int e_inset
public static final int e_underline
public BorderStyle(int s, int b_width, int b_hr, int b_vr) throws PDFNetException
Note: If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.
s
- The border style.b_width
- The border width expressed in the default user space.b_hr
- The horizontal corner radius expressed in the default user space.b_vr
- The vertical corner radius expressed in the default user space.
in drawing the border. The dash array is specified in the same format as in the line
dash pattern parameter of the graphics state except that the phase is assumed to be 0.PDFNetException
public BorderStyle(int s, int b_width, int b_hr, int b_vr, double[] b_dash) throws PDFNetException
Note: If the corner radii are 0, the border has square (not rounded) corners; if the border width is 0, no border is drawn.
s
- The border style.b_width
- The border width expressed in the default user space.b_hr
- The horizontal corner radius expressed in the default user space.b_vr
- The vertical corner radius expressed in the default user space.b_dash
- An array of numbers defining a pattern of dashes and gaps to be used
in drawing the border. The dash array is specified in the same format as in the line
dash pattern parameter of the graphics state except that the phase is assumed to be 0.PDFNetException
public void destroy() throws PDFNetException
PDFNetException
public int getStyle() throws PDFNetException
PDFNetException
public void setStyle(int style) throws PDFNetException
style
- the new stylePDFNetException
public int getHR() throws PDFNetException
PDFNetException
public void setHR(int hr) throws PDFNetException
hr
- the new hRPDFNetException
public int getVR() throws PDFNetException
PDFNetException
public void setVR(int vr) throws PDFNetException
vr
- the new vRPDFNetException
public double getWidth() throws PDFNetException
PDFNetException
public void setWidth(double width) throws PDFNetException
width
- the new widthPDFNetException
public double[] getDash() throws PDFNetException
PDFNetException
public void setDash(double[] dash) throws PDFNetException
dash
- the new dashPDFNetException