public class ChartEvent extends EventObject
| Constructor and Description |
|---|
ChartEvent(Object source)
Creates a new
ChartEvent instance. |
ChartEvent(Object source,
Vector legendText,
double min,
double max,
double[] dataPoint,
boolean reset)
Creates a new
ChartEvent instance. |
| Modifier and Type | Method and Description |
|---|---|
double[] |
getDataPoint()
Get the data point
|
Vector |
getLegendText()
Get the legend text vector
|
double |
getMax()
Get the max y value
|
double |
getMin()
Get the min y value
|
boolean |
getReset()
get the value of the reset flag
|
void |
setDataPoint(double[] dp)
Set the data point
|
void |
setLegendText(Vector lt)
Set the legend text vector
|
void |
setMax(double m)
Set the max y value
|
void |
setMin(double m)
Set the min y value
|
void |
setReset(boolean reset)
Set the reset flag
|
getSource, toStringpublic ChartEvent(Object source, Vector legendText, double min, double max, double[] dataPoint, boolean reset)
ChartEvent instance.source - the source of the eventlegendText - a vector of strings to display in the legendmin - minimum y valuemax - maximum y valuedataPoint - an array of y values to plotreset - true if display is to be resetpublic ChartEvent(Object source)
ChartEvent instance.source - the source of the eventpublic Vector getLegendText()
Vector valuepublic void setLegendText(Vector lt)
lt - a Vector valuepublic double getMin()
double valuepublic void setMin(double m)
m - a double valuepublic double getMax()
double valuepublic void setMax(double m)
m - a double valuepublic double[] getDataPoint()
double[] valuepublic void setDataPoint(double[] dp)
dp - a double[] valuepublic void setReset(boolean reset)
reset - a boolean valuepublic boolean getReset()
boolean valueCopyright © 2012 University of Waikato, Hamilton, NZ. All Rights Reserved.