easik.ui
Class SketchUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jgraph.plaf.GraphUI
          extended by org.jgraph.plaf.basic.BasicGraphUI
              extended by easik.ui.SketchUI
All Implemented Interfaces:
java.io.Serializable

public class SketchUI
extends org.jgraph.plaf.basic.BasicGraphUI

A subclass of BasicGraphUI which we are overloading to allow for better control of the UI. For now we will simply make it ignore all but left clicks, allowing the right clicks to be used for popup menus

Author:
Rob Fletcher 2005
See Also:
Serialized Form

Nested Class Summary
(package private)  class SketchUI.MouseHandler
          A subclass of Mouse Handler which will ignore all but the left click.
 
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.MouseInputHandler, org.jgraph.plaf.basic.BasicGraphUI.PropertyChangeHandler, org.jgraph.plaf.basic.BasicGraphUI.RootHandle
 
Field Summary
 
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
SketchUI()
           
 
Method Summary
protected  java.awt.event.MouseListener createMouseListener()
          Overloaded method used to create a new mouse listener
 org.jgraph.JGraph getGraph()
          Accessor for the JGraph
 
Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphLayoutCacheListener, createGraphModelListener, createGraphSelectionListener, createHandle, createKeyListener, 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, paintBackground, paintCell, paintForeground, paintGrid, paintPorts, prepareForUIInstall, selectCellForEvent, selectCellsForEvent, selectCellsForEvent, setGraphLayoutCache, setInsertionLocation, setMarquee, setModel, setPreferredMinSize, setSelectionModel, setSnapSelectedView, startEditing, startEditingAtCell, 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

SketchUI

public SketchUI()
Method Detail

getGraph

public org.jgraph.JGraph getGraph()
Accessor for the JGraph

Returns:
the JGraph

createMouseListener

protected java.awt.event.MouseListener createMouseListener()
Overloaded method used to create a new mouse listener

Overrides:
createMouseListener in class org.jgraph.plaf.basic.BasicGraphUI
Returns:
New mouse listener