ChartNorthArrow, ChartScaleBarpublic abstract class ChartElement extends Object
| 限定符和类型 | 字段 | 说明 |
|---|---|---|
protected Color |
_backColor |
|
protected Color |
_foreColor |
|
protected float |
height |
|
protected float |
width |
|
protected float |
x |
|
protected float |
y |
| 构造器 | 说明 |
|---|---|
ChartElement() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
addLocationChangedListener(ILocationChangedListener listener) |
|
void |
addSizeChangedListener(ISizeChangedListener listener) |
|
void |
fireLocationChangedEvent() |
|
void |
fireSizeChangedEvent() |
|
Color |
getBackground() |
Get background color
|
float |
getBottom() |
Get bottom
|
Rectangle2D.Float |
getBounds() |
Get bounds rectangle
|
Color |
getForeground() |
Get foreground color
|
float |
getHeight() |
Get height
|
ResizeAbility |
getResizeAbility() |
Get resize ability
|
float |
getRight() |
Get right
|
float |
getWidth() |
Get width
|
float |
getX() |
Get x
|
float |
getY() |
Get y
|
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
|
void |
removeLocationChangedListener(ILocationChangedListener listener) |
|
void |
removeSizeChangedListener(ISizeChangedListener listener) |
|
abstract void |
resizeUpdate() |
Resize update method
|
void |
setBackground(Color color) |
Set background color
|
void |
setDrawBackColor(boolean value) |
Set is draw backcolor
|
void |
setForeground(Color color) |
Set foreground color
|
void |
setHeight(float height) |
Set height
|
void |
setResizeAbility(ResizeAbility ra) |
Set resize ability
|
void |
setSelected(boolean istrue) |
Set if is selected
|
void |
setVisible(boolean istrue) |
Set if visible
|
void |
setWidth(float width) |
Set width
|
void |
setX(float left) |
Set left
|
void |
setY(float top) |
Set y
|
protected float x
protected float y
protected float width
protected float height
protected Color _foreColor
protected Color _backColor
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 float getX()
public void setX(float left)
left - public float getY()
public void setY(float top)
top - Ypublic float getWidth()
public void setWidth(float width)
width - Widthpublic float getHeight()
public void setHeight(float height)
height - Heightpublic float getRight()
public float getBottom()
public Rectangle2D.Float getBounds()
public Color getForeground()
public void setForeground(Color color)
color - Foreground colorpublic Color getBackground()
public void setBackground(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 moveUpdate()
public abstract void resizeUpdate()
Copyright © 2019. All rights reserved.