public interface Annotation
Modifier and Type | Field and Description |
---|---|
static char |
BORDERSTYLE_BEVELED |
static char |
BORDERSTYLE_CLOUD |
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_LOCKEDCONTENTS |
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 |
---|---|
List<Action> |
getActions()
Returns a list of actions to perform when this annotation is 'activated'
|
AnnotationComponent |
getAnnotationComponent()
Returns the component associated with this annotation on the screen.
|
char |
getBorderStyle()
Gets this annotation's border style.
|
double |
getBorderWidth()
Gets this annotation's border width.
|
AnnotationCheckmarkStatus |
getCheckmarkStatus()
Returns the annotation's marked status.
|
Color |
getColor()
Returns the annotation's color.
|
JComponent |
getComponent()
Returns the component associated with this annotation on the screen.
|
String |
getContents()
Returns the annotation's contents.
|
String |
getCreator()
Returns the annotation's creator.
|
int |
getFlags()
Returns this annotation's flags.
|
Annotation |
getIRTAnnotation()
The annotation that this annotation is "in reply to." The relationship
between the two annotations is either a group or a reply.
|
Date |
getModifiedDate()
Returns the date when the annotation was most recently modified.
|
String |
getName()
Returns the annotation's name.
|
float |
getOpacity()
Returns the annotation's opacity.
|
int |
getPageIndex()
Returns the index of the page in which this annotation is located.
|
Rectangle2D |
getRectangle()
Gets the annotation's rectangle.
|
Vector<AnnotationReviewStatus> |
getReviewHistory()
Returns a list of
AnnotationReviewStatus objects. |
String |
getSubject()
Gets the subject field for this annotation.
|
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 |
isIRTGroup()
Returns true if the annotation is grouped with the IRT annotation.
|
boolean |
isLocked()
Returns the value of the LOCKED flag.
|
boolean |
isLockedContents()
Returns the value of the LOCKEDCONTENTS 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(Graphics g)
Paints this annotation to a graphics object.
|
void |
print(Graphics g)
Prints this annotation to a graphics object.
|
void |
revalidate()
Revalidates this annotation.
|
void |
setActions(List<? extends Action> actions)
Sets this annotation's actions.
|
void |
setBorderStyle(char borderStyle)
Sets the annotation's border style.
|
void |
setBorderWidth(double borderWidth)
Sets the annotation's border width.
|
void |
setColor(Color c)
Sets the annotation's color.
|
void |
setComponent(JComponent component)
Sets the component associated with this annotation on the screen.
|
void |
setComponentVisible(boolean visible)
Sets the visibility of the component associated with this annotation on the screen.
|
void |
setCreator(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 |
setLockedContents(boolean locked)
Sets the value of the LOCKEDCONTENTS flag.
|
void |
setModifiedDate(Date modifiedDate)
Sets the annotation's modified date.
|
void |
setName(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 |
setOpacity(float opacity)
Sets the annotation's opacity.
|
void |
setPrintable(boolean printable)
Sets the value of the PRINTABLE flag.
|
void |
setReadOnly(boolean readOnly)
Sets the value of the READONLY flag.
|
void |
setRectangle(Rectangle2D rectangle)
Sets the annotation's rectangle.
|
void |
setSubject(String subject)
Sets the subject field for this annotation.
|
void |
setTriggerActions(TriggerActions tActions)
Sets the mouse trigger actions for this annotation.
|
void |
shiftRectangle(double deltaX,
double 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 char BORDERSTYLE_CLOUD
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
static final int FLAGS_LOCKEDCONTENTS
void paint(Graphics g)
g
- The graphics object to paint the annotation to.void print(Graphics g)
g
- The graphics object to use when drawing.void revalidate()
String getSubtype()
double getBorderWidth()
void setBorderWidth(double borderWidth)
borderWidth
- Width of the border.char getBorderStyle()
void setBorderStyle(char borderStyle)
borderStyle
- Style of the border.List<Action> getActions()
void setActions(List<? extends Action> actions)
actions
- The list of actions.void setComponentVisible(boolean visible)
visible
- The new value of the components visibility.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 LOCKED flag.boolean isLockedContents()
void setLockedContents(boolean locked)
locked
- The new value for the LOCKEDCONTENTS flag.Color getColor()
void setColor(Color c)
c
- The new color.AnnotationComponent getAnnotationComponent()
JComponent getComponent()
void setComponent(JComponent component)
component
- The annotation's component.TriggerActions getTriggerActions()
void setTriggerActions(TriggerActions tActions)
tActions
- A TriggerActions object containing list of actions for the different mouse events.void shiftRectangle(double deltaX, double deltaY)
deltaX
- the shift in the x axis.deltaY
- the shift in the y axis.Rectangle2D getRectangle()
void setRectangle(Rectangle2D rectangle)
rectangle
- The new location of the annotation on the page.String getContents()
String getName()
void setName(String name)
name
- The new annotation's name.float getOpacity()
void setOpacity(float opacity)
opacity
- The annotation's opacity.Date getModifiedDate()
Note: This method will return null
if the
annotation does not have a modified date.
String getCreator()
void setModifiedDate(Date modifiedDate)
modifiedDate
- The annotation's modified datevoid setCreator(String creator)
creator
- The annotation's creator.void setLayer(Layer layer)
layer
- The parent layer.void setSubject(String subject)
subject
- The subjectString getSubject()
Vector<AnnotationReviewStatus> getReviewHistory()
AnnotationReviewStatus
objects. The list will be empty if the Annotation has no review history.AnnotationCheckmarkStatus getCheckmarkStatus()
int getPageIndex()
Annotation getIRTAnnotation()
isIRTGroup()
boolean isIRTGroup()