程序包 weka.gui.beans

类 MetaBean

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, BeanCommon, EventConstraints, UserRequestAcceptor, Visible

public class MetaBean extends JPanel implements BeanCommon, Visible, EventConstraints, Serializable, UserRequestAcceptor
A meta bean that encapsulates several other regular beans, useful for grouping large KnowledgeFlows.
版本:
$Revision: 6017 $
作者:
Mark Hall (mhall at cs dot waikato dot ac dot nz)
另请参阅:
  • 构造器详细资料

    • MetaBean

      public MetaBean()
  • 方法详细资料

    • setCustomName

      public void setCustomName(String name)
      Set a custom (descriptive) name for this bean
      指定者:
      setCustomName 在接口中 BeanCommon
      参数:
      name - the name to use
    • getCustomName

      public String getCustomName()
      Get the custom (descriptive) name for this bean (if one has been set)
      指定者:
      getCustomName 在接口中 BeanCommon
      返回:
      the custom name (or the default name)
    • setAssociatedConnections

      public void setAssociatedConnections(Vector ac)
    • getAssociatedConnections

      public Vector getAssociatedConnections()
    • setSubFlow

      public void setSubFlow(Vector sub)
    • getSubFlow

      public Vector getSubFlow()
    • setInputs

      public void setInputs(Vector inputs)
    • getInputs

      public Vector getInputs()
    • setOutputs

      public void setOutputs(Vector outputs)
    • getOutputs

      public Vector getOutputs()
    • subFlowContains

      public boolean subFlowContains(BeanInstance toCheck)
    • inputsContains

      public boolean inputsContains(BeanInstance toCheck)
    • outputsContains

      public boolean outputsContains(BeanInstance toCheck)
    • getBeansInSubFlow

      public Vector getBeansInSubFlow()
      Return all the beans in the sub flow
      返回:
      a Vector of all the beans in the sub flow
    • getBeansInInputs

      public Vector getBeansInInputs()
      Return all the beans in the inputs
      返回:
      a Vector of all the beans in the inputs
    • getBeansInOutputs

      public Vector getBeansInOutputs()
      Return all the beans in the outputs
      返回:
      a Vector of all the beans in the outputs
    • getBeanInfoSubFlow

      public Vector getBeanInfoSubFlow()
    • getBeanInfoInputs

      public Vector getBeanInfoInputs()
    • getBeanInfoOutputs

      public Vector getBeanInfoOutputs()
    • getOriginalCoords

      public Vector getOriginalCoords()
      returns the vector containing the original coordinates (instances of class Point) for the inputs
      返回:
      the containing the coord Points of the original inputs
    • setOriginalCoords

      public void setOriginalCoords(Vector value)
      sets the vector containing the original coordinates (instances of class Point) for the inputs
      参数:
      value - the vector containing the points of the coords of the original inputs
    • shiftBeans

      public void shiftBeans(BeanInstance toShiftTo, boolean save)
      Move coords of all inputs and outputs of this meta bean to the coords of the supplied BeanInstance. Typically the supplied BeanInstance is the BeanInstance that encapsulates this meta bean; the result in this case is that all inputs and outputs are shifted so that their coords coincide with the meta bean and all connections to them appear (visually) to go to/from the meta bean.
      参数:
      toShiftTo - the BeanInstance whos coordinates will be used.
      save - true if coordinates are to be saved.
    • restoreBeans

      public void restoreBeans()
    • eventGeneratable

      public boolean eventGeneratable(EventSetDescriptor esd)
      Returns true, if at the current time, the event described by the supplied event descriptor could be generated.
      参数:
      esd - an EventSetDescriptor value
      返回:
      a boolean value
    • eventGeneratable

      public boolean eventGeneratable(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
      指定者:
      eventGeneratable 在接口中 EventConstraints
      参数:
      eventName - the name of the event in question
      返回:
      true if the named event could be generated at this point in time
    • connectionAllowed

      public boolean connectionAllowed(EventSetDescriptor esd)
      Returns true if, at this time, the object will accept a connection with respect to the supplied EventSetDescriptor
      指定者:
      connectionAllowed 在接口中 BeanCommon
      参数:
      esd - the EventSetDescriptor
      返回:
      true if the object will accept a connection
    • connectionAllowed

      public boolean connectionAllowed(String eventName)
      从接口复制的说明: BeanCommon
      Returns true if, at this time, the object will accept a connection via the named event
      指定者:
      connectionAllowed 在接口中 BeanCommon
      参数:
      eventName - the name of the event
      返回:
      true if the object will accept a connection
    • connectionNotification

      public void connectionNotification(String eventName, Object source)
      Notify this object that it has been registered as a listener with a source with respect to the named event. This is just a dummy method in this class to satisfy the interface. Specific code in BeanConnection takes care of this method for MetaBeans
      指定者:
      connectionNotification 在接口中 BeanCommon
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener
    • disconnectionNotification

      public 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. This is just a dummy method in this class to satisfy the interface. Specific code in BeanConnection takes care of this method for MetaBeans
      指定者:
      disconnectionNotification 在接口中 BeanCommon
      参数:
      eventName - the event
      source - the source with which this object has been registered as a listener
    • stop

      public void stop()
      Stop all encapsulated beans
      指定者:
      stop 在接口中 BeanCommon
    • isBusy

      public boolean isBusy()
      Returns true if. at this time, the bean is busy with some (i.e. perhaps a worker thread is performing some calculation).
      指定者:
      isBusy 在接口中 BeanCommon
      返回:
      true if the bean is busy.
    • setVisual

      public void setVisual(BeanVisual newVisual)
      Sets the visual appearance of this wrapper bean
      指定者:
      setVisual 在接口中 Visible
      参数:
      newVisual - a BeanVisual value
    • getVisual

      public BeanVisual getVisual()
      Gets the visual appearance of this wrapper bean
      指定者:
      getVisual 在接口中 Visible
      返回:
      a BeanVisual value
    • useDefaultVisual

      public void useDefaultVisual()
      Use the default visual appearance for this bean
      指定者:
      useDefaultVisual 在接口中 Visible
    • enumerateRequests

      public Enumeration enumerateRequests()
      Return an enumeration of requests that can be made by the user
      指定者:
      enumerateRequests 在接口中 UserRequestAcceptor
      返回:
      an Enumeration value
    • setSubFlowPreview

      public void setSubFlowPreview(ImageIcon sfp)
    • performRequest

      public void performRequest(String request)
      Perform a particular request
      指定者:
      performRequest 在接口中 UserRequestAcceptor
      参数:
      request - the request to perform
      抛出:
      IllegalArgumentException - if an error occurs
    • setLog

      public void setLog(Logger logger)
      Set a logger
      指定者:
      setLog 在接口中 BeanCommon
      参数:
      logger - a Logger value
    • removePropertyChangeListenersSubFlow

      public void removePropertyChangeListenersSubFlow(PropertyChangeListener pcl)
    • addPropertyChangeListenersSubFlow

      public void addPropertyChangeListenersSubFlow(PropertyChangeListener pcl)
    • canAcceptConnection

      public boolean canAcceptConnection(Class listenerClass)
      Checks to see if any of the inputs to this group implements the supplied listener class
      参数:
      listenerClass - the listener to check for
    • getSuitableTargets

      public Vector getSuitableTargets(EventSetDescriptor esd)
      Return a list of input beans capable of receiving the supplied event
      参数:
      esd - the event in question
      返回:
      a vector of beans capable of handling the event