|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.annotations.Annotation
Abstract class 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
|
| Constructor Summary | |
Annotation()
Annotation constructor. |
|
| Method Summary | |
abstract JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
Vector |
getActions()
Returns a list of actions to perform when this annotation is 'activated' |
AppearStream |
getAppearStream()
|
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. |
Popup |
getPopup()
Returns the popup associated with this annotation. |
Rectangle2D |
getRectangle()
Gets the annotation's rectangle. |
abstract String |
getSubtype()
Gets the annotation's subtype string. |
TriggerActions |
getTriggerActions()
|
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,
boolean hasFocus)
Paints this annotation to a graphics object. |
void |
paintAppearStream(Graphics2D g)
|
void |
print(Graphics g)
Prints this annotation to a graphics object. |
abstract void |
revalidate()
Revalidates this annotation. |
void |
setActions(Vector actions)
Sets this annotation's actions. |
void |
setAppearStream(AppearStream appearStream)
|
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 |
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 |
setPopup(Popup popup)
Sets the annotation's popup. |
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 |
setTriggerActions(TriggerActions tActions)
|
void |
shiftRectangle(double deltaX,
double deltaY)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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
| Constructor Detail |
public Annotation()
| Method Detail |
public abstract JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
public final void paint(Graphics g,
boolean hasFocus)
g - The graphics object to paint the annotation to.public final void print(Graphics g)
g - The graphics object to use when drawing.public abstract void revalidate()
public abstract String getSubtype()
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 Vector getActions()
public void setActions(Vector 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 void paintAppearStream(Graphics2D g)
public AppearStream getAppearStream()
public void setAppearStream(AppearStream appearStream)
public JComponent getComponent()
public void setComponent(JComponent component)
component - The annotation's component.public TriggerActions getTriggerActions()
public void setTriggerActions(TriggerActions tActions)
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 Popup getPopup()
public void setPopup(Popup popup)
popup - The new annotation's popup.public float getOpacity()
public void setOpacity(float opacity)
opacity - The annotation's opacity.
public void shiftRectangle(double deltaX,
double deltaY)
public Date getCreationDate()
public String getCreator()
public void setCreationDate(Date creationDate)
creationDate - The annotation's creation date.public void setCreator(String creator)
creator - The annotation's creator.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||