public interface Annotation
Modifier and Type | Field and Description |
---|---|
static char |
BORDERSTYLE_BEVELED |
static char |
BORDERSTYLE_DASHED |
static char |
BORDERSTYLE_INSETS |
static char |
BORDERSTYLE_SOLID |
static char |
BORDERSTYLE_UNDERLINE |
static int |
FLAGS_HIDDEN |
static int |
FLAGS_INVISIBLE |
static int |
FLAGS_LOCKED |
static int |
FLAGS_NOROTATE |
static int |
FLAGS_NOVIEW |
static int |
FLAGS_NOZOOM |
static int |
FLAGS_PRINTABLE |
static int |
FLAGS_READONLY |
Modifier and Type | Method and Description |
---|---|
java.util.List<Action> |
getActions(PDFPage parentPage)
Returns a list of actions to perform when this annotation is 'activated'
|
int |
getAlpha()
Gets the annotation's alpha (0-255).
|
char |
getBorderStyle()
Gets this annotation's border style.
|
float |
getBorderWidth()
Gets this annotation's border width.
|
int |
getColor()
Returns the annotation's color.
|
java.lang.String |
getContents()
Returns the annotation's contents.
|
java.util.Date |
getCreationDate()
Returns the annotation's creation date.
|
java.lang.String |
getCreator()
Returns the annotation's creator.
|
Picture |
getDrawingPicture()
Returns a Picture recording of the annotation.
|
int |
getFlags()
Returns this annotation's flags.
|
java.lang.String |
getName()
Returns the annotation's name.
|
PDFPage |
getPage()
Gets the page this Annotation is on.
|
RectF |
getRectangle()
Gets the annotation's rectangle.
|
java.lang.String |
getSubtype()
Gets the annotation's subtype string.
|
TriggerActions |
getTriggerActions()
Returns a list of mouse related actions associated with this annotation.
|
boolean |
isHidden()
Returns the value of the HIDDEN flag.
|
boolean |
isInvisible()
Returns the value of the INVISIBLE flag.
|
boolean |
isLocked()
Returns the value of the LOCKED flag.
|
boolean |
isNoRotate()
Returns the value of the NOROTATE flag.
|
boolean |
isNoView()
Returns the value of the NOVIEW flag.
|
boolean |
isNoZoom()
Returns the value of the NOZOOM flag.
|
boolean |
isPrintable()
Returns the value of the PRINTABLE flag.
|
boolean |
isReadOnly()
Returns the value of the READONLY flag.
|
void |
paint(Canvas c,
boolean hasFocus)
Paints this annotation to a graphics object.
|
void |
print(Canvas c)
Prints this annotation to a graphics object.
|
void |
setActions(java.util.List<Action> actions,
PDFPage page)
Sets this annotation's actions.
|
void |
setAlpha(int c)
Sets the annotation's alpha .
|
void |
setBorderStyle(char borderStyle)
Sets the annotation's border syle.
|
void |
setBorderWidth(float borderWidth)
Sets the annotation's border width.
|
void |
setColor(int c)
Sets the annotation's color.
|
void |
setCreationDate(java.util.Date creationDate)
Sets the creation date.
|
void |
setCreator(java.lang.String creator)
Sets the creator.
|
void |
setFlags(int flags)
Sets this annotation's flags: An annotation contains a set of flags
that describe how the annotation is handled during display and printing.
|
void |
setHidden(boolean hidden)
Sets this Annotation's HIDDEN flag.
|
void |
setInvisible(boolean invisible)
Sets the value of the INVISIBLE flag.
|
void |
setLayer(Layer layer)
Sets the layer that this annotation belongs to.
|
void |
setLocked(boolean locked)
Sets the value of the LOCKED flag.
|
void |
setName(java.lang.String name)
Sets the annotation's name.
|
void |
setNoRotate(boolean noRotate)
Sets the value of the NOROTATE flag.
|
void |
setNoView(boolean noView)
Sets the value of the NOVIEW flag.
|
void |
setNoZoom(boolean noZoom)
Sets the value of the NOZOOM flag.
|
void |
setPrintable(boolean printable)
Sets the value of the PRINTABLE flag.
|
void |
setReadOnly(boolean readOnly)
Sets the value of the READONLY flag.
|
void |
setRectangle(RectF rectangle)
Sets the annotation's rectangle.
|
void |
setSubtype(java.lang.String subtype)
Deprecated.
This method should not have been included in the api, calling it will do nothing. It will be removed in the future.
|
void |
setTriggerActions(TriggerActions tActions)
Sets the mouse trigger actions for this annotation.
|
void |
shiftRectangle(float deltaX,
float deltaY)
Shifts the annotation's rectangle in MediaBox coordinates.
|
static final char BORDERSTYLE_SOLID
static final char BORDERSTYLE_DASHED
static final char BORDERSTYLE_BEVELED
static final char BORDERSTYLE_INSETS
static final char BORDERSTYLE_UNDERLINE
static final int FLAGS_INVISIBLE
static final int FLAGS_HIDDEN
static final int FLAGS_PRINTABLE
static final int FLAGS_NOZOOM
static final int FLAGS_NOROTATE
static final int FLAGS_NOVIEW
static final int FLAGS_READONLY
static final int FLAGS_LOCKED
void paint(Canvas c, boolean hasFocus)
c
- The graphics object to paint the annotation to.void print(Canvas c)
c
- The graphics object to use when drawing.java.lang.String getSubtype()
void setSubtype(java.lang.String subtype)
float getBorderWidth()
void setBorderWidth(float borderWidth)
borderWidth
- Width of the border.char getBorderStyle()
void setBorderStyle(char borderStyle)
borderStyle
- Style of the border.java.util.List<Action> getActions(PDFPage parentPage) throws PDFException
The
- Page containing the actions to be retrievedPDFException
void setFlags(int flags)
flags
- The annotation's or'ed flags.int getFlags()
boolean isInvisible()
void setInvisible(boolean invisible)
invisible
- The new value for the INVISIBLE flag.boolean isHidden()
void setHidden(boolean hidden)
hidden
- The new value of the HIDDEN flag.boolean isPrintable()
void setPrintable(boolean printable)
printable
- The new value for the PRINTABLE flag.boolean isNoZoom()
void setNoZoom(boolean noZoom)
noZoom
- The new value for the NOZOOM flag.boolean isNoRotate()
void setNoRotate(boolean noRotate)
noRotate
- The new value for the NOROTATE flag.boolean isNoView()
void setNoView(boolean noView)
noView
- The new value for the NOVIEW flag.boolean isReadOnly()
void setReadOnly(boolean readOnly)
readOnly
- The new value for the READONLY flag.boolean isLocked()
void setLocked(boolean locked)
locked
- The new value for the LCCKED flag.int getColor()
void setColor(int c)
c
- The new color.void setAlpha(int c)
c
- The new alpha, between 0-255.int getAlpha()
TriggerActions getTriggerActions()
void setTriggerActions(TriggerActions tActions)
tActions
- A TriggerActions object containing list of actions for the different mouse events.void shiftRectangle(float deltaX, float deltaY)
deltaX
- the shift in the x axis.deltaY
- the shift in the y axis.RectF getRectangle()
void setRectangle(RectF rectangle)
rectangle
- The new location of the annotation on the page.java.lang.String getContents()
java.lang.String getName()
void setName(java.lang.String name)
name
- The new annotation's name.Picture getDrawingPicture()
java.util.Date getCreationDate()
java.lang.String getCreator()
void setCreationDate(java.util.Date creationDate)
creationDate
- The annotation's creation date.void setCreator(java.lang.String creator)
creator
- The annotation's creator.void setLayer(Layer layer)
layer
- The parent layer.void setActions(java.util.List<Action> actions, PDFPage page) throws PDFException
actions
- The list of actions.PDFException
PDFPage getPage()