cz.cmc.tcgui
Class TCGraphUI

java.lang.Object
  extended byjavax.swing.plaf.ComponentUI
      extended byorg.jgraph.plaf.GraphUI
          extended byorg.jgraph.plaf.basic.BasicGraphUI
              extended bycz.cmc.tcgui.TCGraphUI
All Implemented Interfaces:
Serializable

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

Title: Customization of the UI for TCGui

Description:

Copyright: Copyright (c) 2003

Company: CMC Computers

See Also:
Serialized Form

Nested Class Summary
 class TCGraphUI.TCGraphSelectionHandler
          Listens for changes in the selection model and updates the display accordingly.
 class TCGraphUI.TCMouseHandler
          Handler for mouse events Title: class TCMouseHandler Description: Copyright: Copyright (c) 2003 Company: CMC Computers
 class TCGraphUI.TCRootHandle
          Title: class TCRootHandle Description: RootHandle customized for TC schema editing Copyright: Copyright (c) 2003 Company: CMC Computers
 
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.GraphModelHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphSelectionHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphTransferHandler, org.jgraph.plaf.basic.BasicGraphUI.GraphViewObserver, 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.jgraph.plaf.basic.BasicGraphUI
cellEditor, cellEditorListener, componentListener, defaultDropTargetListener, defaultTransferHandler, DNDPREVIEW, dropAction, editingCell, editingComponent, editorHasDifferentSize, focus, graph, graphLayoutCache, graphModel, graphModelListener, graphSelectionListener, graphSelectionModel, graphViewObserver, handle, insertionLocation, keyListener, marquee, MAXCELLS, MAXCLIPCELLS, MAXHANDLES, mouseListener, preferredMinSize, preferredSize, propertyChangeListener, rendererPane, SCROLLBORDER, SCROLLSTEP, snapSelectedView, stopEditingInCompleteEditing, validCachedPreferredSize
 
Constructor Summary
TCGraphUI()
           
 
Method Summary
protected  org.jgraph.event.GraphSelectionListener createGraphSelectionListener()
          Creates the listener that updates the display based on selection change methods.
 org.jgraph.graph.CellHandle createHandle(org.jgraph.graph.GraphContext context)
          
protected  MouseListener createMouseListener()
          
 void selectCellForEvent(Object cell, MouseEvent event)
          Overriden to gain TC schema specific selection behavior
 void selectCellsForEvent(org.jgraph.JGraph graph, Object[] cells, MouseEvent event)
          From GraphUI interface.
 void selectCellsForEvent(Object[] cells, MouseEvent event)
          Messaged to update the selection based on a MouseEvent for a group of cells.
 
Methods inherited from class org.jgraph.plaf.basic.BasicGraphUI
autoscroll, cancelEditing, completeEditing, completeEditing, completeUIInstall, completeUIUninstall, createCellEditorListener, createCellRendererPane, createComponentListener, createContext, createGraphModelListener, createGraphViewObserver, createKeyListener, createPropertyChangeListener, createTransferHandler, createUI, getEditingCell, getFocusedCell, getHandle, getInsertionLocation, getMaximumSize, getMinimumSize, getPreferredMinSize, getPreferredSize, getPreferredSize, insertCells, installComponents, installDefaults, installKeyboardActions, installListeners, installUI, isAddToSelectionEvent, isConstrainedMoveEvent, isEditing, isForceMarqueeEvent, isSnapSelectedView, isToggleSelectionEvent, paint, paintBackground, paintCell, paintForeground, paintGrid, paintPorts, prepareForUIInstall, 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

TCGraphUI

public TCGraphUI()
Method Detail

selectCellsForEvent

public void selectCellsForEvent(org.jgraph.JGraph graph,
                                Object[] cells,
                                MouseEvent event)
From GraphUI interface.


selectCellsForEvent

public void selectCellsForEvent(Object[] cells,
                                MouseEvent event)
Messaged to update the selection based on a MouseEvent for a group of cells. If the event is a toggle selection event, the cells are either selected, or deselected. Otherwise the cells are selected.


selectCellForEvent

public void selectCellForEvent(Object cell,
                               MouseEvent event)
Overriden to gain TC schema specific selection behavior


createGraphSelectionListener

protected org.jgraph.event.GraphSelectionListener createGraphSelectionListener()
Creates the listener that updates the display based on selection change methods.


createHandle

public org.jgraph.graph.CellHandle createHandle(org.jgraph.graph.GraphContext context)


createMouseListener

protected MouseListener createMouseListener()