Package org.xhtmlrenderer.extend
Interface ReplacedElement
- All Known Subinterfaces:
ITextReplacedElement
- All Known Implementing Classes:
AbstractFormField
,BookmarkElement
,CheckboxFormField
,DeferredImageReplacedElement
,EmptyReplacedElement
,EmptyReplacedElement
,FormControlReplacementElement
,ImageReplacedElement
,ImageReplacedElement
,ITextImageElement
,RadioButtonFormField
,SwingReplacedElement
,TextFormField
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 of 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 TypeMethodDescriptionvoid
int
int
int
Returns the current location where the element will be rendered on the canvasboolean
boolean
void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.
-
Method Details
-
getIntrinsicWidth
int getIntrinsicWidth() -
getIntrinsicHeight
int getIntrinsicHeight() -
getLocation
Point getLocation()Returns the current location where the element will be rendered on the canvas -
setLocation
void setLocation(int x, int y) Assigns the new locations where the element will be rendered.- Parameters:
x
- new horizontal positiony
- new vertical position
-
detach
-
isRequiresInteractivePaint
boolean isRequiresInteractivePaint() -
hasBaseline
boolean hasBaseline() -
getBaseline
int getBaseline()
-