|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgraph.plaf.basic.BasicGraphUI.RootHandle
Field Summary | |
protected CellHandle |
activeHandle
The handle that consumed the last mousePressedEvent. |
protected boolean |
blockPaint
|
protected java.awt.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 java.awt.Point |
last
|
protected java.awt.Graphics |
offgraphics
|
protected java.awt.Image |
offscreen
|
protected PortView[] |
portViews
|
protected java.awt.Point |
snapLast
|
protected java.awt.Point |
snapStart
|
protected java.awt.Point |
start
|
protected CellView[] |
views
|
Constructor Summary | |
BasicGraphUI.RootHandle(GraphContext ctx)
Creates a root handle which contains handles for the given cells. |
Method Summary | |
GraphContext |
getContext()
|
void |
mouseDragged(java.awt.event.MouseEvent event)
Process mouse dragged event. |
void |
mouseMoved(java.awt.event.MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no buttons down). |
void |
mousePressed(java.awt.event.MouseEvent event)
Messaged when a drag gesture is recogniced. |
void |
mouseReleased(java.awt.event.MouseEvent event)
Messaged when the drag operation has terminated with a drop. |
void |
overlay(java.awt.Graphics g)
Paint the handle on the given graphics object during mouse operations. |
void |
paint(java.awt.Graphics g)
Paint the handle on the given graphics object once. |
protected void |
startDragging(java.awt.event.MouseEvent event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected transient java.awt.Image offscreen
protected transient java.awt.Graphics offgraphics
protected transient boolean firstDrag
protected transient CellView[] views
protected transient CellView[] contextViews
protected transient PortView[] portViews
protected transient java.awt.Rectangle cachedBounds
protected transient CellHandle[] handles
protected transient java.awt.Point start
protected transient java.awt.Point last
protected transient java.awt.Point snapStart
protected transient java.awt.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(java.awt.Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onpublic void overlay(java.awt.Graphics g)
CellHandle
overlay
in interface CellHandle
g
- the graphics object to paint the handle onpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved
in interface CellHandle
public void mousePressed(java.awt.event.MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
protected void startDragging(java.awt.event.MouseEvent event)
public void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface CellHandle
event
- the drag event to be processedpublic void mouseReleased(java.awt.event.MouseEvent event)
CellHandle
mouseReleased
in interface CellHandle
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |