public class ChartEvent
extends java.util.EventObject
Constructor and Description |
---|
ChartEvent(java.lang.Object source)
Creates a new
ChartEvent instance. |
ChartEvent(java.lang.Object source,
java.util.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
|
java.util.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(java.util.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
|
public ChartEvent(java.lang.Object source, java.util.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(java.lang.Object source)
ChartEvent
instance.source
- the source of the eventpublic java.util.Vector getLegendText()
Vector
valuepublic void setLegendText(java.util.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
value