Class GUI

    • Constructor Detail

      • GUI

        public GUI()
        Constructor
        Sets up the gui and initializes all the other previously uninitialized variables.
    • Method Detail

      • getMenuBar

        public JMenuBar getMenuBar()
        Get the menu bar for this application.
        Returns:
        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.
        Specified by:
        layoutCompleted in interface LayoutCompleteEventListener
      • main

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