public class ITextImageElement extends java.lang.Object implements ITextReplacedElement
Constructor and Description |
---|
ITextImageElement(FSImage image) |
Modifier and Type | Method and Description |
---|---|
void |
detach(LayoutContext c) |
int |
getBaseline() |
FSImage |
getImage() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
java.awt.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
in interface ReplacedElement
public int getIntrinsicHeight()
getIntrinsicHeight
in interface ReplacedElement
public java.awt.Point getLocation()
ReplacedElement
getLocation
in interface ReplacedElement
public void setLocation(int x, int y)
ReplacedElement
setLocation
in interface ReplacedElement
x
- new horizontal posy
- new vertical pospublic FSImage getImage()
public void detach(LayoutContext c)
detach
in interface ReplacedElement
public boolean isRequiresInteractivePaint()
isRequiresInteractivePaint
in interface ReplacedElement
public void paint(RenderingContext c, ITextOutputDevice outputDevice, BlockBox box)
paint
in interface ITextReplacedElement
public int getBaseline()
getBaseline
in interface ReplacedElement
public boolean hasBaseline()
hasBaseline
in interface ReplacedElement