|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.qoppa.pdf.annotations.Annotation
com.qoppa.pdf.annotations.Text
Class representing a Text annotation in a PDF document. Text annotations are displayed as a note icon on the PDF document and open a text box to show its contents when double-clicked.
| Field Summary | |
static String |
ICON_COMMENT
|
static String |
ICON_DEFAULT
|
static String |
ICON_HELP
|
static String |
ICON_INSERT
|
static String |
ICON_KEY
|
static String |
ICON_NEWPARAGRAPH
|
static String |
ICON_NOTE
|
static String |
ICON_PARAGRAPH
|
| Fields inherited from class com.qoppa.pdf.annotations.Annotation |
BORDERSTYLE_BEVELED, BORDERSTYLE_DASHED, BORDERSTYLE_INSETS, BORDERSTYLE_SOLID, BORDERSTYLE_UNDERLINE, FLAGS_HIDDEN, FLAGS_INVISIBLE, FLAGS_LOCKED, FLAGS_NOROTATE, FLAGS_NOVIEW, FLAGS_NOZOOM, FLAGS_PRINTABLE, FLAGS_READONLY |
| Constructor Summary | |
Text(String contents,
boolean initialOpen,
String iconName)
Construct a Text annotation object. |
|
| Method Summary | |
JComponent |
createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
Creates a JComponent object capable of displaying this annotation. |
String |
getContents()
Returns the string contents for this annotation. |
String |
getIconName()
Returns the name of the icon for this annotation. |
Rectangle2D |
getRectangle()
Override getRectangle: Bounds are set by the size of the text icon |
String |
getSubtype()
Returns this annotation's subtype: "Text" |
boolean |
isInitialOpen()
Returns the value of the InitialOpen flag. |
boolean |
isPrintable()
Text icon never prints. |
void |
paintImpl(Graphics g,
boolean hasFocus)
Draws the text icon. |
void |
revalidate()
Revalidates this annotation. |
void |
setContents(String contents)
Sets the string contents for this annotation. |
void |
setInitialOpen(boolean initOpen)
Sets the initial open flag. |
| Methods inherited from class com.qoppa.pdf.annotations.Annotation |
getActions, getAppearStream, getBorderStyle, getBorderWidth, getColor, getComponent, getCreationDate, getCreator, getFlags, getName, getOpacity, getPopup, getTriggerActions, isHidden, isInvisible, isLocked, isNoRotate, isNoView, isNoZoom, isReadOnly, paint, paintAppearStream, print, setActions, setAppearStream, setBorderStyle, setBorderWidth, setColor, setComponent, setComponentVisible, setCreationDate, setCreator, setFlags, setHidden, setInvisible, setLocked, setName, setNoRotate, setNoView, setNoZoom, setOpacity, setPopup, setPrintable, setReadOnly, setRectangle, setTriggerActions, shiftRectangle |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final String ICON_NOTE
public static final String ICON_COMMENT
public static final String ICON_KEY
public static final String ICON_HELP
public static final String ICON_NEWPARAGRAPH
public static final String ICON_PARAGRAPH
public static final String ICON_INSERT
public static final String ICON_DEFAULT
| Constructor Detail |
public Text(String contents,
boolean initialOpen,
String iconName)
contents - The textual content.initialOpen - Flag indicating whether this annotation should be displayed
open initially.iconName - The name of the icon to use when displaying the annotation in its
un-opened mode. Please use one of the constants defined in this class (ICON_XXXX)
to set the name of the icon.| Method Detail |
public String getSubtype()
getSubtype in class Annotationpublic String getIconName()
public boolean isInitialOpen()
public void setInitialOpen(boolean initOpen)
initOpen - The new value of the initial open flag.
public JComponent createComponent(Point2D cropOrigin,
IPDFActionHandler actionHandler)
createComponent in class Annotationpublic String getContents()
getContents in class Annotationpublic void setContents(String contents)
public void paintImpl(Graphics g,
boolean hasFocus)
g - The graphics object to use when drawing.public void revalidate()
Annotation
revalidate in class Annotationpublic Rectangle2D getRectangle()
getRectangle in class Annotationpublic boolean isPrintable()
isPrintable in class Annotation
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||