public class SwingReplacedElement extends Object implements ReplacedElement
| 构造器和说明 |
|---|
SwingReplacedElement(JComponent component) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ReplacedElementpublic int getIntrinsicWidth()
getIntrinsicWidth 在接口中 ReplacedElementpublic void setLocation(int x,
int y)
ReplacedElementsetLocation 在接口中 ReplacedElementx - new horizontal posy - new vertical pospublic Point getLocation()
ReplacedElementgetLocation 在接口中 ReplacedElementpublic void detach(LayoutContext c)
detach 在接口中 ReplacedElementpublic boolean isRequiresInteractivePaint()
isRequiresInteractivePaint 在接口中 ReplacedElementpublic int getBaseline()
getBaseline 在接口中 ReplacedElementpublic boolean hasBaseline()
hasBaseline 在接口中 ReplacedElementCopyright © 2019. All Rights Reserved.