com.odesys.chart
Class DefaultElement

java.lang.Object
  |
  +--com.odesys.chart.DefaultElement
All Implemented Interfaces:
ChartElement
Direct Known Subclasses:
DefaultBarData, DefaultBubbleData, DefaultPointData, DefaultSliceData

public class DefaultElement
extends java.lang.Object
implements ChartElement

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

DefaultElement

public DefaultElement(ChartModel model,
                      Series series)
Creates a new DefaultElement instance for the specified model and series
Method Detail

setColor

public void setColor(java.awt.Color color)
Sets the color of this DefaultElement
Specified by:
setColor in interface ChartElement

getColor

public java.awt.Color getColor()
Gets the color of this DefaultElement
Specified by:
getColor in interface ChartElement

setLabel

public void setLabel(java.lang.String label)
Sets the label of this DefaultElement
Specified by:
setLabel in interface ChartElement

getLabel

public java.lang.String getLabel()
Gets the label of this DefaultElement
Specified by:
getLabel in interface ChartElement

getSeries

public Series getSeries()
Gets the Series this DefaultElement belongs to
Specified by:
getSeries in interface ChartElement

getModel

public ChartModel getModel()
Gets the ChartModel this DefaultElement belongs to
Specified by:
getModel in interface ChartElement

setUserData

public void setUserData(java.lang.Object data)
Sets the user data Object of this DefaultElement

getUserData

public java.lang.Object getUserData()
Gets the user data Object associated with this DefaultElement