Package com.openhtmltopdf.swing
Class EmptyReplacedElement
- java.lang.Object
-
- com.openhtmltopdf.swing.EmptyReplacedElement
-
- All Implemented Interfaces:
ReplacedElement
public class EmptyReplacedElement extends Object implements ReplacedElement
-
-
Constructor Summary
Constructors Constructor Description EmptyReplacedElement(int width, int height)
-
Method Summary
Modifier and Type Method Description voiddetach(LayoutContext c)intgetBaseline()intgetIntrinsicHeight()intgetIntrinsicWidth()PointgetLocation()Returns the current location where the element will be rendered on the canvasbooleanhasBaseline()booleanisRequiresInteractivePaint()voidsetLocation(int x, int y)Assigns the new locations where the element will be rendered.
-
-
-
Method Detail
-
detach
public void detach(LayoutContext c)
- Specified by:
detachin interfaceReplacedElement
-
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeightin interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidthin interfaceReplacedElement
-
getLocation
public Point getLocation()
Description copied from interface:ReplacedElementReturns the current location where the element will be rendered on the canvas- Specified by:
getLocationin interfaceReplacedElement- Returns:
- see desc
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaintin interfaceReplacedElement
-
setLocation
public void setLocation(int x, int y)Description copied from interface:ReplacedElementAssigns the new locations where the element will be rendered.- Specified by:
setLocationin interfaceReplacedElement- Parameters:
x- new horizontal posy- new vertical pos
-
getBaseline
public int getBaseline()
- Specified by:
getBaselinein interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaselinein interfaceReplacedElement
-
-