public class SwingReplacedElement extends Object implements ReplacedElement
| Constructor and Description |
|---|
SwingReplacedElement(JComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
detach(LayoutContext c) |
int |
getBaseline() |
int |
getIntrinsicHeight() |
int |
getIntrinsicWidth() |
JComponent |
getJComponent() |
Point |
getLocation()
Returns the current location where the element will be rendered on the canvas
|
boolean |
hasBaseline() |
boolean |
isRequiresInteractivePaint() |
void |
setIntrinsicSize(Dimension intrinsicSize) |
void |
setLocation(int x,
int y)
Assigns the new locations where the element will be rendered.
|
public SwingReplacedElement(JComponent component)
public JComponent getJComponent()
public void setIntrinsicSize(Dimension intrinsicSize)
public int getIntrinsicHeight()
getIntrinsicHeight in interface ReplacedElementpublic int getIntrinsicWidth()
getIntrinsicWidth in interface ReplacedElementpublic void setLocation(int x,
int y)
ReplacedElementsetLocation in interface ReplacedElementx - new horizontal posy - new vertical pospublic Point getLocation()
ReplacedElementgetLocation in interface ReplacedElementpublic void detach(LayoutContext c)
detach in interface ReplacedElementpublic boolean isRequiresInteractivePaint()
isRequiresInteractivePaint in interface ReplacedElementpublic int getBaseline()
getBaseline in interface ReplacedElementpublic boolean hasBaseline()
hasBaseline in interface ReplacedElementCopyright © 2018. All rights reserved.