|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--no.hig.okolloen.graphics.chart.ChartItem
Just a collection of data that is used to represent a datapoint in a Chart. Contains the value, title and color representing this datapoint.
Constructor Summary | |
ChartItem(double value)
Constructor for the ChartItem class. |
|
ChartItem(double value,
java.awt.Color color)
Constructor for the ChartItem class. |
|
ChartItem(java.lang.String title,
double value,
java.awt.Color color)
Constructor for the ChartItem class. |
Method Summary | |
java.awt.Color |
getColor()
Retrieves the color of this datapoint. |
java.lang.String |
getTitle()
Retrieves the title of this datapoint. |
double |
getValue()
Retrieves the value of this datapoint. |
void |
setColor(java.awt.Color color)
sets the color of this datapoint. |
void |
setTitle(java.lang.String title)
sets the title of this datapoint. |
void |
setValue(double value)
sets the value of this datapoint. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public ChartItem(double value)
value
- the value of this datapoint.public ChartItem(double value, java.awt.Color color)
value
- the value of this datapoint.color
- the color used to draw this datapointpublic ChartItem(java.lang.String title, double value, java.awt.Color color)
title
- the title or legend value of this datapointvalue
- the value of this datapoint.color
- the color used to draw this datapointMethod Detail |
public java.lang.String getTitle()
public double getValue()
public java.awt.Color getColor()
public void setTitle(java.lang.String title)
title
- String object with the title of the datapoint.public void setValue(double value)
value
- the value of this datapoint.public void setColor(java.awt.Color color)
color
- object with the color of the datapoint.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |