All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home

Class weka.gui.beans.ChartEvent

java.lang.Object
    |
    +----java.util.EventObject
            |
            +----weka.gui.beans.ChartEvent

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

Constructor Index

 o ChartEvent(Object)
Creates a new ChartEvent instance.
 o ChartEvent(Object, Vector, double, double, double[], boolean)
Creates a new ChartEvent instance.

Method Index

 o getDataPoint()
Get the data point
 o getLegendText()
Get the legend text vector
 o getMax()
Get the max y value
 o getMin()
Get the min y value
 o getReset()
get the value of the reset flag
 o setDataPoint(double[])
Set the data point
 o setLegendText(Vector)
Set the legend text vector
 o setMax(double)
Set the max y value
 o setMin(double)
Set the min y value
 o setReset(boolean)
Set the reset flag

Constructor Detail

 o 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
 o ChartEvent
public ChartEvent(java.lang.Object source)
          Creates a new ChartEvent instance.
Parameters:
source - the source of the event

Method Detail

 o getLegendText
public java.util.Vector getLegendText()
          Get the legend text vector
Returns:
a Vector value
 o setLegendText
public void setLegendText(java.util.Vector lt)
          Set the legend text vector
Parameters:
lt - a Vector value
 o getMin
public double getMin()
          Get the min y value
Returns:
a double value
 o setMin
public void setMin(double m)
          Set the min y value
Parameters:
m - a double value
 o getMax
public double getMax()
          Get the max y value
Returns:
a double value
 o setMax
public void setMax(double m)
          Set the max y value
Parameters:
m - a double value
 o getDataPoint
public double[] getDataPoint()
          Get the data point
Returns:
a double[] value
 o setDataPoint
public void setDataPoint(double dp[])
          Set the data point
Parameters:
dp - a double[] value
 o setReset
public void setReset(boolean reset)
          Set the reset flag
Parameters:
reset - a boolean value
 o getReset
public boolean getReset()
          get the value of the reset flag
Returns:
a boolean value

All Packages  Class Hierarchy  This Package  Previous  Next  Index  WEKA's home