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 |
---|
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 SizeHandle(VertexView vertexview, GraphContext ctx)
public boolean isConstrainedSizeEvent(java.awt.event.MouseEvent e)
public void paint(java.awt.Graphics g)
CellHandle
paint
in interface CellHandle
g
- the graphics object to paint the handle onprotected void initOffscreen()
public 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
event
- the mouse event to be processedpublic void mousePressed(java.awt.event.MouseEvent event)
mousePressed
in interface CellHandle
event
- the mouse event to be processedpublic void mouseDragged(java.awt.event.MouseEvent event)
mouseDragged
in interface CellHandle
event
- the drag event to be processedprotected java.awt.geom.Rectangle2D computeBounds(java.awt.event.MouseEvent event)
public void mouseReleased(java.awt.event.MouseEvent e)
CellHandle
mouseReleased
in interface CellHandle
e
- the drop event to be processedprotected void invalidate()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.