|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgraph.graph.VertexView.SizeHandle
public static class VertexView.SizeHandle
Field Summary | |
---|---|
protected Rectangle2D |
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 Rectangle2D |
initialBounds
|
protected Graphics |
offgraphics
|
protected Image |
offscreen
|
protected CellView[] |
portViews
|
protected Rectangle2D[] |
r
|
protected VertexView |
vertex
|
Constructor Summary | |
---|---|
VertexView.SizeHandle(VertexView vertexview,
GraphContext ctx)
|
Method Summary | |
---|---|
protected Rectangle2D |
computeBounds(MouseEvent event)
|
protected void |
initOffscreen()
|
boolean |
isConstrainedSizeEvent(MouseEvent e)
|
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 Rectangle2D cachedBounds
protected transient GraphContext context
protected transient Rectangle2D initialBounds
protected transient CellView[] contextViews
protected transient int index
protected transient Rectangle2D[] r
protected boolean firstOverlayInvocation
public transient int[] cursors
Constructor Detail |
---|
public VertexView.SizeHandle(VertexView vertexview, GraphContext ctx)
Method Detail |
---|
public boolean isConstrainedSizeEvent(MouseEvent e)
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
public void mousePressed(MouseEvent event)
mousePressed
in interface CellHandle
public void mouseDragged(MouseEvent event)
mouseDragged
in interface CellHandle
event
- the drag event to be processedprotected Rectangle2D computeBounds(MouseEvent event)
public void mouseReleased(MouseEvent e)
CellHandle
mouseReleased
in interface CellHandle
|
JGraph |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |