public class SwingReplacedElement extends java.lang.Object implements ReplacedElement
Constructor and Description |
---|
SwingReplacedElement(javax.swing.JComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
detach(LayoutContext c) |
int |
getBaseline() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
javax.swing.JComponent |
getJComponent() |
java.awt.Point |
getLocation()
Returns the current location where the element will be rendered on the canvas
|
boolean |
hasBaseline() |
boolean |
isRequiresInteractivePaint() |
void |
setLocation(int x,
int y)
Assigns the new locations where the element will be rendered.
|
public SwingReplacedElement(javax.swing.JComponent component)
public javax.swing.JComponent getJComponent()
public int getIntrinsicHeight()
getIntrinsicHeight
in interface ReplacedElement
public int getIntrinsicWidth()
getIntrinsicWidth
in interface ReplacedElement
public void setLocation(int x, int y)
ReplacedElement
setLocation
in interface ReplacedElement
x
- new horizontal posy
- new vertical pospublic java.awt.Point getLocation()
ReplacedElement
getLocation
in interface ReplacedElement
public void detach(LayoutContext c)
detach
in interface ReplacedElement
public boolean isRequiresInteractivePaint()
isRequiresInteractivePaint
in interface ReplacedElement
public int getBaseline()
getBaseline
in interface ReplacedElement
public boolean hasBaseline()
hasBaseline
in interface ReplacedElement