public class GraphEditor extends JPanel
JPanel.AccessibleJPanel
JComponent.AccessibleJComponent
Container.AccessibleAWTContainer
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
Modifier and Type | Field and Description |
---|---|
protected boolean |
animateLayoutChange |
protected String |
appTitle |
protected com.mxgraph.util.mxEventSource.mxIEventListener |
changeTracker |
protected File |
currentFile |
protected com.mxgraph.swing.mxGraphComponent |
graphComponent |
protected com.mxgraph.swing.mxGraphOutline |
graphOutline |
protected com.mxgraph.swing.handler.mxKeyboardHandler |
keyboardHandler |
protected JTabbedPane |
libraryPane |
protected boolean |
modified
Flag indicating whether the current graph has been modified
|
protected com.mxgraph.swing.handler.mxRubberband |
rubberband |
protected JLabel |
statusBar |
protected sc.fiji.snt.viewer.geditor.EditorToolBar |
toolbar |
protected com.mxgraph.util.mxEventSource.mxIEventListener |
undoHandler |
protected com.mxgraph.util.mxUndoManager |
undoManager |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
Constructor and Description |
---|
GraphEditor(String appTitle,
com.mxgraph.swing.mxGraphComponent component) |
Modifier and Type | Method and Description |
---|---|
void |
applyLayout(com.mxgraph.layout.mxIGraphLayout layout) |
Action |
bind(String name,
Action action) |
Action |
bind(String name,
Action action,
Icon icon) |
Action |
bind(String name,
Action action,
String iconUrl) |
JFrame |
createFrame(Context context) |
protected com.mxgraph.layout.mxIGraphLayout |
createLayout(String ident)
Creates a layout instance for the given identifier.
|
protected JLabel |
createStatusBar() |
protected sc.fiji.snt.viewer.geditor.EditorToolBar |
createToolBar() |
protected com.mxgraph.util.mxUndoManager |
createUndoManager() |
void |
exit() |
JSplitPane |
getBottomPanel() |
sc.fiji.snt.viewer.geditor.EditorConsole |
getConsole() |
File |
getCurrentFile() |
com.mxgraph.swing.mxGraphComponent |
getGraphComponent() |
com.mxgraph.swing.mxGraphOutline |
getGraphOutline() |
JTabbedPane |
getLibraryPane() |
com.mxgraph.util.mxUndoManager |
getUndoManager() |
Action |
graphLayout(String key)
Creates an action that executes the specified layout.
|
protected void |
installHandlers() |
protected void |
installListeners() |
protected void |
installRepaintListener() |
boolean |
isModified() |
protected void |
mouseLocationChanged(MouseEvent e) |
protected void |
mouseWheelMoved(MouseWheelEvent e) |
protected void |
refresh() |
void |
setBottomPaneVisible(boolean visible) |
void |
setContext(Context context) |
void |
setCurrentFile(File file) |
void |
setLegend(ColorTable colorTable,
String label,
double min,
double max) |
void |
setLegend(String colorTable,
double min,
double max) |
void |
setLegend(String colorTable,
String label,
double min,
double max) |
protected void |
setLookAndFeel(String lookAndFeelName) |
void |
setModified(boolean modified) |
protected void |
showGraphPopupMenu(MouseEvent e) |
protected void |
showOutlinePopupMenu(MouseEvent e) |
void |
status(String msg) |
void |
status(String msg,
boolean error) |
void |
updateTitle() |
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
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, update
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, validateTree
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, getPeer, 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, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
protected com.mxgraph.swing.mxGraphComponent graphComponent
protected com.mxgraph.swing.mxGraphOutline graphOutline
protected JTabbedPane libraryPane
protected com.mxgraph.util.mxUndoManager undoManager
protected String appTitle
protected JLabel statusBar
protected File currentFile
protected com.mxgraph.swing.handler.mxRubberband rubberband
protected com.mxgraph.swing.handler.mxKeyboardHandler keyboardHandler
protected sc.fiji.snt.viewer.geditor.EditorToolBar toolbar
protected boolean animateLayoutChange
protected boolean modified
protected final com.mxgraph.util.mxEventSource.mxIEventListener undoHandler
protected final com.mxgraph.util.mxEventSource.mxIEventListener changeTracker
public GraphEditor(String appTitle, com.mxgraph.swing.mxGraphComponent component)
public void setContext(Context context)
protected com.mxgraph.util.mxUndoManager createUndoManager()
protected void installHandlers()
protected sc.fiji.snt.viewer.geditor.EditorToolBar createToolBar()
protected JLabel createStatusBar()
protected void installRepaintListener()
protected void refresh()
protected void mouseWheelMoved(MouseWheelEvent e)
protected void showOutlinePopupMenu(MouseEvent e)
protected void showGraphPopupMenu(MouseEvent e)
protected void mouseLocationChanged(MouseEvent e)
protected void installListeners()
public void setCurrentFile(File file)
public File getCurrentFile()
public void setModified(boolean modified)
public boolean isModified()
public com.mxgraph.swing.mxGraphComponent getGraphComponent()
public com.mxgraph.swing.mxGraphOutline getGraphOutline()
public JTabbedPane getLibraryPane()
public com.mxgraph.util.mxUndoManager getUndoManager()
public Action bind(String name, Action action)
name
- action
- public Action bind(String name, Action action, String iconUrl)
name
- action
- public void status(String msg)
public void status(String msg, boolean error)
public void updateTitle()
public void exit()
protected void setLookAndFeel(String lookAndFeelName)
public Action graphLayout(String key)
key
- Key to be used for getting the label from mxResources and also
to create the layout instance for the commercial graph editor example.public void applyLayout(com.mxgraph.layout.mxIGraphLayout layout)
protected com.mxgraph.layout.mxIGraphLayout createLayout(String ident)
public void setBottomPaneVisible(boolean visible)
public sc.fiji.snt.viewer.geditor.EditorConsole getConsole()
public void setLegend(String colorTable, double min, double max)
public void setLegend(ColorTable colorTable, String label, double min, double max)
public JSplitPane getBottomPanel()
Copyright © 2015–2021 Fiji. All rights reserved.