Class BasicGraphEditor
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
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanelNested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponentNested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainerNested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected com.mxgraph.util.mxEventSource.mxIEventListenerprotected Fileprotected final booleanprotected com.mxgraph.swing.mxGraphComponentprotected com.mxgraph.swing.mxGraphOutlineprotected com.mxgraph.swing.handler.mxKeyboardHandlerprotected JTabbedPaneprotected static final org.slf4j.Loggerprotected booleanFlag indicating whether the current graph has been modifiedprotected com.mxgraph.swing.handler.mxRubberbandprotected PointStarting Point of Mouse when clickedprotected JLabelprotected com.mxgraph.util.mxEventSource.mxIEventListenerprotected com.mxgraph.util.mxUndoManagerFields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWFields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTFields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH -
Constructor Summary
ConstructorsConstructorDescriptionBasicGraphEditor(String appTitle, com.mxgraph.swing.mxGraphComponent component, boolean frameless) BasicGraphEditor(String appTitle, com.mxgraph.swing.mxGraphComponent component, boolean frameless, boolean generateToolbar) -
Method Summary
Modifier and TypeMethodDescriptionvoidabout()createFrame(JMenuBar menuBar, JSplitPane splitPane) Prepares a Frame and adds the View of the Editor to itprotected com.mxgraph.layout.mxIGraphLayoutcreateLayout(String ident, boolean animate) Creates a layout instance for the given identifier.protected JLabelprotected com.mxgraph.util.mxUndoManagervoidexit()com.mxgraph.swing.mxGraphComponentcom.mxgraph.swing.mxGraphOutlinecom.mxgraph.util.mxUndoManagergraphLayout(String key, boolean animate) Creates an action that executes the specified layout.insertPalette(String title) protected voidprotected voidprotected voidprotected voidbooleanprotected voidprotected voidvoidsetCurrentFile(File file) voidsetLookAndFeel(String clazz) voidsetModified(boolean modified) protected voidprotected voidvoidvoidMethods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIMethods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateMethods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTreeMethods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
-
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
-
undoManager
protected com.mxgraph.util.mxUndoManager undoManager -
appTitle
-
statusBar
-
currentFile
-
modified
protected boolean modifiedFlag 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
Starting Point of Mouse when clicked
-
-
Constructor Details
-
Method Details
-
createUndoManager
protected com.mxgraph.util.mxUndoManager createUndoManager() -
installHandlers
protected void installHandlers() -
installToolBar
protected void installToolBar() -
createStatusBar
-
installRepaintListener
protected void installRepaintListener() -
insertPalette
-
mouseWheelMoved
-
showOutlinePopupMenu
-
showGraphPopupMenu
-
mouseLocationChanged
-
installListeners
protected void installListeners() -
getCurrentFile
-
setCurrentFile
-
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
-
getUndoManager
public com.mxgraph.util.mxUndoManager getUndoManager() -
bind
- Parameters:
name-action-- Returns:
- a new Action bound to the specified string name
-
bind
- Parameters:
name-action-- Returns:
- a new Action bound to the specified string name and icon
-
status
- Parameters:
msg-
-
updateTitle
public void updateTitle() -
about
public void about() -
exit
public void exit() -
setLookAndFeel
-
createFrame
Prepares a Frame and adds the View of the Editor to it- Parameters:
menuBar- The menuBar that should be added to the FramesplitPane- Creates and initializes splitPane and adds the View to it, while adding it to the Frame
-
graphLayout
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
Creates a layout instance for the given identifier.
-