Package com.openhtmltopdf.swing
Class EmptyReplacedElement
java.lang.Object
com.openhtmltopdf.swing.EmptyReplacedElement
- All Implemented Interfaces:
ReplacedElement
- Direct Known Subclasses:
Java2DRendererBuilder.Graphics2DPaintingReplacedElement
-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
_width
private int _width -
_height
private int _height -
_location
-
-
Constructor Details
-
EmptyReplacedElement
public EmptyReplacedElement(int width, int height)
-
-
Method Details
-
detach
- Specified by:
detach
in interfaceReplacedElement
- Parameters:
c
-
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
in interfaceReplacedElement
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
- Returns:
- see desc
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y) Description copied from interface:ReplacedElement
Assigns the new locations where the element will be rendered.- Specified by:
setLocation
in interfaceReplacedElement
- Parameters:
x
- new horizontal posy
- new vertical pos
-
getBaseline
public int getBaseline()- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaseline
in interfaceReplacedElement
-