Package com.openhtmltopdf.pdfboxout
Class PdfBoxObjectDrawerReplacedElement
- java.lang.Object
-
- com.openhtmltopdf.pdfboxout.PdfBoxObjectDrawerReplacedElement
-
- All Implemented Interfaces:
ReplacedElement,PdfBoxLinkManager.IPdfBoxElementWithShapedLinks,PdfBoxReplacedElement
public class PdfBoxObjectDrawerReplacedElement extends java.lang.Object implements PdfBoxReplacedElement, PdfBoxLinkManager.IPdfBoxElementWithShapedLinks
FSObjectDrawer Element for PDFBox
-
-
Field Summary
Fields Modifier and Type Field Description private intdotsPerPixelprivate FSObjectDrawerdrawerprivate org.w3c.dom.Elementeprivate intheightprivate java.util.Map<java.awt.Shape,java.lang.String>imageMapprivate java.awt.Pointpointprivate intwidth
-
Constructor Summary
Constructors Constructor Description PdfBoxObjectDrawerReplacedElement(org.w3c.dom.Element e, FSObjectDrawer drawer, int cssWidth, int cssHeight, SharedContext c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetach(LayoutContext c)intgetBaseline()intgetIntrinsicHeight()intgetIntrinsicWidth()java.util.Map<java.awt.Shape,java.lang.String>getLinkMap()java.awt.PointgetLocation()Returns the current location where the element will be rendered on the canvasbooleanhasBaseline()booleanisRequiresInteractivePaint()voidpaint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)voidsetLocation(int x, int y)Assigns the new locations where the element will be rendered.
-
-
-
Field Detail
-
e
private final org.w3c.dom.Element e
-
point
private java.awt.Point point
-
drawer
private final FSObjectDrawer drawer
-
width
private final int width
-
height
private final int height
-
dotsPerPixel
private final int dotsPerPixel
-
imageMap
private java.util.Map<java.awt.Shape,java.lang.String> imageMap
-
-
Constructor Detail
-
PdfBoxObjectDrawerReplacedElement
public PdfBoxObjectDrawerReplacedElement(org.w3c.dom.Element e, FSObjectDrawer drawer, int cssWidth, int cssHeight, SharedContext c)
-
-
Method Detail
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getLocation
public java.awt.Point getLocation()
Description copied from interface:ReplacedElementReturns the current location where the element will be rendered on the canvas- Specified by:
getLocationin interfaceReplacedElement- Returns:
- see desc
-
setLocation
public void setLocation(int x, int y)Description copied from interface:ReplacedElementAssigns the new locations where the element will be rendered.- Specified by:
setLocationin interfaceReplacedElement- Parameters:
x- new horizontal posy- new vertical pos
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfaceReplacedElement
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfaceReplacedElement
-
paint
public void paint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)
- Specified by:
paintin interfacePdfBoxReplacedElement
-
getLinkMap
public java.util.Map<java.awt.Shape,java.lang.String> getLinkMap()
- Specified by:
getLinkMapin interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-
-