| 
 | JGraph | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jgraph.plaf.basic.BasicGraphUI.RootHandle
| Field Summary | |
| protected  double | _mouseToViewDelta_x | 
| protected  double | _mouseToViewDelta_y | 
| protected  CellHandle | activeHandleThe handle that consumed the last mousePressedEvent. | 
| protected  boolean | blockPaint | 
| protected  Rectangle2D | cachedBounds | 
| protected  GraphContext | context | 
| protected  CellView[] | contextViews | 
| protected  Point2D | current | 
| protected  ConnectionSet | disconnect | 
| protected  boolean | firstDrag | 
| protected  CellHandle[] | handles | 
| protected  CellView | ignoreTargetGroup | 
| protected  Point2D | initialLocation | 
| protected  boolean | isContextVisible | 
| protected  boolean | isDraggingIndicates whether this handle has started drag and drop. | 
| protected  boolean | isMovingIndicates whether this handle is currently moving cells. | 
| protected  Point2D | last | 
| protected  Graphics | offgraphicsReference to graph off screen graphics | 
| protected  CellView[] | portViews | 
| protected  Point2D | snapLast | 
| protected  Point2D | snapStart | 
| protected  Point2D | start | 
| protected  CellView | targetGroup | 
| protected  CellView[] | views | 
| Constructor Summary | |
| BasicGraphUI.RootHandle(GraphContext ctx)Creates a root handle which contains handles for the given cells. | |
| Method Summary | |
| protected  Point2D | constrainDrag(MouseEvent event,
              double totDx,
              double totDy,
              double dx,
              double dy)Hook method to constrain a mouse drag | 
| protected  CellView | findUnselectedInnermostGroup(double x,
                             double y)Used for move into group to find the target group. | 
| protected  CellView | findViewForPoint(Point2D pt)Hook for subclassers to return a different view for a mouse click at pt. | 
|  GraphContext | getContext() | 
|  Component | getFirstOpaqueParent(Component component) | 
| protected  Point2D | getInitialLocation(Object[] cells)Returns the initial location, which is the top left corner of the selection, ignoring all connected endpoints of edges. | 
| protected  void | initOffscreen() | 
|  void | mouseDragged(MouseEvent event)Process mouse dragged event. | 
|  void | mouseMoved(MouseEvent event)Invoked when the mouse pointer has been moved on a component (with no buttons down). | 
|  void | mousePressed(MouseEvent event)Messaged when a mouse button is pressed. | 
|  void | mouseReleased(MouseEvent event)Messaged when the drag operation has terminated with a drop. | 
|  void | overlay(Graphics g)Paint the handle on the given graphics object during mouse operations. | 
|  void | paint(Graphics g)Paint the handle on the given graphics object once. | 
| protected  void | startDragging(MouseEvent event) | 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
protected transient double _mouseToViewDelta_x
protected transient double _mouseToViewDelta_y
protected transient boolean firstDrag
protected transient CellView[] views
protected transient CellView[] contextViews
protected transient CellView[] portViews
protected transient CellView targetGroup
protected transient CellView ignoreTargetGroup
protected transient Rectangle2D cachedBounds
protected transient Point2D initialLocation
protected transient CellHandle[] handles
protected transient Point2D start
protected transient Point2D last
protected transient Point2D snapStart
protected transient Point2D snapLast
protected transient Graphics offgraphics
protected boolean isMoving
protected boolean isDragging
protected transient CellHandle activeHandle
protected transient GraphContext context
protected boolean isContextVisible
protected boolean blockPaint
protected Point2D current
protected transient ConnectionSet disconnect
| Constructor Detail | 
public BasicGraphUI.RootHandle(GraphContext ctx)
| Method Detail | 
protected Point2D getInitialLocation(Object[] cells)
public GraphContext getContext()
public void paint(Graphics g)
CellHandle
paint in interface CellHandleg - the graphics object to paint the handle onpublic void overlay(Graphics g)
CellHandle
overlay in interface CellHandleg - the graphics object to paint the handle onpublic void mouseMoved(MouseEvent event)
mouseMoved in interface CellHandleevent - the mouse event to be processedpublic void mousePressed(MouseEvent event)
CellHandle
mousePressed in interface CellHandleevent - the mouse event to be processedprotected CellView findViewForPoint(Point2D pt)
pt. For example, this can be used to return a leaf
 cell instead of a group.
protected CellView findUnselectedInnermostGroup(double x,
                                                double y)
protected void startDragging(MouseEvent event)
public Component getFirstOpaqueParent(Component component)
protected void initOffscreen()
public void mouseDragged(MouseEvent event)
mouseDragged in interface CellHandleevent - the drag event to be processed
protected Point2D constrainDrag(MouseEvent event,
                                double totDx,
                                double totDy,
                                double dx,
                                double dy)
event - totDx - totDy - dx - dy - 
public void mouseReleased(MouseEvent event)
CellHandle
mouseReleased in interface CellHandleevent - the drop event to be processed| 
 | JGraph | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||