|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface used to represent a PDF annotation.
| Field Summary | |
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
|
| Method Summary | |
List |
getActions()
Returns a list of actions to perform when this annotation is 'activated' |
char |
getBorderStyle()
Gets this annotation's border style. |
double |
getBorderWidth()
Gets this annotation's border width. |
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. |
Date |
getCreationDate()
Returns the annotation's creation date. |
String |
getCreator()
Returns the annotation's creator. |
int |
getFlags()
Returns this annotation's flags. |
String |
getName()
Returns the annotation's name. |
float |
getOpacity()
Returns the annotation's opacity. |
Rectangle2D |
getRectangle()
Gets the annotation's rectangle. |
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(Graphics g)
Paints this annotation to a graphics object. |
void |
paint(Graphics g,
boolean hasFocus)
Deprecated. in favor of Paint (Graphics g). This method is still available, but the boolean is ignored. |
void |
print(Graphics g)
Prints this annotation to a graphics object. |
void |
revalidate()
Revalidates this annotation. |
void |
setActions(List actions)
Sets this annotation's actions. |
void |
setBorderStyle(char borderStyle)
Sets the annotation's border syle. |
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 |
setCreationDate(Date creationDate)
Sets the creation date. |
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 |
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 |
setSubtype(String subtype)
Sets the annotation's subtype string. |
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. |
| Field Detail |
public static final char BORDERSTYLE_SOLID
public static final char BORDERSTYLE_DASHED
public static final char BORDERSTYLE_BEVELED
public static final char BORDERSTYLE_INSETS
public static final char BORDERSTYLE_UNDERLINE
public static final int FLAGS_INVISIBLE
public static final int FLAGS_HIDDEN
public static final int FLAGS_PRINTABLE
public static final int FLAGS_NOZOOM
public static final int FLAGS_NOROTATE
public static final int FLAGS_NOVIEW
public static final int FLAGS_READONLY
public static final int FLAGS_LOCKED
| Method Detail |
public void paint(Graphics g,
boolean hasFocus)
g - The graphics object to paint the annotation to.public void paint(Graphics g)
g - The graphics object to paint the annotation to.public void print(Graphics g)
g - The graphics object to use when drawing.public void revalidate()
public String getSubtype()
public void setSubtype(String subtype)
subtype - The annotation subtype.public double getBorderWidth()
public void setBorderWidth(double borderWidth)
borderWidth - Width of the border.public char getBorderStyle()
public void setBorderStyle(char borderStyle)
borderStyle - Style of the border.public List getActions()
public void setActions(List actions)
actions - The list of actions.public void setComponentVisible(boolean visible)
visible - The new value of the components visibility.public void setFlags(int flags)
flags - The annotation's or'ed flags.public int getFlags()
public boolean isInvisible()
public void setInvisible(boolean invisible)
invisible - The new value for the INVISIBLE flag.public boolean isHidden()
public void setHidden(boolean hidden)
hidden - The new value of the HIDDEN flag.public boolean isPrintable()
public void setPrintable(boolean printable)
printable - The new value for the PRINTABLE flag.public boolean isNoZoom()
public void setNoZoom(boolean noZoom)
noZoom - The new value for the NOZOOM flag.public boolean isNoRotate()
public void setNoRotate(boolean noRotate)
noRotate - The new value for the NOROTATE flag.public boolean isNoView()
public void setNoView(boolean noView)
noView - The new value for the NOVIEW flag.public boolean isReadOnly()
public void setReadOnly(boolean readOnly)
readOnly - The new value for the READONLY flag.public boolean isLocked()
public void setLocked(boolean locked)
locked - The new value for the LCCKED flag.public Color getColor()
public void setColor(Color c)
c - The new color.public JComponent getComponent()
public void setComponent(JComponent component)
component - The annotation's component.public TriggerActions getTriggerActions()
public void setTriggerActions(TriggerActions tActions)
tActions - A TriggerActions object containing list of actions for the different mouse events.
public void shiftRectangle(double deltaX,
double deltaY)
deltaX - the shift in the x axis.deltaY - the shift in the y axis.public Rectangle2D getRectangle()
public void setRectangle(Rectangle2D rectangle)
rectangle - The new location of the annotation on the page.public String getContents()
public String getName()
public void setName(String name)
name - The new annotation's name.public float getOpacity()
public void setOpacity(float opacity)
opacity - The annotation's opacity.public Date getCreationDate()
Note: This method will return null if the
annotation does not have a creation date.
public String getCreator()
public void setCreationDate(Date creationDate)
creationDate - The annotation's creation date.public void setCreator(String creator)
creator - The annotation's creator.public void setLayer(Layer layer)
layer - The parent layer.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||