Package org.jgraph.graph
Class VertexView.SizeHandle
java.lang.Object
org.jgraph.graph.VertexView.SizeHandle
- All Implemented Interfaces:
Serializable
,CellHandle
- Enclosing class:
- VertexView
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Rectangle2D
protected GraphContext
protected CellView[]
int[]
Array that holds the cursors for the different control points.protected boolean
True if the cell is being edited.protected boolean
protected boolean
protected JGraph
protected int
protected Rectangle2D
protected Graphics
Reference to graph off screen graphicsprotected CellView[]
protected Rectangle2D[]
protected VertexView
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle2D
computeBounds
(MouseEvent event) protected void
protected void
boolean
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
Messaged when the drag operation has terminated with a drop.void
Paint the handle on the given graphics object during mouse operations.void
Paint the handle on the given graphics object once.
-
Field Details
-
offgraphics
Reference to graph off screen graphics -
firstDrag
protected transient boolean firstDrag -
graph
-
vertex
-
portViews
-
cachedBounds
-
context
-
initialBounds
-
contextViews
-
index
protected transient int index -
r
-
firstOverlayInvocation
protected boolean firstOverlayInvocation -
cursors
public transient int[] cursorsArray that holds the cursors for the different control points. -
editing
protected boolean editingTrue if the cell is being edited.
-
-
Constructor Details
-
SizeHandle
-
-
Method Details
-
isConstrainedSizeEvent
-
paint
Description copied from interface:CellHandle
Paint the handle on the given graphics object once.- Specified by:
paint
in interfaceCellHandle
- Parameters:
g
- the graphics object to paint the handle on
-
initOffscreen
protected void initOffscreen() -
overlay
Description copied from interface:CellHandle
Paint the handle on the given graphics object during mouse operations.- Specified by:
overlay
in interfaceCellHandle
- Parameters:
g
- the graphics object to paint the handle on
-
mouseMoved
Invoked when the mouse pointer has been moved on a component (with no buttons down).- Specified by:
mouseMoved
in interfaceCellHandle
- Parameters:
event
- the mouse event to be processed
-
mousePressed
Process mouse pressed event.- Specified by:
mousePressed
in interfaceCellHandle
- Parameters:
event
- the mouse event to be processed
-
mouseDragged
Process mouse dragged event.- Specified by:
mouseDragged
in interfaceCellHandle
- Parameters:
event
- the drag event to be processed
-
computeBounds
-
mouseReleased
Description copied from interface:CellHandle
Messaged when the drag operation has terminated with a drop.- Specified by:
mouseReleased
in interfaceCellHandle
- Parameters:
e
- the drop event to be processed
-
invalidate
protected void invalidate()
-