|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.odesys.chart.DefaultElement
DefaultElement is the superclass of all default ChartElement implementations. It provides access to the ChartModel and the Series this DefaultElement belongs to and also some common properties such as color, label and user data.
Constructor Summary | |
DefaultElement(ChartModel model,
Series series)
Creates a new DefaultElement instance for the specified model and series |
Method Summary | |
java.awt.Color |
getColor()
Gets the color of this DefaultElement |
java.lang.String |
getLabel()
Gets the label of this DefaultElement |
ChartModel |
getModel()
Gets the ChartModel this DefaultElement belongs to |
Series |
getSeries()
Gets the Series this DefaultElement belongs to |
java.lang.Object |
getUserData()
Gets the user data Object associated with this DefaultElement |
void |
setColor(java.awt.Color color)
Sets the color of this DefaultElement |
void |
setLabel(java.lang.String label)
Sets the label of this DefaultElement |
void |
setUserData(java.lang.Object data)
Sets the user data Object of this DefaultElement |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultElement(ChartModel model, Series series)
Method Detail |
public void setColor(java.awt.Color color)
setColor
in interface ChartElement
public java.awt.Color getColor()
getColor
in interface ChartElement
public void setLabel(java.lang.String label)
setLabel
in interface ChartElement
public java.lang.String getLabel()
getLabel
in interface ChartElement
public Series getSeries()
getSeries
in interface ChartElement
public ChartModel getModel()
getModel
in interface ChartElement
public void setUserData(java.lang.Object data)
public java.lang.Object getUserData()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |