Class GraphViewer

All Implemented Interfaces:
ImageObserver, MenuContainer, BeanContextChild, Serializable, EventListener, Accessible, GraphListener, UserRequestAcceptor, Visible

public class GraphViewer extends JPanel implements Visible, GraphListener, UserRequestAcceptor, Serializable, BeanContextChild
A bean encapsulating weka.gui.treevisualize.TreeVisualizer
Version:
$Revision: 14494 $
Author:
Mark Hall
See Also:
  • Constructor Details

    • GraphViewer

      public GraphViewer()
  • Method Details

    • globalInfo

      public String globalInfo()
      Global info for this bean
      Returns:
      a String value
    • setBeanContext

      public void setBeanContext(BeanContext bc)
      Set a bean context for this bean
      Specified by:
      setBeanContext in interface BeanContextChild
      Parameters:
      bc - a BeanContext value
    • getBeanContext

      public BeanContext getBeanContext()
      Return the bean context (if any) that this bean is embedded in
      Specified by:
      getBeanContext in interface BeanContextChild
      Returns:
      a BeanContext value
    • addVetoableChangeListener

      public void addVetoableChangeListener(String name, VetoableChangeListener vcl)
      Add a vetoable change listener to this bean
      Specified by:
      addVetoableChangeListener in interface BeanContextChild
      Parameters:
      name - the name of the property of interest
      vcl - a VetoableChangeListener value
    • removeVetoableChangeListener

      public void removeVetoableChangeListener(String name, VetoableChangeListener vcl)
      Remove a vetoable change listener from this bean
      Specified by:
      removeVetoableChangeListener in interface BeanContextChild
      Parameters:
      name - the name of the property of interest
      vcl - a VetoableChangeListener value
    • acceptGraph

      public void acceptGraph(GraphEvent e)
      Accept a graph
      Specified by:
      acceptGraph in interface GraphListener
      Parameters:
      e - a GraphEvent value
    • setVisual

      public void setVisual(BeanVisual newVisual)
      Set the visual appearance of this bean
      Specified by:
      setVisual in interface Visible
      Parameters:
      newVisual - a BeanVisual value
    • getVisual

      public BeanVisual getVisual()
      Get the visual appearance of this bean
      Specified by:
      getVisual in interface Visible
      Returns:
      a BeanVisual value
    • useDefaultVisual

      public void useDefaultVisual()
      Use the default visual appearance
      Specified by:
      useDefaultVisual in interface Visible
    • showResults

      public void showResults()
      Popup a result list from which the user can select a graph to view
    • enumerateRequests

      public Enumeration<String> enumerateRequests()
      Return an enumeration of user requests
      Specified by:
      enumerateRequests in interface UserRequestAcceptor
      Returns:
      an Enumeration value
    • performRequest

      public void performRequest(String request)
      Perform the named request
      Specified by:
      performRequest in interface UserRequestAcceptor
      Parameters:
      request - a String value
      Throws:
      IllegalArgumentException - if an error occurs