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