Class JmtGraphUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.jgraph.plaf.GraphUI
org.jgraph.plaf.basic.BasicGraphUI
jsimgraph.controller.JmtGraphUI
- All Implemented Interfaces:
Serializable
public class JmtGraphUI
extends org.jgraph.plaf.basic.BasicGraphUI
- Author:
- Federico Granata Date: 15-lug-2003 Time: 16.12.00, Bertoli Marco (29-mar-2006)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassA GraphSelectionHandler that can enable/disable UI actionsNested classes/interfaces inherited from class org.jgraph.plaf.basic.BasicGraphUI
org.jgraph.plaf.basic.BasicGraphUI.CellEditorHandler, org.jgraph.plaf.basic.BasicGraphUI.ComponentHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphDropTargetListener, org.jgraph.plaf.basic.BasicGraphUI.GraphIncrementAction, org.jgraph.plaf.basic.BasicGraphUI.GraphLayoutCacheHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphModelHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphSelectionHandler, org.jgraph.plaf.basic.BasicGraphUI.KeyHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseHandler, org.jgraph.plaf.basic.BasicGraphUI.MouseInputHandler, org.jgraph.plaf.basic.BasicGraphUI.PropertyChangeHandler, org.jgraph.plaf.basic.BasicGraphUI.RootHandle -
Field Summary
FieldsFields inherited from class org.jgraph.plaf.basic.BasicGraphUI
cellEditor, cellEditorListener, componentListener, defaultDropTargetListener, defaultTransferHandler, DNDPREVIEW, dropAction, dropTarget, editingCell, editingComponent, editorHasDifferentSize, focus, graph, graphLayoutCache, graphLayoutCacheListener, graphModel, graphModelListener, graphSelectionListener, graphSelectionModel, handle, insertionLocation, keyListener, lastFocus, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidMessages to stop the editing session.protected org.jgraph.event.GraphSelectionListenerprotected MouseListenerCreates the listener responsible for calling the correct handlers based on mouse events, and to select invidual cells.org.jgraph.graph.GraphLayoutCacheprotected voidprotected voidvoidsetMediator(Mediator mediator) voidUpdate the handle using createHandle.Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI
autoscroll, cancelEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphLayoutCacheListener, createGraphModelListener, createHandle, createKeyListener, createPropertyChangeListener, createTransferHandler, createUI, drawGraph, getDropAction, getEditingCell, getEditorLocation, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, installComponents, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintBackground, paintBackgroundComponent, paintBackgroundImage, paintCell, paintCells, paintForeground, paintGrid, paintOverlay, paintPorts, paintTransparentComponent, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, startEditing, startEditingAtCell, stopEditing, toggleSelectionCellForEvent, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCachedPreferredSize, updateSizeMethods inherited from class ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, update
-
Field Details
-
mediator
-
-
Constructor Details
-
JmtGraphUI
-
-
Method Details
-
completeEditing
public void completeEditing()Messages to stop the editing session. If the UI the receiver is providing the look and feel for returns true fromgetInvokesStopCellEditing, stopCellEditing will invoked on the current editor. Then completeEditing will be messaged with false, true, false to cancel any lingering editing.- Overrides:
completeEditingin classorg.jgraph.plaf.basic.BasicGraphUI
-
getGraphLayoutCache
public org.jgraph.graph.GraphLayoutCache getGraphLayoutCache() -
createMouseListener
Creates the listener responsible for calling the correct handlers based on mouse events, and to select invidual cells.- Overrides:
createMouseListenerin classorg.jgraph.plaf.basic.BasicGraphUI
-
createGraphSelectionListener
protected org.jgraph.event.GraphSelectionListener createGraphSelectionListener()- Overrides:
createGraphSelectionListenerin classorg.jgraph.plaf.basic.BasicGraphUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaultsin classorg.jgraph.plaf.basic.BasicGraphUI
-
installKeyboardActions
protected void installKeyboardActions()- Overrides:
installKeyboardActionsin classorg.jgraph.plaf.basic.BasicGraphUI
-
setMediator
-
updateHandle
public void updateHandle()Update the handle using createHandle.- Overrides:
updateHandlein classorg.jgraph.plaf.basic.BasicGraphUI
-