|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.PageElement
|
+--com.cete.dynamicpdf.pageelements.Bookmark
This class can be used to place bookmarks on the PDF document. These bookmarks
will be displayed to the right of the PDF document. See the
Outlines topic
for more details on bookmarks.
| Constructor Summary | |
Bookmark(java.lang.String text,
float x,
float y)
Creates a new instance of Bookmark. |
|
Bookmark(java.lang.String text,
float x,
float y,
Outline parentOutline)
Creates a new instance of Bookmark. |
|
| Method Summary | |
void |
draw(PageWriter writer)
Draws the bookmark to the given PageWriter object. |
RgbColor |
getColor()
Gets the Color object to use for the text of the bookmark. |
Outline |
getParentOutline()
Gets the Outline object the bookmark will appear under. |
TextStyle |
getStyle()
Gets the TextStyle enumeration that represents the
text style of the bookmark. |
java.lang.String |
getText()
Gets the text of the bookmark. |
float |
getX()
Gets the X coordinate of the bookmark. |
float |
getY()
Gets the Y coordinate of the bookmark. |
void |
setColor(RgbColor value)
Sets the Color object to use for the text of the bookmark. |
void |
setParentOutline(Outline value)
Sets the Outline object the bookmark will appear under. |
void |
setStyle(TextStyle value)
Sets the TextStyle enumeration that represents the
text style of the bookmark. |
void |
setText(java.lang.String value)
Sets the text of the bookmark. |
void |
setX(float value)
Sets the X coordinate of the bookmark. |
void |
setY(float value)
Sets the Y coordinate of the bookmark. |
| Methods inherited from class com.cete.dynamicpdf.PageElement |
getRequiredLicenseLevel, getStrID, setRequiredLicenseLevel, setStrID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Bookmark(java.lang.String text,
float x,
float y)
Bookmark.
text - Text of the bookmark.x - X coordinate of the bookmark.y - Y coordinate of the bookmark.
public Bookmark(java.lang.String text,
float x,
float y,
Outline parentOutline)
Bookmark.
text - Text of the bookmark.x - X coordinate of the bookmark.y - Y coordinate of the bookmark.parentOutline - Outline object that the
bookmark will appear under.Outline| Method Detail |
public java.lang.String getText()
public float getX()
getX in interface ICoordinatepublic float getY()
getY in interface ICoordinatepublic TextStyle getStyle()
TextStyle enumeration that represents the
text style of the bookmark.
TextStylepublic Outline getParentOutline()
Outline object the bookmark will appear under.
Outlinepublic RgbColor getColor()
Color object to use for the text of the bookmark.
Colorpublic void setText(java.lang.String value)
public void setX(float value)
setX in interface ICoordinatepublic void setY(float value)
setY in interface ICoordinatepublic void setStyle(TextStyle value)
TextStyle enumeration that represents the
text style of the bookmark.
TextStylepublic void setParentOutline(Outline value)
Outline object the bookmark will appear under.
Outlinepublic void setColor(RgbColor value)
Color object to use for the text of the bookmark.
Colorpublic void draw(PageWriter writer)
PageWriter object.
draw in class PageElementwriter - PageWriter object to receive the bookmark's output.PageWriter
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||