Class PdfBoxObjectDrawerReplacedElement
java.lang.Object
com.openhtmltopdf.pdfboxout.PdfBoxObjectDrawerReplacedElement
- All Implemented Interfaces:
ReplacedElement, PdfBoxLinkManager.IPdfBoxElementWithShapedLinks, PdfBoxReplacedElement
public class PdfBoxObjectDrawerReplacedElement
extends Object
implements PdfBoxReplacedElement, PdfBoxLinkManager.IPdfBoxElementWithShapedLinks
FSObjectDrawer Element for PDFBox
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPdfBoxObjectDrawerReplacedElement(Element e, FSObjectDrawer drawer, int cssWidth, int cssHeight, SharedContext c) -
Method Summary
Modifier and TypeMethodDescriptionvoidintintintReturns the current location where the element will be rendered on the canvasbooleanbooleanvoidpaint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box) voidsetLocation(int x, int y) Assigns the new locations where the element will be rendered.
-
Field Details
-
e
-
point
-
drawer
-
width
private final int width -
height
private final int height -
dotsPerPixel
private final int dotsPerPixel -
imageMap
-
-
Constructor Details
-
Method Details
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
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
- Specified by:
detachin interfaceReplacedElement- Parameters:
c-
-
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
- Specified by:
paintin interfacePdfBoxReplacedElement
-
getLinkMap
- Specified by:
getLinkMapin interfacePdfBoxLinkManager.IPdfBoxElementWithShapedLinks
-