public class ITextImageElement extends Object implements ITextReplacedElement
| 构造器和说明 |
|---|
ITextImageElement(FSImage image) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
detach(LayoutContext c) |
int |
getBaseline() |
FSImage |
getImage() |
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 |
setLocation(int x,
int y)
Assigns the new locations where the element will be rendered.
|
public ITextImageElement(FSImage image)
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 FSImage getImage()
public void detach(LayoutContext c)
detach 在接口中 ReplacedElementpublic 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.