类 GUI

所有已实现的接口:
ImageObserver, MenuContainer, Serializable, Accessible, LayoutCompleteEventListener

public class GUI extends JPanel implements LayoutCompleteEventListener
GUI interface to Bayesian Networks. Allows editing Bayesian networks on screen and provides GUI interface to various Bayesian network facilities in Weka, including random network generation, data set generation and Bayesion network inference.
版本:
$Revision: 4905 $
作者:
Remco Bouckaert (remco@cs.waikato.ac.nz)
另请参阅:
  • 构造器详细资料

    • GUI

      public GUI()
      Constructor
      Sets up the gui and initializes all the other previously uninitialized variables.
  • 方法详细资料

    • getMenuBar

      public JMenuBar getMenuBar()
      Get the menu bar for this application.
      返回:
      the menu bar
    • setAppropriateSize

      public void setAppropriateSize()
      Sets the preferred size for m_GraphPanel GraphPanel to the minimum size that is neccessary to display the graph.
    • layoutCompleted

      public void layoutCompleted(LayoutCompleteEvent le)
      This method is an implementation for LayoutCompleteEventListener class. It sets the size appropriate for m_GraphPanel GraphPanel and and revalidates it's container JScrollPane once a LayoutCompleteEvent is received from the LayoutEngine. Also, it updates positions of the Bayesian network stored in m_BayesNet.
      指定者:
      layoutCompleted 在接口中 LayoutCompleteEventListener
    • readBIFFromFile

      public void readBIFFromFile(String sFileName) throws BIFFormatException, IOException
      BIF reader
      Reads a graph description in XMLBIF03 from an file with name sFileName
      抛出:
      BIFFormatException
      IOException
    • main

      public static void main(String[] args)
      Main method. Builds up menus and reads from file if one is specified.