weka4ws.gui.kflow
Class ClassAssigner

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjavax.swing.JComponent
              extended byjavax.swing.JPanel
                  extended byweka4ws.gui.kflow.ClassAssigner
All Implemented Interfaces:
javax.accessibility.Accessible, weka.gui.beans.BeanCommon, weka.gui.beans.DataSource, weka.gui.beans.DataSourceListener, weka.gui.beans.EventConstraints, java.util.EventListener, java.awt.image.ImageObserver, weka.gui.beans.InstanceListener, java.awt.MenuContainer, java.io.Serializable, weka.gui.beans.TestSetListener, weka.gui.beans.TestSetProducer, weka.gui.beans.TrainingSetListener, weka.gui.beans.TrainingSetProducer, weka.gui.beans.Visible

public class ClassAssigner
extends javax.swing.JPanel
implements weka.gui.beans.Visible, weka.gui.beans.DataSourceListener, weka.gui.beans.TrainingSetListener, weka.gui.beans.TestSetListener, weka.gui.beans.DataSource, weka.gui.beans.TrainingSetProducer, weka.gui.beans.TestSetProducer, weka.gui.beans.BeanCommon, weka.gui.beans.EventConstraints, java.io.Serializable, weka.gui.beans.InstanceListener

Bean that assigns a class attribute to a data set.

Version:
$Revision: 1.9.2.1 $
Author:
Mark Hall, Marco Lackovic
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class javax.swing.JComponent
javax.swing.JComponent.AccessibleJComponent
 
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
ClassAssigner()
           
 
Method Summary
 void acceptDataSet(weka.gui.beans.DataSetEvent e)
           
 void acceptInstance(weka.gui.beans.InstanceEvent e)
           
 void acceptTestSet(weka.gui.beans.TestSetEvent e)
           
 void acceptTrainingSet(weka.gui.beans.TrainingSetEvent e)
           
 void addDataFormatListener(weka.gui.beans.DataFormatListener dfl)
           
 void addDataSourceListener(weka.gui.beans.DataSourceListener tsl)
           
 void addInstanceListener(weka.gui.beans.InstanceListener tsl)
           
 void addTestSetListener(weka.gui.beans.TestSetListener tsl)
           
 void addTrainingSetListener(weka.gui.beans.TrainingSetListener tsl)
           
 java.lang.String classColumnTipText()
          Tool tip text for this property
 boolean connectionAllowed(java.beans.EventSetDescriptor esd)
          Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor
 boolean connectionAllowed(java.lang.String eventName)
          Returns true if, at this time, the object will accept a connection according to the supplied event name
 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
 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
 boolean eventGeneratable(java.lang.String eventName)
          Returns true, if at the current time, the named event could be generated.
 java.lang.String getClassColumn()
           
 weka.core.Instances getConnectedFormat()
          Returns the structure of the incoming instances (if any)
 weka.gui.beans.BeanVisual getVisual()
           
 java.lang.String globalInfo()
          Global info for this bean
 void removeDataFormatListener(weka.gui.beans.DataFormatListener dfl)
           
 void removeDataSourceListener(weka.gui.beans.DataSourceListener tsl)
           
 void removeInstanceListener(weka.gui.beans.InstanceListener tsl)
           
 void removeTestSetListener(weka.gui.beans.TestSetListener tsl)
           
 void removeTrainingSetListener(weka.gui.beans.TrainingSetListener tsl)
           
 void setClassColumn(java.lang.String col)
           
 void setLog(weka.gui.Logger logger)
           
 void setVisual(weka.gui.beans.BeanVisual newVisual)
           
 void stop()
           
 void useDefaultVisual()
           
 
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, setUI, updateUI
 
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBorder, getBounds, getClientProperty, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paint, paintImmediately, paintImmediately, print, printAll, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, remove, remove, removeAll, removeContainerListener, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setLayout, transferFocusBackward, transferFocusDownCycle, validate
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, contains, createImage, createImage, createVolatileImage, createVolatileImage, dispatchEvent, enable, enableInputMethods, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClassAssigner

public ClassAssigner()
Method Detail

globalInfo

public java.lang.String globalInfo()
Global info for this bean

Returns:
a String value

classColumnTipText

public java.lang.String classColumnTipText()
Tool tip text for this property

Returns:
a String value

getConnectedFormat

public weka.core.Instances getConnectedFormat()
Returns the structure of the incoming instances (if any)

