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

Class weka.gui.beans.StripChart

java.lang.Object
    |
    +----java.awt.Component
            |
            +----java.awt.Container
                    |
                    +----javax.swing.JComponent
                            |
                            +----javax.swing.JPanel
                                    |
                                    +----weka.gui.beans.StripChart

public class StripChart
extends javax.swing.JPanel
implements ChartListener, Visible, BeanCommon, UserRequestAcceptor, java.io.Serializable
Bean that can display a horizontally scrolling strip chart. Can display multiple plots simultaneously

Version:
$Revision: 1.7 $
Author:
Mark Hall

Constructor Index

 o StripChart()
 

Method Index

 o acceptDataPoint(ChartEvent)
Accept a data point (encapsulated in a chart event) to plot
 o acceptDataPoint(double[])
Accept a data point to plot
 o connectionAllowed(String)
Returns true if, at this time, the object will accept a connection via the named event
 o connectionNotification(String, Object)
Notify this object that it has been registered as a listener with a source for recieving events described by the named event This object is responsible for recording this fact.
 o disconnectionNotification(String, Object)
Notify this object that it has been deregistered as a listener with a source for named event.
 o enumerateRequests()
Describe enumerateRequests method here.
 o getRefreshFreq()
Get the refresh frequency
 o getVisual()
Get the visual appearance of this bean
 o getXLabelFreq()
Get the frequency by which x axis values are printed
 o main(String[])
Tests out the StripChart from the command line
 o performRequest(String)
Describe performRequest method here.
 o refreshFreqTipText()
GUI Tip text
 o setLog(Logger)
Set a logger
 o setRefreshFreq(int)
Set how often (in x axis points) to refresh the display
 o setVisual(BeanVisual)
Set the visual appearance of this bean
 o setXLabelFreq(int)
Set the frequency for printing x label values
 o showChart()
Popup the chart panel
 o stop()
Stop any processing that the bean might be doing.
 o useDefaultVisual()
Use the default visual appearance for this bean
 o xLabelFreqTipText()
GUI Tip text

Constructor Detail

 o StripChart
public StripChart()

Method Detail

 o xLabelFreqTipText
public java.lang.String xLabelFreqTipText()
          GUI Tip text
Returns:
a String value
 o setXLabelFreq
public void setXLabelFreq(int freq)
          Set the frequency for printing x label values
Parameters:
freq - an int value
 o getXLabelFreq
public int getXLabelFreq()
          Get the frequency by which x axis values are printed
Returns:
an int value
 o refreshFreqTipText
public java.lang.String refreshFreqTipText()
          GUI Tip text
Returns:
a String value
 o setRefreshFreq
public void setRefreshFreq(int freq)
          Set how often (in x axis points) to refresh the display
Parameters:
freq - an int value
 o getRefreshFreq
public int getRefreshFreq()
          Get the refresh frequency
Returns:
an int value
 o showChart
public void showChart()
          Popup the chart panel
 o acceptDataPoint
public void acceptDataPoint(ChartEvent e)
          Accept a data point (encapsulated in a chart event) to plot
Parameters:
e - a ChartEvent value
 o acceptDataPoint
public void acceptDataPoint(double dataPoint[])
          Accept a data point to plot
Parameters:
dataPoint - a double[] value
 o setVisual
public void setVisual(BeanVisual newVisual)
          Set the visual appearance of this bean
Parameters:
newVisual - a BeanVisual value
 o getVisual
public BeanVisual getVisual()
          Get the visual appearance of this bean
 o useDefaultVisual
public void useDefaultVisual()
          Use the default visual appearance for this bean
 o stop
public void stop()
          Stop any processing that the bean might be doing.
 o setLog
public void setLog(Logger logger)
          Set a logger
Parameters:
logger - a weka.gui.Logger value
 o connectionAllowed
public boolean connectionAllowed(java.lang.String eventName)
          Returns true if, at this time, the object will accept a connection via the named event
Parameters:
eventName - the name of the event
Returns:
true if the object will accept a connection
 o connectionNotification
public void connectionNotification(java.lang.String eventName,
                                   java.lang.Object source)
          Notify this object that it has been registered as a listener with a source for recieving events described by the named event This object is responsible for recording this fact.
Parameters:
eventName - the event
source - the source with which this object has been registered as a listener
 o disconnectionNotification
public void disconnectionNotification(java.lang.String eventName,
                                      java.lang.Object source)
          Notify this object that it has been deregistered as a listener with a source for named event. This object is responsible for recording this fact.
Parameters:
eventName - the event
source - the source with which this object has been registered as a listener
 o enumerateRequests
public java.util.Enumeration enumerateRequests()
          Describe enumerateRequests method here.
Returns:
an Enumeration value
 o performRequest
public void performRequest(java.lang.String request)
          Describe performRequest method here.
Parameters:
request - a String value
Throws:
java.lang.IllegalArgumentException - if an error occurs
 o main
public static void main(java.lang.String args[])
          Tests out the StripChart from the command line
Parameters:
args - ignored

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