Package com.openhtmltopdf.pdfboxout
Class BookmarkElement
java.lang.Object
com.openhtmltopdf.pdfboxout.BookmarkElement
- All Implemented Interfaces:
ReplacedElement
,PdfBoxReplacedElement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
int
int
int
Returns the current location where the element will be rendered on the canvasboolean
boolean
void
paint
(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) void
setAnchorName
(String anchorName) void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.
-
Field Details
-
_location
-
_anchorName
-
-
Constructor Details
-
BookmarkElement
public BookmarkElement()
-
-
Method Details
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
- Returns:
- see desc
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Parameters:
x
- new horizontal posy
- new vertical pos
-
detach
- Specified by:
detach
in interfaceReplacedElement
- Parameters:
c
-
-
getAnchorName
-
setAnchorName
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
paint
- Specified by:
paint
in interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaseline
in interfaceReplacedElement
-