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 Classes
    Modifier and Type
    Class
    Description
    class 
    A GraphSelectionHandler that can enable/disable UI actions

    Nested 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

    Fields
    Modifier and Type
    Field
    Description
    protected Mediator
     

    Fields 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
    Constructor
    Description
    JmtGraphUI(Mediator mediator)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Messages to stop the editing session.
    protected org.jgraph.event.GraphSelectionListener
     
    protected MouseListener
    Creates the listener responsible for calling the correct handlers based on mouse events, and to select invidual cells.
    org.jgraph.graph.GraphLayoutCache
     
    protected void
     
    protected void
     
    void
     
    void
    Update 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, updateSize

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • mediator

      protected Mediator mediator
  • Constructor Details

    • JmtGraphUI

      public JmtGraphUI(Mediator mediator)
  • 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 from getInvokesStopCellEditing, stopCellEditing will invoked on the current editor. Then completeEditing will be messaged with false, true, false to cancel any lingering editing.
      Overrides:
      completeEditing in class org.jgraph.plaf.basic.BasicGraphUI
    • getGraphLayoutCache

      public org.jgraph.graph.GraphLayoutCache getGraphLayoutCache()
    • createMouseListener

      protected MouseListener createMouseListener()
      Creates the listener responsible for calling the correct handlers based on mouse events, and to select invidual cells.
      Overrides:
      createMouseListener in class org.jgraph.plaf.basic.BasicGraphUI
    • createGraphSelectionListener

      protected org.jgraph.event.GraphSelectionListener createGraphSelectionListener()
      Overrides:
      createGraphSelectionListener in class org.jgraph.plaf.basic.BasicGraphUI
    • installDefaults

      protected void installDefaults()
      Overrides:
      installDefaults in class org.jgraph.plaf.basic.BasicGraphUI
    • installKeyboardActions

      protected void installKeyboardActions()
      Overrides:
      installKeyboardActions in class org.jgraph.plaf.basic.BasicGraphUI
    • setMediator

      public void setMediator(Mediator mediator)
    • updateHandle

      public void updateHandle()
      Update the handle using createHandle.
      Overrides:
      updateHandle in class org.jgraph.plaf.basic.BasicGraphUI