Returns:
an Instances value

setClassColumn

public void setClassColumn(java.lang.String col)

getClassColumn

public java.lang.String getClassColumn()

acceptDataSet

public void acceptDataSet(weka.gui.beans.DataSetEvent e)
Specified by:
acceptDataSet in interface weka.gui.beans.DataSourceListener

acceptTrainingSet

public void acceptTrainingSet(weka.gui.beans.TrainingSetEvent e)
Specified by:
acceptTrainingSet in interface weka.gui.beans.TrainingSetListener

acceptTestSet

public void acceptTestSet(weka.gui.beans.TestSetEvent e)
Specified by:
acceptTestSet in interface weka.gui.beans.TestSetListener

acceptInstance

public void acceptInstance(weka.gui.beans.InstanceEvent e)
Specified by:
acceptInstance in interface weka.gui.beans.InstanceListener

addInstanceListener

public void addInstanceListener(weka.gui.beans.InstanceListener tsl)
Specified by:
addInstanceListener in interface weka.gui.beans.DataSource

removeInstanceListener

public void removeInstanceListener(weka.gui.beans.InstanceListener tsl)
Specified by:
removeInstanceListener in interface weka.gui.beans.DataSource

addDataSourceListener

public void addDataSourceListener(weka.gui.beans.DataSourceListener tsl)
Specified by:
addDataSourceListener in interface weka.gui.beans.DataSource

removeDataSourceListener

public void removeDataSourceListener(weka.gui.beans.DataSourceListener tsl)
Specified by:
removeDataSourceListener in interface weka.gui.beans.DataSource

addTrainingSetListener

public void addTrainingSetListener(weka.gui.beans.TrainingSetListener tsl)
Specified by:
addTrainingSetListener in interface weka.gui.beans.TrainingSetProducer

removeTrainingSetListener

public void removeTrainingSetListener(weka.gui.beans.TrainingSetListener tsl)
Specified by:
removeTrainingSetListener in interface weka.gui.beans.TrainingSetProducer

addTestSetListener

public void addTestSetListener(weka.gui.beans.TestSetListener tsl)
Specified by:
addTestSetListener in interface weka.gui.beans.TestSetProducer

removeTestSetListener

public void removeTestSetListener(weka.gui.beans.TestSetListener tsl)
Specified by:
removeTestSetListener in interface weka.gui.beans.TestSetProducer

addDataFormatListener

public void addDataFormatListener(weka.gui.beans.DataFormatListener dfl)

removeDataFormatListener

public void removeDataFormatListener(weka.gui.beans.DataFormatListener dfl)

setVisual

public void setVisual(weka.gui.beans.BeanVisual newVisual)
Specified by:
setVisual in interface weka.gui.beans.Visible

getVisual

public weka.gui.beans.BeanVisual getVisual()
Specified by:
getVisual in interface weka.gui.beans.Visible

useDefaultVisual

public void useDefaultVisual()
Specified by:
useDefaultVisual in interface weka.gui.beans.Visible

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

Specified by:
connectionAllowed in interface weka.gui.beans.BeanCommon
Parameters:
eventName - the event
Returns:
true if the object will accept a connection

connectionAllowed

public boolean connectionAllowed(java.beans.EventSetDescriptor esd)
Returns true if, at this time, the object will accept a connection according to the supplied EventSetDescriptor

Specified by:
connectionAllowed in interface weka.gui.beans.BeanCommon
Parameters:
esd - the EventSetDescriptor
Returns:
true if the object will accept a connection

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

Specified by:
connectionNotification in interface weka.gui.beans.BeanCommon
Parameters:
eventName - the event
source - the source with which this object has been registered as a listener

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

Specified by:
disconnectionNotification in interface weka.gui.beans.BeanCommon
Parameters:
eventName - the event
source - the source with which this object has been registered as a listener

setLog

public void setLog(weka.gui.Logger logger)
Specified by:
setLog in interface weka.gui.beans.BeanCommon

stop

public void stop()
Specified by:
stop in interface weka.gui.beans.BeanCommon

eventGeneratable

public boolean eventGeneratable(java.lang.String eventName)
Returns true, if at the current time, the named event could be generated. Assumes that the supplied event name is an event that could be generated by this bean

Specified by:
eventGeneratable in interface weka.gui.beans.EventConstraints
Parameters:
eventName - the name of the event in question
Returns:
true if the named event could be generated at this point in time