org.xhtmlrenderer.swing
Class SwingReplacedElement
java.lang.Object
org.xhtmlrenderer.swing.SwingReplacedElement
- All Implemented Interfaces:
- ReplacedElement
public class SwingReplacedElement
- extends java.lang.Object
- implements ReplacedElement
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SwingReplacedElement
public SwingReplacedElement(javax.swing.JComponent component)
getJComponent
public javax.swing.JComponent getJComponent()
getIntrinsicHeight
public int getIntrinsicHeight()
- Specified by:
getIntrinsicHeight
in interface ReplacedElement
getIntrinsicWidth
public int getIntrinsicWidth()
- Specified by:
getIntrinsicWidth
in interface ReplacedElement
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 interface ReplacedElement
- Parameters:
x
- new horizontal posy
- new vertical pos
getLocation
public java.awt.Point getLocation()
- Description copied from interface:
ReplacedElement
- Returns the current location where the element will be rendered on the canvas
- Specified by:
getLocation
in interface ReplacedElement
- Returns:
- see desc
detach
public void detach(LayoutContext c)
- Specified by:
detach
in interface ReplacedElement
isRequiresInteractivePaint
public boolean isRequiresInteractivePaint()
- Specified by:
isRequiresInteractivePaint
in interface ReplacedElement
getBaseline
public int getBaseline()
- Specified by:
getBaseline
in interface ReplacedElement
hasBaseline
public boolean hasBaseline()
- Specified by:
hasBaseline
in interface ReplacedElement
Flying Saucer Project Home