public class CPDFInkAttr extends CPDFAnnotAttrBase implements IAttributeCallback
The attribute was used when creating Ink annotation
Modifier and Type | Method and Description |
---|---|
int |
getAlpha()
Gets the opacity of Ink annotation, opacity range 0-255
|
float |
getBorderWidth()
Gets the line width of Ink annotation.
|
int |
getColor()
Gets the color of Ink annotation, color value range 0x000000-0xFFFFFFF
|
float |
getEraseWidth()
Gets the eraser width of Ink annotation.
|
void |
onload()
Loads the attribute of Ink annotation, this method does not need to be called by user.
|
void |
onstore()
Saves the attribute of Ink annotation, this method does not need to be called by user.
|
void |
setAlpha(int alpha)
Sets the opacity of Ink annotation, opacity range 0-255
|
void |
setBorderWidth(float borderWidth)
Sets the line width of Ink annotation.
|
void |
setColor(int color)
Sets the color of Ink annotation, color value range 0x000000-0xFFFFFFF
|
void |
setEraseWidth(float eraseWidth)
Sets the eraser width of Ink annotation.
|
public int getColor()
public void setColor(int color)
color
- Color, color value range 0x000000-0xFFFFFFFpublic int getAlpha()
public void setAlpha(int alpha)
alpha
- Opacity, range 0-255public float getBorderWidth()
public void setBorderWidth(float borderWidth)
borderWidth
- Line width.public float getEraseWidth()
public void setEraseWidth(float eraseWidth)
eraseWidth
- Eraser width.public void onload()
onload
in interface IAttributeCallback
public void onstore()
onstore
in interface IAttributeCallback