|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.EventObject | +--weka.gui.beans.ChartEvent
Event encapsulating info for plotting a data point on the StripChart
Constructor Summary | |
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. |
Method Summary | |
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 |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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 eventMethod Detail |
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London