org.jgraph.plaf.basic.BasicGraphUI.RootHandle Class Reference

Inheritance diagram for org.jgraph.plaf.basic.BasicGraphUI.RootHandle:

org.jgraph.graph.CellHandle List of all members.

Public Member Functions

 RootHandle (GraphContext ctx)
GraphContext getContext ()
void paint (Graphics g)
void overlay (Graphics g)
void mouseMoved (MouseEvent event)
void mousePressed (MouseEvent event)
Component getFirstOpaqueParent (Component component)
void mouseDragged (MouseEvent event)
void mouseReleased (MouseEvent event)

Protected Member Functions

Point2D getInitialLocation (Object[] cells)
CellView findViewForPoint (Point2D pt)
CellView findUnselectedInnermostGroup (double x, double y)
void startDragging (MouseEvent event)
void initOffscreen ()

Protected Attributes

transient double _mouseToViewDelta_x = 0
transient double _mouseToViewDelta_y = 0
transient Image offscreen
transient Graphics offgraphics
transient boolean firstDrag = true
transient CellView[] views
transient CellView[] contextViews
transient CellView[] portViews
transient CellView targetGroup
transient CellView ignoreTargetGroup
transient Rectangle2D cachedBounds
transient Point2D initialLocation
transient CellHandle[] handles
transient Point2D start = null
transient Point2D last
transient Point2D snapStart
transient Point2D snapLast
boolean isMoving = false
boolean isDragging = false
transient CellHandle activeHandle = null
transient GraphContext context
boolean isContextVisible = true
boolean blockPaint = false
transient ConnectionSet disconnect = null

Constructor & Destructor Documentation

org.jgraph.plaf.basic.BasicGraphUI.RootHandle.RootHandle GraphContext  ctx  ) 
 

Creates a root handle which contains handles for the given cells. The root handle and all its childs point to the specified JGraph instance. The root handle is responsible for dragging the selection.


Member Function Documentation

CellView org.jgraph.plaf.basic.BasicGraphUI.RootHandle.findUnselectedInnermostGroup double  x,
double  y
[protected]
 

Used for move into group to find the target group.

CellView org.jgraph.plaf.basic.BasicGraphUI.RootHandle.findViewForPoint Point2D  pt  )  [protected]
 

Hook for subclassers to return a different view for a mouse click at pt. For example, this can be used to return a leaf cell instead of a group.

GraphContext org.jgraph.plaf.basic.BasicGraphUI.RootHandle.getContext  ) 
 

Component org.jgraph.plaf.basic.BasicGraphUI.RootHandle.getFirstOpaqueParent Component  component  ) 
 

Returns:
Returns the parent graph scrollpane for the specified graph.

Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.getInitialLocation Object[]  cells  )  [protected]
 

Returns the initial location, which is the top left corner of the selection, ignoring all connected endpoints of edges.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.initOffscreen  )  [protected]
 

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.mouseDragged MouseEvent  event  ) 
 

Process mouse dragged manas.event.

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.mouseMoved MouseEvent  event  ) 
 

Invoked when the mouse pointer has been moved on a component (with no buttons down).

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.mousePressed MouseEvent  event  ) 
 

Messaged when a mouse button is pressed.

Parameters:
event the mouse manas.event to be processed

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.mouseReleased MouseEvent  event  ) 
 

Messaged when the drag operation has terminated with a drop.

Parameters:
event the drop manas.event to be processed

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.overlay Graphics  g  ) 
 

Paint the handle on the given graphics object during mouse operations.

Parameters:
g the graphics object to paint the handle on

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.paint Graphics  g  ) 
 

Paint the handle on the given graphics object once.

Parameters:
g the graphics object to paint the handle on

Implements org.jgraph.graph.CellHandle.

void org.jgraph.plaf.basic.BasicGraphUI.RootHandle.startDragging MouseEvent  event  )  [protected]
 


Member Data Documentation

transient double org.jgraph.plaf.basic.BasicGraphUI.RootHandle._mouseToViewDelta_x = 0 [protected]
 

transient double org.jgraph.plaf.basic.BasicGraphUI.RootHandle._mouseToViewDelta_y = 0 [protected]
 

transient CellHandle org.jgraph.plaf.basic.BasicGraphUI.RootHandle.activeHandle = null [protected]
 

The handle that consumed the last mousePressedEvent. Initially null.

boolean org.jgraph.plaf.basic.BasicGraphUI.RootHandle.blockPaint = false [protected]
 

transient Rectangle2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.cachedBounds [protected]
 

transient GraphContext org.jgraph.plaf.basic.BasicGraphUI.RootHandle.context [protected]
 

transient CellView [] org.jgraph.plaf.basic.BasicGraphUI.RootHandle.contextViews [protected]
 

transient ConnectionSet org.jgraph.plaf.basic.BasicGraphUI.RootHandle.disconnect = null [protected]
 

transient boolean org.jgraph.plaf.basic.BasicGraphUI.RootHandle.firstDrag = true [protected]
 

transient CellHandle [] org.jgraph.plaf.basic.BasicGraphUI.RootHandle.handles [protected]
 

transient CellView org.jgraph.plaf.basic.BasicGraphUI.RootHandle.ignoreTargetGroup [protected]
 

transient Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.initialLocation [protected]
 

boolean org.jgraph.plaf.basic.BasicGraphUI.RootHandle.isContextVisible = true [protected]
 

boolean org.jgraph.plaf.basic.BasicGraphUI.RootHandle.isDragging = false [protected]
 

Indicates whether this handle has started drag and drop. Note: isDragging => isMoving.

boolean org.jgraph.plaf.basic.BasicGraphUI.RootHandle.isMoving = false [protected]
 

Indicates whether this handle is currently moving cells. Start may be non-null and isMoving false while the minimum movement has not been reached.

transient Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.last [protected]
 

transient Graphics org.jgraph.plaf.basic.BasicGraphUI.RootHandle.offgraphics [protected]
 

transient Image org.jgraph.plaf.basic.BasicGraphUI.RootHandle.offscreen [protected]
 

transient CellView [] org.jgraph.plaf.basic.BasicGraphUI.RootHandle.portViews [protected]
 

transient Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.snapLast [protected]
 

transient Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.snapStart [protected]
 

transient Point2D org.jgraph.plaf.basic.BasicGraphUI.RootHandle.start = null [protected]
 

transient CellView org.jgraph.plaf.basic.BasicGraphUI.RootHandle.targetGroup [protected]
 

transient CellView [] org.jgraph.plaf.basic.BasicGraphUI.RootHandle.views [protected]
 


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:18 2006 for Digimod by  doxygen 1.4.6-NO