weka.gui.beans
Class ChartEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byweka.gui.beans.ChartEvent
All Implemented Interfaces:
java.io.Serializable

public class ChartEvent
extends java.util.EventObject

Event encapsulating info for plotting a data point on the StripChart

Version:
$Revision: 1.2 $
Author:
Mark Hall
See Also:
Serialized Form

Field Summary
private  double[] m_dataPoint
          Y values of the data points
private  java.util.Vector m_legendText
           
private  double m_max
           
private  double m_min
           
private  boolean m_reset
           
 
Fields inherited from class java.util.EventObject
source
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_legendText

private java.util.Vector m_legendText

m_max

private double m_max

m_min

private double m_min

m_reset

private boolean m_reset

m_dataPoint

private double[] m_dataPoint
Y values of the data points

Constructor Detail

ChartEvent

public ChartEvent(java.lang.Object source,
                  java.util.Vector legendText,
                  double min,
                  double max,
                  double[] dataPoint,
                  boolean reset)
Creates a new ChartEvent instance.

Parameters:
source - the source of the event
legendText - a vector of strings to display in the legend
min - minimum y value
max - maximum y value
dataPoint - an array of y values to plot
reset - true if display is to be reset

ChartEvent

public ChartEvent(java.lang.Object source)
Creates a new ChartEvent instance.

Parameters:
source - the source of the event
Method Detail

getLegendText

public java.util.Vector getLegendText()
Get the legend text vector

Returns:
a Vector value

setLegendText

public void setLegendText(java.util.Vector lt)
Set the legend text vector

Parameters:
lt - a Vector value

getMin

public double getMin()
Get the min y value

Returns:
a double value

setMin

public void setMin(double m)
Set the min y value

Parameters:
m - a double value

getMax

public double getMax()
Get the max y value

Returns:
a double value

setMax

public void setMax(double m)
Set the max y value

Parameters:
m - a double value

getDataPoint

public double[] getDataPoint()
Get the data point

Returns:
a double[] value

setDataPoint

public void setDataPoint(double[] dp)
Set the data point

Parameters:
dp - a double[] value

setReset

public void setReset(boolean reset)
Set the reset flag

Parameters:
reset - a boolean value

getReset

public boolean getReset()
get the value of the reset flag

Returns:
a boolean value