TWE 2.5-1 API

org.enhydra.jawe.components.graph.overviewpanel
Class GraphOverviewGraphUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byorg.jgraph.plaf.GraphUI
          extended byorg.jgraph.plaf.basic.BasicGraphUI
              extended byorg.enhydra.jawe.components.graph.JaWEGraphUI
                  extended byorg.enhydra.jawe.components.graph.overviewpanel.GraphOverviewGraphUI
All Implemented Interfaces:
java.io.Serializable

public class GraphOverviewGraphUI
extends JaWEGraphUI

This class and it's inner classes controls mouse actions and clipboard. It is addapted to get wanted editing cell behaviour, selection behaviour , to implement cell overlaping, to implement right participant adjustment after cell (or group of cells) is moved, and to implement proper copying and pasting/cloning of cells, as well as pasting at wanted location (along with right participant adjustment).

See Also:
Serialized Form

Nested Class Summary
 class GraphOverviewGraphUI.PEMouseHandler
          Handles selection in a way that we expect.
 
Nested classes inherited from class org.enhydra.jawe.components.graph.JaWEGraphUI
JaWEGraphUI.PEGraphLayoutCacheHandler, JaWEGraphUI.PEGraphModelHandler, JaWEGraphUI.PEKeyHandler, JaWEGraphUI.PERootHandle
 
Nested classes 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 inherited from class org.enhydra.jawe.components.graph.JaWEGraphUI
aborted, INSERT_ELEMENT, INSERT_PARTICIPANT, INSERT_SPEC_ELEMENT, INSERT_TRANSITION_POINTS, INSERT_TRANSITION_START, MULTIPLE_SELECTION, SELECTION, selectOnRelease, status
 
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, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize
 
Constructor Summary
GraphOverviewGraphUI()
           
 
Method Summary
protected  java.awt.event.MouseListener createMouseListener()
          Creates the listener responsible for updating the selection based on mouse events.
 Graph getGraph()
          Returns graph.
 
Methods inherited from class org.enhydra.jawe.components.graph.JaWEGraphUI
createGraphLayoutCacheListener, createHandle, createKeyListener, getGraphController, paintBackground, reset, startEditing, startEditingAtCell
 
Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphModelListener, createGraphSelectionListener, createPropertyChangeListener, createTransferHandler, createUI, getDropAction, getEditingCell, getEditorLocation, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintCell, paintForeground, paintGrid, paintPorts, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, stopEditing, toggleSelectionCellForEvent, uninstallComponents, uninstallKeyboardActions, uninstallListeners, uninstallUI, updateCachedPreferredSize, updateHandle, updateSize
 
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphOverviewGraphUI

public GraphOverviewGraphUI()
Method Detail

getGraph

public Graph getGraph()
Returns graph.

Overrides:
getGraph in class JaWEGraphUI

createMouseListener

protected java.awt.event.MouseListener createMouseListener()
Creates the listener responsible for updating the selection based on mouse events.

Overrides:
createMouseListener in class JaWEGraphUI

TWE 2.5-1 API