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 void
detach(com.openhtmltopdf.layout.LayoutContext c)
int
getBaseline()
com.openhtmltopdf.extend.FSImage
getImage()
int
getIntrinsicHeight()
int
getIntrinsicWidth()
Map<Shape,String>
getLinkMap()
Point
getLocation()
boolean
hasBaseline()
boolean
isRequiresInteractivePaint()
void
paint(com.openhtmltopdf.render.RenderingContext c, PdfBoxOutputDevice outputDevice, com.openhtmltopdf.render.BlockBox box)
void
setLocation(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:
getIntrinsicWidth
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeight
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
getLocation
public Point getLocation()
- Specified by:
getLocation
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
setLocation
public void setLocation(int x, int y)
- Specified by:
setLocation
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
getImage
public com.openhtmltopdf.extend.FSImage getImage()
-
getLinkMap
public Map<Shape,String> getLinkMap()
- Specified by:
getLinkMap
in interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
detach
public void detach(com.openhtmltopdf.layout.LayoutContext c)
- Specified by:
detach
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaint
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
paint
public void paint(com.openhtmltopdf.render.RenderingContext c, PdfBoxOutputDevice outputDevice, com.openhtmltopdf.render.BlockBox box)
- Specified by:
paint
in interfacePdfBoxReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaseline
in interfacecom.openhtmltopdf.extend.ReplacedElement
-
-