Top Description Methods
com.openhtmltopdf.extend

public Interface ReplacedElement

Known Direct Implementers
com.openhtmltopdf.swing.EmptyReplacedElement, com.openhtmltopdf.swing.ImageReplacedElement
Imports
java.awt.Point, com.openhtmltopdf.layout.LayoutContext

A replaced element is an XML element in the document being rendered whose visual output is delegated. For example, an <img> element in HTML may be rendered using some form of java.awt.Image. The idea is that there are some XML elements which Flying Saucer knows how to position and size (that's in the CSS) but has no idea how to render on screen. Replaced elements serve that purpose.

Method Summary

Modifier and TypeMethod and Description
public void
public int
public int
public int
public Point

Returns:

see desc
getLocation
()

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

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

Assigns the new locations where the element will be rendered.

Method Detail

detachback to summary
public void detach(LayoutContext c)
getBaselineback to summary
public int getBaseline()
getIntrinsicHeightback to summary
public int getIntrinsicHeight()
getIntrinsicWidthback to summary
public int getIntrinsicWidth()
getLocationback to summary
public Point getLocation()

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

Returns:Point

see desc

hasBaselineback to summary
public boolean hasBaseline()
isRequiresInteractivePaintback to summary
public boolean isRequiresInteractivePaint()
setLocationback to summary
public void setLocation(int x, int y)

Assigns the new locations where the element will be rendered.

Parameters
x:int

new horizontal pos

y:int

new vertical pos