Package org.xhtmlrenderer.swt
Class ImageReplacedElement
- java.lang.Object
-
- org.xhtmlrenderer.swt.ImageReplacedElement
-
- All Implemented Interfaces:
ReplacedElement
public class ImageReplacedElement extends Object implements ReplacedElement
ReplacedElement for<img>tags.- Author:
- Vianney le Clément
-
-
Constructor Summary
Constructors Constructor Description ImageReplacedElement(SWTFSImage img, int targetWidth, int targetHeight)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach(LayoutContext c)intgetBaseline()SWTFSImagegetImage()intgetIntrinsicHeight()intgetIntrinsicWidth()PointgetLocation()booleanhasBaseline()booleanisRequiresInteractivePaint()voidsetLocation(int x, int y)
-
-
-
Constructor Detail
-
ImageReplacedElement
public ImageReplacedElement(SWTFSImage img, int targetWidth, int targetHeight)
-
-
Method Detail
-
getImage
public SWTFSImage getImage()
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocationin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfaceReplacedElement
-
-