Package com.openhtmltopdf.extend
Interface ReplacedElement
-
- All Known Subinterfaces:
PdfBoxReplacedElement
- All Known Implementing Classes:
BookmarkElement
,EmptyReplacedElement
,ImageReplacedElement
,Java2DObjectDrawerReplacedElement
,Java2DRendererBuilder.Graphics2DPaintingReplacedElement
,Java2DSVGReplacedElement
,PdfBoxImageElement
,PdfBoxObjectDrawerReplacedElement
,PdfBoxPDFReplacedElement
,PdfBoxSVGReplacedElement
public interface ReplacedElement
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 ofImage
. 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
detach(LayoutContext c)
int
getBaseline()
int
getIntrinsicHeight()
int
getIntrinsicWidth()
java.awt.Point
getLocation()
Returns the current location where the element will be rendered on the canvasboolean
hasBaseline()
boolean
isRequiresInteractivePaint()
void
setLocation(int x, int y)
Assigns the new locations where the element will be rendered.
-
-
-
Method Detail
-
getIntrinsicWidth
int getIntrinsicWidth()
-
getIntrinsicHeight
int getIntrinsicHeight()
-
getLocation
java.awt.Point getLocation()
Returns the current location where the element will be rendered on the canvas- Returns:
- see desc
-
setLocation
void setLocation(int x, int y)
Assigns the new locations where the element will be rendered.- Parameters:
x
- new horizontal posy
- new vertical pos
-
detach
void detach(LayoutContext c)
- Parameters:
c
-
-
isRequiresInteractivePaint
boolean isRequiresInteractivePaint()
-
hasBaseline
boolean hasBaseline()
-
getBaseline
int getBaseline()
-
-