Inheritance diagram for org.jgraph.plaf.basic.BasicGraphUI.RootHandle:
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 |
|
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. |
|
Used for move into group to find the target group. |
|
Hook for subclassers to return a different view for a mouse click at |
|
|
|
|
|
Returns the initial location, which is the top left corner of the selection, ignoring all connected endpoints of edges. |
|
|
|
Process mouse dragged manas.event. Implements org.jgraph.graph.CellHandle. |
|
Invoked when the mouse pointer has been moved on a component (with no buttons down). Implements org.jgraph.graph.CellHandle. |
|
Messaged when a mouse button is pressed.
Implements org.jgraph.graph.CellHandle. |
|
Messaged when the drag operation has terminated with a drop.
Implements org.jgraph.graph.CellHandle. |
|
Paint the handle on the given graphics object during mouse operations.
Implements org.jgraph.graph.CellHandle. |
|
Paint the handle on the given graphics object once.
Implements org.jgraph.graph.CellHandle. |
|
|
|
|
|
|
|
The handle that consumed the last mousePressedEvent. Initially null. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Indicates whether this handle has started drag and drop. Note: isDragging => isMoving. |
|
Indicates whether this handle is currently moving cells. Start may be non-null and isMoving false while the minimum movement has not been reached. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|