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

Class weka.gui.beans.AbstractTrainingSetProducer

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

public abstract class AbstractTrainingSetProducer
extends javax.swing.JPanel
implements TrainingSetProducer, Visible, BeanCommon, java.io.Serializable
Abstract class for TrainingSetProducers that contains default implementations of add/remove listener methods and default visual representation

Since:
1.0
Version:
$Revision: 1.2 $
Author:
Mark Hall
See Also:
TrainingSetProducer, DataSetListener

Constructor Index

 o AbstractTrainingSetProducer()
Creates a new AbstractTrainingSetProducer instance.

Method Index

 o addTrainingSetListener(TrainingSetListener)
Add a training set listener
 o connectionAllowed(String)
Returns true if, at this time, the object will accept a connection according to the supplied event name
 o connectionNotification(String, Object)
Notify this object that it has been registered as a listener with a source with respect to the supplied event name
 o disconnectionNotification(String, Object)
Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name
 o getVisual()
Get the visual for this bean
 o removeTrainingSetListener(TrainingSetListener)
Remove a training set listener
 o setLog(Logger)
Set a logger
 o setVisual(BeanVisual)
Set the visual for this bean
 o stop()
Stop any processing that the bean might be doing.
 o useDefaultVisual()
Use the default visual for this bean

Constructor Detail

 o AbstractTrainingSetProducer
public AbstractTrainingSetProducer()
          Creates a new AbstractTrainingSetProducer instance.

Method Detail

 o addTrainingSetListener
public void addTrainingSetListener(TrainingSetListener tsl)
          Add a training set listener
Parameters:
tsl - a TrainingSetListener value
 o removeTrainingSetListener
public void removeTrainingSetListener(TrainingSetListener tsl)
          Remove a training set listener
Parameters:
tsl - a TrainingSetListener value
 o setVisual
public void setVisual(BeanVisual newVisual)
          Set the visual for this bean
Parameters:
newVisual - a BeanVisual value
 o getVisual
public BeanVisual getVisual()
          Get the visual for this bean
Returns:
a BeanVisual value
 o useDefaultVisual
public void useDefaultVisual()
          Use the default visual for this bean
 o connectionAllowed
public boolean connectionAllowed(java.lang.String eventName)
          Returns true if, at this time, the object will accept a connection according to the supplied event name
Parameters:
eventName - 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 with respect to the supplied event name
Parameters:
eventName -
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 with respect to the supplied event name
Parameters:
eventName - the event name
source - the source with which this object has been registered as a listener
 o setLog
public void setLog(Logger logger)
          Set a logger
Parameters:
logger - a weka.gui.Logger value
 o stop
public abstract void stop()
          Stop any processing that the bean might be doing. Subclass must implement

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