程序包 weka.gui.beans

类 ChartEvent

java.lang.Object
java.util.EventObject
weka.gui.beans.ChartEvent
所有已实现的接口:
Serializable

public class ChartEvent extends EventObject
Event encapsulating info for plotting a data point on the StripChart
版本:
$Revision: 1.4 $
作者:
Mark Hall
另请参阅:
  • 构造器详细资料

    • ChartEvent

      public ChartEvent(Object source, Vector legendText, double min, double max, double[] dataPoint, boolean reset)
      Creates a new ChartEvent instance.
      参数:
      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(Object source)
      Creates a new ChartEvent instance.
      参数:
      source - the source of the event
  • 方法详细资料

    • getLegendText

      public Vector getLegendText()
      Get the legend text vector
      返回:
      a Vector value
    • setLegendText

      public void setLegendText(Vector lt)
      Set the legend text vector
      参数:
      lt - a Vector value
    • getMin

      public double getMin()
      Get the min y value
      返回:
      a double value
    • setMin

      public void setMin(double m)
      Set the min y value
      参数:
      m - a double value
    • getMax

      public double getMax()
      Get the max y value
      返回:
      a double value
    • setMax

      public void setMax(double m)
      Set the max y value
      参数:
      m - a double value
    • getDataPoint

      public double[] getDataPoint()
      Get the data point
      返回:
      a double[] value
    • setDataPoint

      public void setDataPoint(double[] dp)
      Set the data point
      参数:
      dp - a double[] value
    • setReset

      public void setReset(boolean reset)
      Set the reset flag
      参数:
      reset - a boolean value
    • getReset

      public boolean getReset()
      get the value of the reset flag
      返回:
      a boolean value