Package org.xhtmlrenderer.pdf
Class BookmarkElement
- java.lang.Object
-
- org.xhtmlrenderer.pdf.BookmarkElement
-
- All Implemented Interfaces:
ReplacedElement
,ITextReplacedElement
public class BookmarkElement extends java.lang.Object implements ITextReplacedElement
-
-
Constructor Summary
Constructors Constructor Description BookmarkElement()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
detach(LayoutContext c)
java.lang.String
getAnchorName()
int
getBaseline()
int
getIntrinsicHeight()
int
getIntrinsicWidth()
java.awt.Point
getLocation()
Returns the current location where the element will be rendered on the canvasboolean
hasBaseline()
boolean
isRequiresInteractivePaint()
void
paint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box)
void
setAnchorName(java.lang.String anchorName)
void
setLocation(int x, int y)
Assigns the new locations where the element will be rendered.
-
-
-
Method Detail
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getLocation
public java.awt.Point 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
public void detach(LayoutContext c)
- Specified by:
detach
in interfaceReplacedElement
-
getAnchorName
public java.lang.String getAnchorName()
-
setAnchorName
public void setAnchorName(java.lang.String anchorName)
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
paint
public void paint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box)
- Specified by:
paint
in interfaceITextReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaseline
in interfaceReplacedElement
-
-