Package weka.gui.beans
Class ChartEvent
- java.lang.Object
-
- java.util.EventObject
-
- weka.gui.beans.ChartEvent
-
- All Implemented Interfaces:
java.io.Serializable
public class ChartEvent extends java.util.EventObjectEvent encapsulating info for plotting a data point on the StripChart- Version:
- $Revision: 1.4 $
- Author:
- Mark Hall
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ChartEvent(java.lang.Object source)Creates a newChartEventinstance.ChartEvent(java.lang.Object source, java.util.Vector legendText, double min, double max, double[] dataPoint, boolean reset)Creates a newChartEventinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getDataPoint()Get the data pointjava.util.VectorgetLegendText()Get the legend text vectordoublegetMax()Get the max y valuedoublegetMin()Get the min y valuebooleangetReset()get the value of the reset flagvoidsetDataPoint(double[] dp)Set the data pointvoidsetLegendText(java.util.Vector lt)Set the legend text vectorvoidsetMax(double m)Set the max y valuevoidsetMin(double m)Set the min y valuevoidsetReset(boolean reset)Set the reset flag
-
-
-
Constructor Detail
-
ChartEvent
public ChartEvent(java.lang.Object source, java.util.Vector legendText, double min, double max, double[] dataPoint, boolean reset)Creates a newChartEventinstance.- Parameters:
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 reset
-
ChartEvent
public ChartEvent(java.lang.Object source)
Creates a newChartEventinstance.- Parameters:
source- the source of the event
-
-
Method Detail
-
getLegendText
public java.util.Vector getLegendText()
Get the legend text vector- Returns:
- a
Vectorvalue
-
setLegendText
public void setLegendText(java.util.Vector lt)
Set the legend text vector- Parameters:
lt- aVectorvalue
-
getMin
public double getMin()
Get the min y value- Returns:
- a
doublevalue
-
setMin
public void setMin(double m)
Set the min y value- Parameters:
m- adoublevalue
-
getMax
public double getMax()
Get the max y value- Returns:
- a
doublevalue
-
setMax
public void setMax(double m)
Set the max y value- Parameters:
m- adoublevalue
-
getDataPoint
public double[] getDataPoint()
Get the data point- Returns:
- a
double[]value
-
setDataPoint
public void setDataPoint(double[] dp)
Set the data point- Parameters:
dp- adouble[]value
-
setReset
public void setReset(boolean reset)
Set the reset flag- Parameters:
reset- abooleanvalue
-
getReset
public boolean getReset()
get the value of the reset flag- Returns:
- a
booleanvalue
-
-