Class JSIMGraphMain

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class JSIMGraphMain extends JMTFrame
JSIMGraphMain contains the main window of the jmodel project, it implements the Singleton pattern. no need to create more then 1 main window!
Author:
Federico Granata, Bertoli Marco Date: 3-giu-2003 Time: 14.09.14
See Also:
  • Field Details

  • Constructor Details

    • JSIMGraphMain

      public JSIMGraphMain()
      Creates the new Main window of the application.
  • Method Details

    • setGraph

      public void setGraph(org.jgraph.JGraph newGraph)
      Sets the new Graph inside the scroll panel.
      Parameters:
      newGraph -
    • canBeClosed

      public boolean canBeClosed()
      Overrides:
      canBeClosed in class JMTFrame
      Returns:
      true iff this frame can be closed. Please override this method to create save on exit behaviours
      See Also:
    • doClose

      protected void doClose()
      Description copied from class: JMTFrame
      Override this method to implement a custom behaviour before windows dispose
      Overrides:
      doClose in class JMTFrame
      See Also:
    • removeGraph

      public void removeGraph()
      Removes the current graph from the main window.
    • getScroll

      public JScrollPane getScroll()
    • main

      public static void main(String[] args)
      main function it activates the application .
      Parameters:
      args -
    • updateTitle

      public void updateTitle(String filename)
      Updates this window title adding the file name
      Parameters:
      filename - the file name or null to remove it.