|
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
public class BasicGraphUI.RootHandle
Field Summary | |
---|---|
protected double |
_mouseToViewDelta_x
|
protected double |
_mouseToViewDelta_y
|
protected CellHandle |
activeHandle
The handle that consumed the last mousePressedEvent. |
protected boolean |
blockPaint
|
protected Rectangle2D |
cachedBounds
|
protected GraphContext |
context
|
protected CellView[] |
contextViews
|
protected ConnectionSet |
disconnect
|
protected boolean |
firstDrag
|
protected CellHandle[] |
handles
|
protected Point2D |
initialLocation
|
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 Point2D |
last
|
protected Graphics |
offgraphics
|
protected Image |
offscreen
|
protected CellView[] |
portViews
|
protected Point2D |
snapLast
|
protected Point2D |
snapStart
|
protected Point2D |
start
|
protected CellView[] |
views
|
Constructor Summary | |
---|---|
BasicGraphUI.RootHandle(GraphContext ctx)
Creates a root handle which contains handles for the given cells. |
Method Summary | |
---|---|
protected CellView |
findViewForPoint(Point2D pt)
Hook for subclassers to return a different view for a mouse click at pt . |
GraphContext |
getContext()
|
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 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 double _mouseToViewDelta_x
protected transient double _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 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 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 |
---|
protected Point2D getInitialLocation(Object[] cells)
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
public void mousePressed(MouseEvent event)
CellHandle
mousePressed
in interface CellHandle
protected CellView findViewForPoint(Point2D 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
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |