public static class VertexView.SizeHandle extends Object implements CellHandle, Serializable
Modifier and Type | Field and Description |
---|---|
protected 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 Rectangle2D |
initialBounds |
protected Graphics |
offgraphics
Reference to graph off screen graphics
|
protected CellView[] |
portViews |
protected Rectangle2D[] |
r |
protected VertexView |
vertex |
Constructor and Description |
---|
SizeHandle(VertexView vertexview,
GraphContext ctx) |
Modifier and Type | Method and Description |
---|---|
protected Rectangle2D |
computeBounds(MouseEvent event) |
protected void |
initOffscreen() |
protected void |
invalidate() |
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.
|
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
protected boolean editing
public SizeHandle(VertexView vertexview, GraphContext ctx)
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
event
- the mouse event to be processedpublic void mousePressed(MouseEvent event)
mousePressed
in interface CellHandle
event
- the mouse event to be processedpublic 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
e
- the drop event to be processedprotected void invalidate()
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.