java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
de.uni_trier.wi2.procake.gui.objecteditor.nestworkfloweditor.editor.BasicGraphEditor
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
NESTWorkflowEditor

public class BasicGraphEditor extends JPanel
See Also:
  • Field Details

    • logger

      protected static final org.slf4j.Logger logger
    • frameless

      protected final boolean frameless
    • graphComponent

      protected com.mxgraph.swing.mxGraphComponent graphComponent
    • graphOutline

      protected com.mxgraph.swing.mxGraphOutline graphOutline
    • libraryPane

      protected JTabbedPane libraryPane
    • undoManager

      protected com.mxgraph.util.mxUndoManager undoManager
    • appTitle

      protected String appTitle
    • statusBar

      protected JLabel statusBar
    • currentFile

      protected File currentFile
    • modified

      protected boolean modified
      Flag indicating whether the current graph has been modified
    • rubberband

      protected com.mxgraph.swing.handler.mxRubberband rubberband
    • keyboardHandler

      protected com.mxgraph.swing.handler.mxKeyboardHandler keyboardHandler
    • undoHandler

      protected com.mxgraph.util.mxEventSource.mxIEventListener undoHandler
    • changeTracker

      protected com.mxgraph.util.mxEventSource.mxIEventListener changeTracker
    • start

      protected Point start
      Starting Point of Mouse when clicked
  • Constructor Details

    • BasicGraphEditor

      public BasicGraphEditor(String appTitle, com.mxgraph.swing.mxGraphComponent component, boolean frameless, boolean generateToolbar)
    • BasicGraphEditor

      public BasicGraphEditor(String appTitle, com.mxgraph.swing.mxGraphComponent component, boolean frameless)
  • Method Details

    • createUndoManager

      protected com.mxgraph.util.mxUndoManager createUndoManager()
    • installHandlers

      protected void installHandlers()
    • installToolBar

      protected void installToolBar()
    • createStatusBar

      protected JLabel createStatusBar()
    • installRepaintListener

      protected void installRepaintListener()
    • insertPalette

      public EditorPalette insertPalette(String title)
    • mouseWheelMoved

      protected void mouseWheelMoved(MouseWheelEvent e)
    • showOutlinePopupMenu

      protected void showOutlinePopupMenu(MouseEvent e)
    • showGraphPopupMenu

      protected void showGraphPopupMenu(MouseEvent e)
    • mouseLocationChanged

      protected void mouseLocationChanged(MouseEvent e)
    • installListeners

      protected void installListeners()
    • getCurrentFile

      public File getCurrentFile()
    • setCurrentFile

      public void setCurrentFile(File file)
    • isModified

      public boolean isModified()
      Returns:
      whether or not the current graph has been modified
    • setModified

      public void setModified(boolean modified)
      Parameters:
      modified -
    • getGraphComponent

      public com.mxgraph.swing.mxGraphComponent getGraphComponent()
    • getGraphOutline

      public com.mxgraph.swing.mxGraphOutline getGraphOutline()
    • getLibraryPane

      public JTabbedPane getLibraryPane()
    • getUndoManager

      public com.mxgraph.util.mxUndoManager getUndoManager()
    • bind

      public Action bind(String name, Action action)
      Parameters:
      name -
      action -
      Returns:
      a new Action bound to the specified string name
    • bind

      public Action bind(String name, Action action, String iconUrl)
      Parameters:
      name -
      action -
      Returns:
      a new Action bound to the specified string name and icon
    • status

      public void status(String msg)
      Parameters:
      msg -
    • updateTitle

      public void updateTitle()
    • about

      public void about()
    • exit

      public void exit()
    • setLookAndFeel

      public void setLookAndFeel(String clazz)
    • createFrame

      public JFrame createFrame(JMenuBar menuBar, JSplitPane splitPane)
      Prepares a Frame and adds the View of the Editor to it
      Parameters:
      menuBar - The menuBar that should be added to the Frame
      splitPane - Creates and initializes splitPane and adds the View to it, while adding it to the Frame
    • graphLayout

      public Action graphLayout(String key, boolean animate)
      Creates an action that executes the specified layout.
      Parameters:
      key - Key to be used for getting the label from mxResources and also to create the layout instance for the commercial graph editor example.
      Returns:
      an action that executes the specified layout
    • createLayout

      protected com.mxgraph.layout.mxIGraphLayout createLayout(String ident, boolean animate)
      Creates a layout instance for the given identifier.