|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.plaf.basic.BasicGraphUI.RootHandle
public class BasicGraphUI.RootHandle
Field Summary | |
---|---|
protected int |
_mouseToViewDelta_x
|
protected int |
_mouseToViewDelta_y
|
protected CellHandle |
activeHandle
The handle that consumed the last mousePressedEvent. |
protected boolean |
blockPaint
|
protected Rectangle |
cachedBounds
|
protected GraphContext |
context
|
protected CellView[] |
contextViews
|
protected ConnectionSet |
disconnect
|
protected boolean |
firstDrag
|
protected CellHandle[] |
handles
|
protected boolean |
isContextVisible
|
protected boolean |
isDragging
Indicates whether this handle has started drag and drop. |
protected boolean |
isMoving
Indicates whether this handle is currently moving cells. |
protected Point |
last
|
protected Graphics |
offgraphics
|
protected Image |
offscreen
|
protected CellView[] |
portViews
|
protected Point |
snapLast
|
protected Point |
snapStart
|
protected Point |
start
|
protected CellView[] |
views
|
Constructor Summary | |
---|---|
BasicGraphUI.RootHandle(GraphContext ctx)
Creates a root handle which contains handles for the given cells. |
Method Summary | |
---|---|
Map |
cloneCells(Object[] cells)
|
protected CellView |
findViewForPoint(Point pt)
Hook for subclassers to return a different view for a mouse click at pt . |
GraphContext |
getContext()
|
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 drag gesture is recogniced. |
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 int _mouseToViewDelta_x
protected transient int _mouseToViewDelta_y
protected transient Image offscreen
protected transient Graphics offgraphics
protected transient boolean firstDrag
protected transient CellView[] views
protected transient CellView[] contextViews
protected transient CellView[] portViews
protected transient Rectangle cachedBounds
protected transient CellHandle[] handles
protected transient Point start
protected transient Point last
protected transient Point snapStart
protected transient Point snapLast
protected boolean isMoving
protected boolean isDragging
protected transient CellHandle activeHandle
protected transient GraphContext context
protected boolean isContextVisible
protected boolean blockPaint
protected transient ConnectionSet disconnect
Constructor Detail |
---|
public BasicGraphUI.RootHandle(GraphContext ctx)
Method Detail |
---|
public GraphContext getContext()
public void paint(Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onpublic void overlay(Graphics g)
CellHandle
overlay
in interface CellHandle
g
- the graphics object to paint the handle onpublic void mouseMoved(MouseEvent event)
mouseMoved
in interface CellHandle
event
- the point for which the cursor is returnedpublic void mousePressed(MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
event
- the drag gesture event to be processedprotected CellView findViewForPoint(Point pt)
pt
. For example, this can be used to return a leaf
cell instead of a group.
protected void startDragging(MouseEvent event)
protected void initOffscreen()
public void mouseDragged(MouseEvent event)
mouseDragged
in interface CellHandle
event
- the drag event to be processedpublic void mouseReleased(MouseEvent event)
CellHandle
mouseReleased
in interface CellHandle
event
- the drop event to be processedpublic Map cloneCells(Object[] cells)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |