public class BookmarkElement extends Object implements ITextReplacedElement
| Constructor and Description |
|---|
BookmarkElement() |
| Modifier and Type | Method and Description |
|---|---|
void |
detach(LayoutContext c) |
String |
getAnchorName() |
int |
getBaseline() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
Point |
getLocation()
Returns the current location where the element will be rendered on the canvas
|
boolean |
hasBaseline() |
boolean |
isRequiresInteractivePaint() |
void |
paint(RenderingContext c,
ITextOutputDevice outputDevice,
BlockBox box) |
void |
setAnchorName(String anchorName) |
void |
setLocation(int x,
int y)
Assigns the new locations where the element will be rendered.
|
public int getIntrinsicWidth()
getIntrinsicWidth in interface ReplacedElementpublic int getIntrinsicHeight()
getIntrinsicHeight in interface ReplacedElementpublic Point getLocation()
ReplacedElementgetLocation in interface ReplacedElementpublic void setLocation(int x,
int y)
ReplacedElementsetLocation in interface ReplacedElementx - new horizontal posy - new vertical pospublic void detach(LayoutContext c)
detach in interface ReplacedElementpublic String getAnchorName()
public void setAnchorName(String anchorName)
public boolean isRequiresInteractivePaint()
isRequiresInteractivePaint in interface ReplacedElementpublic void paint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box)
paint in interface ITextReplacedElementpublic int getBaseline()
getBaseline in interface ReplacedElementpublic boolean hasBaseline()
hasBaseline in interface ReplacedElementCopyright © 2011-2013. All Rights Reserved.