public abstract class Line extends Object implements Drawable
LineChart
. Implementations are:
Constructor and Description |
---|
Line() |
Modifier and Type | Method and Description |
---|---|
void |
addRefreshListener(RefreshListener listener)
Adds a refresh listener that is called whenever this
Drawable needs to be
redrawn by the GUI. |
Line |
color(int newColor)
Sets the color as ARGB int, e.g.
|
int |
getColor()
Returns the color as ARGB int, e.g.
|
void |
removeRefreshListener(RefreshListener listener)
Removes a refresh listener that was called whenever this
Drawable needed to
be redrawn by the GUI. |
void |
setColor(int color)
Sets the color as ARGB int, e.g.
|
public void addRefreshListener(RefreshListener listener)
Drawable
Drawable
needs to be
redrawn by the GUI.addRefreshListener
in interface Drawable
listener
- a listenerpublic void removeRefreshListener(RefreshListener listener)
Drawable
Drawable
needed to
be redrawn by the GUI. Does nothing if the listener was never added.removeRefreshListener
in interface Drawable
listener
- a listenerpublic int getColor()
0xFFFF0000
and blue is
0xFF0000FF
.public Line color(int newColor)
0xFFFF0000
and blue is
0xFF0000FF
.newColor
- the colorpublic void setColor(int color)
0xFFFF0000
and blue is
0xFF0000FF
.color
- the colorCopyright © 2020. All rights reserved.