public class CPDFLineAttr extends CPDFAnnotAttrBase implements IAttributeCallback
The attribute was used when creating Line annotation
| Modifier and Type | Method and Description |
|---|---|
int |
getBorderAlpha()
Gets the opacity of Line annotation, opacity range 0-255
|
int |
getBorderColor()
Gets the color of Line annotation, color value range 0x000000-0xFFFFFFF
|
CPDFBorderStyle |
getBorderStyle()
Gets the line style of Line annotation.
|
float |
getBorderWidth()
Gets the line width of Line annotation
|
int |
getFillAlpha()
Gets the fill opacity of Line annotation, opacity range 0-255
|
int |
getFillColor()
Gets the fill color of Line annotation, color value range 0x000000-0xFFFFFF
|
CPDFLineAnnotation.LineType |
getHeadType()
Gets the type of line head, more:
CPDFLineAnnotation.LineType |
CPDFLineAnnotation.LineType |
getTailType()
Gets the type of line tail, more:
CPDFLineAnnotation.LineType |
void |
onload()
Loads the attribute of Line annotation, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of Line annotation, this method does not need to be called by user.
|
void |
setBorderAlpha(int borderAlpha)
Sets the opacity of Line annotation, opacity range 0-255
|
void |
setBorderColor(int borderColor)
Sets the color of Line annotation, color value range 0x000000-0xFFFFFFF
|
void |
setBorderStyle(CPDFBorderStyle borderStyle)
Sets the line style of Line annotation.
|
void |
setBorderWidth(float borderWidth)
Sets the line width of Line annotation
|
void |
setFillAlpha(int fillAlpha)
Sets the fill opacity of Line annotation, opacity range 0-255
|
void |
setFillColor(int fillColor)
Sets the fill color of Line annotation, color value range 0x000000-0xFFFFFFF
|
void |
setLineType(CPDFLineAnnotation.LineType headType,
CPDFLineAnnotation.LineType tailType)
Sets the type of line head and tail, more:
CPDFLineAnnotation.LineType |
public int getBorderColor()
public void setBorderColor(int borderColor)
borderColor - Color, color value range 0x000000-0xFFFFFFFpublic int getBorderAlpha()
public void setBorderAlpha(int borderAlpha)
borderAlpha - Opacity, range 0-255public int getFillColor()
public void setFillColor(int fillColor)
fillColor - Fill color, color value range 0x000000-0xFFFFFFFpublic int getFillAlpha()
public void setFillAlpha(int fillAlpha)
fillAlpha - Fill opacity , range 0-255public float getBorderWidth()
public void setBorderWidth(float borderWidth)
borderWidth - Line widthpublic CPDFLineAnnotation.LineType getHeadType()
CPDFLineAnnotation.LineTypeCPDFLineAnnotation.LineTypepublic CPDFLineAnnotation.LineType getTailType()
CPDFLineAnnotation.LineTypeCPDFLineAnnotation.LineTypepublic void setLineType(CPDFLineAnnotation.LineType headType, CPDFLineAnnotation.LineType tailType)
CPDFLineAnnotation.LineTypeheadType - Head type, more: CPDFLineAnnotation.LineTypetailType - Tail type, more: CPDFLineAnnotation.LineTypepublic CPDFBorderStyle getBorderStyle()
public void setBorderStyle(CPDFBorderStyle borderStyle)
borderStyle - Line style.public void onload()
onload in interface IAttributeCallbackpublic void onstore()
onstore in interface IAttributeCallback