public static class VertexView.SizeHandle extends java.lang.Object implements CellHandle, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected java.awt.geom.Rectangle2D |
cachedBounds |
protected GraphContext |
context |
protected CellView[] |
contextViews |
int[] |
cursors
Array that holds the cursors for the different control points.
|
protected boolean |
editing
True if the cell is being edited.
|
protected boolean |
firstDrag |
protected boolean |
firstOverlayInvocation |
protected JGraph |
graph |
protected int |
index |
protected java.awt.geom.Rectangle2D |
initialBounds |
protected java.awt.Graphics |
offgraphics
Reference to graph off screen graphics
|
protected CellView[] |
portViews |
protected java.awt.geom.Rectangle2D[] |
r |
protected VertexView |
vertex |
| Constructor and Description |
|---|
VertexView.SizeHandle(VertexView vertexview,
GraphContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected java.awt.geom.Rectangle2D |
computeBounds(java.awt.event.MouseEvent event) |
protected void |
initOffscreen() |
protected void |
invalidate() |
boolean |
isConstrainedSizeEvent(java.awt.event.MouseEvent e) |
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)
Process mouse pressed event.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
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 transient java.awt.Graphics offgraphics
protected transient boolean firstDrag
protected transient JGraph graph
protected transient VertexView vertex
protected transient CellView[] portViews
protected transient java.awt.geom.Rectangle2D cachedBounds
protected transient GraphContext context
protected transient java.awt.geom.Rectangle2D initialBounds
protected transient CellView[] contextViews
protected transient int index
protected transient java.awt.geom.Rectangle2D[] r
protected boolean firstOverlayInvocation
public transient int[] cursors
protected boolean editing
public VertexView.SizeHandle(VertexView vertexview, GraphContext ctx)
public boolean isConstrainedSizeEvent(java.awt.event.MouseEvent e)
public void paint(java.awt.Graphics g)
CellHandlepaint in interface CellHandleg - the graphics object to paint the handle onprotected void initOffscreen()
public void overlay(java.awt.Graphics g)
CellHandleoverlay in interface CellHandleg - the graphics object to paint the handle onpublic void mouseMoved(java.awt.event.MouseEvent event)
mouseMoved in interface CellHandleevent - the mouse event to be processedpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed in interface CellHandleevent - the mouse event to be processedpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged in interface CellHandleevent - the drag event to be processedprotected java.awt.geom.Rectangle2D computeBounds(java.awt.event.MouseEvent event)
public void mouseReleased(java.awt.event.MouseEvent e)
CellHandlemouseReleased in interface CellHandlee - the drop event to be processedprotected void invalidate()
Copyright (C) 2001-2008 Gaudenz Alder. All rights reserved.