|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
weka.gui.beans.AbstractTrainAndTestSetProducer
public abstract class AbstractTrainAndTestSetProducer
Abstract base class for TrainAndTestSetProducers that contains default implementations of add/remove listener methods and defualt visual representation.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.BaselineResizeBehavior |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
TOOL_TIP_TEXT_KEY, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AbstractTrainAndTestSetProducer()
Creates a new AbstractTrainAndTestSetProducer instance. |
|
| Method Summary | |
|---|---|
abstract void |
acceptDataSet(DataSetEvent e)
Subclass must implement |
void |
addTestSetListener(TestSetListener tsl)
Add a test set listener |
void |
addTrainingSetListener(TrainingSetListener tsl)
Add a training set listener |
boolean |
connectionAllowed(EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor |
boolean |
connectionAllowed(String eventName)
Returns true if, at this time, the object will accept a connection according to the supplied event name |
void |
connectionNotification(String eventName,
Object source)
Notify this object that it has been registered as a listener with a source with respect to the supplied event name |
void |
disconnectionNotification(String eventName,
Object source)
Notify this object that it has been deregistered as a listener with a source with respect to the supplied event name |
BeanVisual |
getVisual()
Get the visual for this bean |
void |
removeTestSetListener(TestSetListener tsl)
Remove a test set listener |
void |
removeTrainingSetListener(TrainingSetListener tsl)
Remove a training set listener |
void |
setLog(Logger logger)
Set a log for this bean |
void |
setVisual(BeanVisual newVisual)
Set the visual for this bean |
abstract void |
stop()
Stop any processing that the bean might be doing. |
void |
useDefaultVisual()
Use the default visual for this bean |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface weka.gui.beans.BeanCommon |
|---|
getCustomName, isBusy, setCustomName |
| Constructor Detail |
|---|
public AbstractTrainAndTestSetProducer()
AbstractTrainAndTestSetProducer instance.
| Method Detail |
|---|
public abstract void acceptDataSet(DataSetEvent e)
acceptDataSet in interface DataSourceListenere - a DataSetEvent valuepublic void addTrainingSetListener(TrainingSetListener tsl)
addTrainingSetListener in interface TrainingSetProducertsl - a TrainingSetListener valuepublic void removeTrainingSetListener(TrainingSetListener tsl)
removeTrainingSetListener in interface TrainingSetProducertsl - a TrainingSetListener valuepublic void addTestSetListener(TestSetListener tsl)
addTestSetListener in interface TestSetProducertsl - a TestSetListener valuepublic void removeTestSetListener(TestSetListener tsl)
removeTestSetListener in interface TestSetProducertsl - a TestSetListener valuepublic void setVisual(BeanVisual newVisual)
setVisual in interface VisiblenewVisual - a BeanVisual valuepublic BeanVisual getVisual()
getVisual in interface VisibleBeanVisual valuepublic void useDefaultVisual()
useDefaultVisual in interface Visiblepublic boolean connectionAllowed(String eventName)
connectionAllowed in interface BeanCommoneventName - the event
public boolean connectionAllowed(EventSetDescriptor esd)
connectionAllowed in interface BeanCommonesd - the EventSetDescriptor
public void connectionNotification(String eventName,
Object source)
connectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listener
public void disconnectionNotification(String eventName,
Object source)
disconnectionNotification in interface BeanCommoneventName - the eventsource - the source with which this object has been registered as
a listenerpublic void setLog(Logger logger)
setLog in interface BeanCommonlogger - a weka.gui.Logger valuepublic abstract void stop()
stop in interface BeanCommon
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||