|
DynamicPDF by ceTe Software | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.cete.dynamicpdf.PageElement
com.cete.dynamicpdf.pageelements.Bookmark
public class 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.
NOTE: This page element cannot be used within a table cell, or tranformation group.
Licensing:
This class is a DynamicPDF Generator Professional Edition
feature. One of the following licenses is required for non-evaluation usage:
| Constructor Summary | |
|---|---|
Bookmark(java.lang.String text,
float x,
float y)
Creates a new instance of Bookmark class. |
|
Bookmark(java.lang.String text,
float x,
float y,
Outline parentOutline)
Creates a new instance of Bookmark class. |
|
| Method Summary | |
|---|---|
void |
draw(PageWriter writer)
Draws the bookmark to the given PageWriter object. |
RgbColor |
getColor()
Gets the RgbColor 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 RgbColor 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 class.
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 class.
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()
RgbColor object to use for the text of the bookmark.
RgbColorpublic void setText(java.lang.String value)
value - the text of the bookmark.public void setX(float value)
setX in interface ICoordinatevalue - the X coordinate of the bookmark.public void setY(float value)
setY in interface ICoordinatevalue - the Y coordinate of the bookmark.public void setStyle(TextStyle value)
TextStyle enumeration that represents the
text style of the bookmark.
value - the text style of the bookmark.TextStylepublic void setParentOutline(Outline value)
Outline object the bookmark will appear under.
value - the outline of the bookmark.Outlinepublic void setColor(RgbColor value)
RgbColor object to use for the text of the bookmark.
value - the color of the bookmark.RgbColorpublic 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 | ||||||||