Package com.openhtmltopdf.pdfboxout
Class PdfBoxImageElement
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxImageElement
-
- All Implemented Interfaces:
com.openhtmltopdf.extend.ReplacedElement,PdfBoxLinkManager.IPdfBoxElementWithShapedLinks,PdfBoxReplacedElement
public class PdfBoxImageElement extends Object implements PdfBoxReplacedElement, PdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
-
Constructor Summary
Constructors Constructor Description PdfBoxImageElement(Element e, com.openhtmltopdf.extend.FSImage image, com.openhtmltopdf.layout.SharedContext c, boolean interpolate)
-
Method Summary
Modifier and Type Method Description voiddetach(com.openhtmltopdf.layout.LayoutContext c)intgetBaseline()com.openhtmltopdf.extend.FSImagegetImage()intgetIntrinsicHeight()intgetIntrinsicWidth()Map<Shape,String>getLinkMap()PointgetLocation()booleanhasBaseline()booleanisRequiresInteractivePaint()voidpaint(com.openhtmltopdf.render.RenderingContext c, PdfBoxOutputDevice outputDevice, com.openhtmltopdf.render.BlockBox box)voidsetLocation(int x, int y)
-
-
-
Constructor Detail
-
PdfBoxImageElement
public PdfBoxImageElement(Element e, com.openhtmltopdf.extend.FSImage image, com.openhtmltopdf.layout.SharedContext c, boolean interpolate)
-
-
Method Detail
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfacecom.openhtmltopdf.extend.ReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfacecom.openhtmltopdf.extend.ReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocationin interfacecom.openhtmltopdf.extend.ReplacedElement
-
setLocation
public void setLocation(int x, int y)- Specified by:
setLocationin interfacecom.openhtmltopdf.extend.ReplacedElement
-
getImage
public com.openhtmltopdf.extend.FSImage getImage()
-
getLinkMap
public Map<Shape,String> getLinkMap()
- Specified by:
getLinkMapin interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
public void detach(com.openhtmltopdf.layout.LayoutContext c)
- Specified by:
detachin interfacecom.openhtmltopdf.extend.ReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfacecom.openhtmltopdf.extend.ReplacedElement
-
paint
public void paint(com.openhtmltopdf.render.RenderingContext c, PdfBoxOutputDevice outputDevice, com.openhtmltopdf.render.BlockBox box)- Specified by:
paintin interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfacecom.openhtmltopdf.extend.ReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfacecom.openhtmltopdf.extend.ReplacedElement
-
-