public abstract class LayoutElement extends Object
| 构造器 | 说明 |
|---|---|
LayoutElement() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addLocationChangedListener(ILocationChangedListener listener) |
|
void |
addSizeChangedListener(ISizeChangedListener listener) |
|
void |
fireLocationChangedEvent() |
|
void |
fireSizeChangedEvent() |
|
Color |
getBackColor() |
Get background color
|
int |
getBottom() |
Get bottom
|
Rectangle |
getBounds() |
Get bounds rectangle
|
ElementType |
getElementType() |
Get element type
|
Color |
getForeColor() |
Get foreground color
|
int |
getHeight() |
Get height
|
int |
getLeft() |
Get left
|
ResizeAbility |
getResizeAbility() |
Get resize ability
|
int |
getRight() |
Get right
|
int |
getTop() |
Get top
|
int |
getWidth() |
Get width
|
boolean |
isDrawBackColor() |
Get is draw backcolor
|
boolean |
isSelected() |
Get if is selected
|
boolean |
isVisible() |
Get if visible
|
abstract void |
moveUpdate() |
Move update method
|
PointF |
pageToScreen(float pageX,
float pageY,
PointF pageLocation,
float zoom) |
Page to screen
|
abstract void |
paint(Graphics2D g) |
Paint method
|
abstract void |
paintOnLayout(Graphics2D g,
PointF pageLocation,
float zoom) |
Paint on layout method
|
void |
removeLocationChangedListener(ILocationChangedListener listener) |
|
void |
removeSizeChangedListener(ISizeChangedListener listener) |
|
abstract void |
resizeUpdate() |
Resize update method
|
void |
setBackColor(Color color) |
Set background color
|
void |
setDrawBackColor(boolean value) |
Set is draw backcolor
|
void |
setElementType(ElementType type) |
Set element type
|
void |
setForeColor(Color color) |
Set foreground color
|
void |
setHeight(int height) |
Set height
|
void |
setLeft(int left) |
Set left
|
void |
setResizeAbility(ResizeAbility ra) |
Set resize ability
|
void |
setSelected(boolean istrue) |
Set if is selected
|
void |
setTop(int top) |
Set top
|
void |
setVisible(boolean istrue) |
Set if visible
|
void |
setWidth(int width) |
Set width
|
public void addLocationChangedListener(ILocationChangedListener listener)
public void removeLocationChangedListener(ILocationChangedListener listener)
public void fireLocationChangedEvent()
public void addSizeChangedListener(ISizeChangedListener listener)
public void removeSizeChangedListener(ISizeChangedListener listener)
public void fireSizeChangedEvent()
public boolean isVisible()
public void setVisible(boolean istrue)
istrue - Booleanpublic int getLeft()
public void setLeft(int left)
left - public int getTop()
public void setTop(int top)
top - Toppublic int getWidth()
public void setWidth(int width)
width - Widthpublic int getHeight()
public void setHeight(int height)
height - Heightpublic int getRight()
public int getBottom()
public Rectangle getBounds()
public ElementType getElementType()
public void setElementType(ElementType type)
type - Element typepublic Color getForeColor()
public void setForeColor(Color color)
color - Foreground colorpublic Color getBackColor()
public void setBackColor(Color color)
color - Background colorpublic boolean isSelected()
public void setSelected(boolean istrue)
istrue - Booleanpublic ResizeAbility getResizeAbility()
public void setResizeAbility(ResizeAbility ra)
ra - Resize abilitypublic boolean isDrawBackColor()
public void setDrawBackColor(boolean value)
value - Booleanpublic abstract void paint(Graphics2D g)
g - Graphics2Dpublic abstract void paintOnLayout(Graphics2D g, PointF pageLocation, float zoom)
g - Grahpics2DpageLocation - Page locationzoom - Zoompublic abstract void moveUpdate()
public abstract void resizeUpdate()
Copyright © 2019. All rights reserved.