public class BookmarkElement extends Object implements ITextReplacedElement
| 构造器和说明 |
|---|
BookmarkElement() |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ReplacedElementpublic int getIntrinsicHeight()
getIntrinsicHeight 在接口中 ReplacedElementpublic Point getLocation()
ReplacedElementgetLocation 在接口中 ReplacedElementpublic void setLocation(int x,
int y)
ReplacedElementsetLocation 在接口中 ReplacedElementx - new horizontal posy - new vertical pospublic void detach(LayoutContext c)
detach 在接口中 ReplacedElementpublic String getAnchorName()
public void setAnchorName(String anchorName)
public boolean isRequiresInteractivePaint()
isRequiresInteractivePaint 在接口中 ReplacedElementpublic void paint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box)
paint 在接口中 ITextReplacedElementpublic int getBaseline()
getBaseline 在接口中 ReplacedElementpublic boolean hasBaseline()
hasBaseline 在接口中 ReplacedElementCopyright © 2019. All Rights Reserved.