Top Fields Constructors Methods
com.openhtmltopdf.pdfboxout

public Class PdfBoxPDFReplacedElement

extends Object
implements PdfBoxReplacedElement, IPdfBoxElementWithShapedLinks
Class Inheritance
All Implemented Interfaces
com.openhtmltopdf.pdfboxout.PdfBoxLinkManager.IPdfBoxElementWithShapedLinks, com.openhtmltopdf.pdfboxout.PdfBoxReplacedElement, com.openhtmltopdf.extend.ReplacedElement
Imports
com.openhtmltopdf.css.style.CssContext, com.openhtmltopdf.layout.LayoutContext, .SharedContext, com.openhtmltopdf.pdfboxout.PdfBoxLinkManager.IPdfBoxElementWithShapedLinks, com.openhtmltopdf.render.BlockBox, .Box, .RenderingContext, com.openhtmltopdf.swing.ImageMapParser, com.openhtmltopdf.util.LogMessageId, .XRLog, org.apache.pdfbox.multipdf.LayerUtility, org.apache.pdfbox.pdmodel.PDDocument, .PDPage, org.apache.pdfbox.pdmodel.encryption.InvalidPasswordException, org.apache.pdfbox.pdmodel.graphics.form.PDFormXObject, org.w3c.dom.Element, java.awt.Point, .Rectangle, .Shape, java.io.IOException, java.util.Map, java.util.logging.Level

Field Summary

Modifier and TypeField and Description
private final float
private final Map<Shape, String>
private Point
private final PDFormXObject
private final float

Constructor Summary

AccessConstructor and Description
private
PdfBoxPDFReplacedElement(PDFormXObject srcForm, Element e, Box box, CssContext ctx, SharedContext shared, float w, float h)

Method Summary

Modifier and TypeMethod and Description
public static PdfBoxPDFReplacedElement
create(PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared)

public void
public int
public int
public int
public Map<Shape, String>
public Point
getLocation()

Implements com.openhtmltopdf.extend.ReplacedElement.getLocation.

Returns the current location where the element will be rendered on the canvas

public boolean
public boolean
public void
private static int
public void
setLocation(int
new horizontal pos
x
,
int
new vertical pos
y
)

Implements com.openhtmltopdf.extend.ReplacedElement.setLocation.

Assigns the new locations where the element will be rendered.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

_heightback to summary
private final float _height
_imageMapback to summary
private final Map<Shape, String> _imageMap
_locationback to summary
private Point _location
_srcFormObjectback to summary
private final PDFormXObject _srcFormObject
_widthback to summary
private final float _width

Constructor Detail

PdfBoxPDFReplacedElementback to summary
private PdfBoxPDFReplacedElement(PDFormXObject srcForm, Element e, Box box, CssContext ctx, SharedContext shared, float w, float h)

Method Detail

createback to summary
public static PdfBoxPDFReplacedElement create(PDDocument target, byte[] pdfBytes, Element e, Box box, CssContext ctx, SharedContext shared)
detachback to summary
public void detach(LayoutContext c)

Implements com.openhtmltopdf.extend.ReplacedElement.detach.

Annotations
@Override
getBaselineback to summary
public int getBaseline()

Implements com.openhtmltopdf.extend.ReplacedElement.getBaseline.

Annotations
@Override
getIntrinsicHeightback to summary
public int getIntrinsicHeight()

Implements com.openhtmltopdf.extend.ReplacedElement.getIntrinsicHeight.

Annotations
@Override
getIntrinsicWidthback to summary
public int getIntrinsicWidth()

Implements com.openhtmltopdf.extend.ReplacedElement.getIntrinsicWidth.

Annotations
@Override
getLinkMapback to summary
public Map<Shape, String> getLinkMap()

Implements com.openhtmltopdf.pdfboxout.PdfBoxLinkManager.IPdfBoxElementWithShapedLinks.getLinkMap.

Annotations
@Override
getLocationback to summary
public Point getLocation()

Implements com.openhtmltopdf.extend.ReplacedElement.getLocation.

Doc from com.openhtmltopdf.extend.ReplacedElement.getLocation.

Returns the current location where the element will be rendered on the canvas

Returns:Point

see desc

Annotations
@Override
hasBaselineback to summary
public boolean hasBaseline()

Implements com.openhtmltopdf.extend.ReplacedElement.hasBaseline.

Annotations
@Override
isRequiresInteractivePaintback to summary
public boolean isRequiresInteractivePaint()

Implements com.openhtmltopdf.extend.ReplacedElement.isRequiresInteractivePaint.

Annotations
@Override
paintback to summary
public void paint(RenderingContext c, PdfBoxOutputDevice outputDevice, BlockBox box)

Implements com.openhtmltopdf.pdfboxout.PdfBoxReplacedElement.paint.

Annotations
@Override
parsePageback to summary
private static int parsePage(Element e)
setLocationback to summary
public void setLocation(int x, int y)

Implements com.openhtmltopdf.extend.ReplacedElement.setLocation.

Doc from com.openhtmltopdf.extend.ReplacedElement.setLocation.

Assigns the new locations where the element will be rendered.

Parameters
x:int

new horizontal pos

y:int

new vertical pos

Annotations
@Override