|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.VertexView.SizeHandle
public class VertexView.SizeHandle
Field Summary | |
---|---|
protected Rectangle |
cachedBounds
|
protected GraphContext |
context
|
protected CellView[] |
contextViews
|
int[] |
cursors
Array that holds the cursors for the different control points. |
protected boolean |
firstDrag
|
protected boolean |
firstOverlayInvocation
|
protected JGraph |
graph
|
protected int |
index
|
protected Rectangle |
initialBounds
|
protected Graphics |
offgraphics
|
protected Image |
offscreen
|
protected CellView[] |
portViews
|
protected Rectangle[] |
r
|
protected VertexView |
vertex
|
Constructor Summary | |
---|---|
VertexView.SizeHandle(VertexView vertexview,
GraphContext ctx)
|
Method Summary | |
---|---|
protected Rectangle |
computeBounds(MouseEvent event)
|
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)
Process mouse pressed event. |
void |
mouseReleased(MouseEvent e)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient Image offscreen
protected transient Graphics offgraphics
protected transient boolean firstDrag
protected transient JGraph graph
protected transient VertexView vertex
protected transient CellView[] portViews
protected transient Rectangle cachedBounds
protected transient GraphContext context
protected transient Rectangle initialBounds
protected transient CellView[] contextViews
protected transient int index
protected transient Rectangle[] r
protected boolean firstOverlayInvocation
public transient int[] cursors
Constructor Detail |
---|
public VertexView.SizeHandle(VertexView vertexview, GraphContext ctx)
Method Detail |
---|
public void paint(Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onprotected void initOffscreen()
public 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)
mousePressed
in interface CellHandle
event
- the drag gesture event to be processedpublic void mouseDragged(MouseEvent event)
mouseDragged
in interface CellHandle
event
- the drag event to be processedprotected Rectangle computeBounds(MouseEvent event)
public void mouseReleased(MouseEvent e)
CellHandle
mouseReleased
in interface CellHandle
e
- the drop event to be processed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |