Package org.xhtmlrenderer.swing
Class SwingReplacedElement
java.lang.Object
org.xhtmlrenderer.swing.SwingReplacedElement
- All Implemented Interfaces:
ReplacedElement
- Direct Known Subclasses:
ImageMapReplacedElementFactory.ImageMapReplacedElement
-
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
setIntrinsicSize
(Dimension intrinsicSize) void
setLocation
(int x, int y) Assigns the new locations where the element will be rendered.
-
Field Details
-
_component
-
intrinsicSize
-
-
Constructor Details
-
SwingReplacedElement
-
-
Method Details
-
getJComponent
-
setIntrinsicSize
-
getIntrinsicHeight
public int getIntrinsicHeight()- Specified by:
getIntrinsicHeight
in interfaceReplacedElement
-
getIntrinsicWidth
public int getIntrinsicWidth()- Specified by:
getIntrinsicWidth
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 positiony
- new vertical position
-
getLocation
Description copied from interface:ReplacedElement
Returns the current location where the element will be rendered on the canvas- Specified by:
getLocation
in interfaceReplacedElement
-
detach
- Specified by:
detach
in interfaceReplacedElement
-
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()- Specified by:
isRequiresInteractivePaint
in interfaceReplacedElement
-
getBaseline
public int getBaseline()- Specified by:
getBaseline
in interfaceReplacedElement
-
hasBaseline
public boolean hasBaseline()- Specified by:
hasBaseline
in interfaceReplacedElement
-