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 Rectangle2Dprotected GraphContextprotected CellView[]int[]Array that holds the cursors for the different control points.protected booleanTrue if the cell is being edited.protected booleanprotected booleanprotected JGraphprotected intprotected Rectangle2Dprotected GraphicsReference to graph off screen graphicsprotected CellView[]protected Rectangle2D[]protected VertexView -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Rectangle2DcomputeBounds(MouseEvent event) protected voidprotected voidbooleanvoidmouseDragged(MouseEvent event) Process mouse dragged event.voidmouseMoved(MouseEvent event) Invoked when the mouse pointer has been moved on a component (with no buttons down).voidmousePressed(MouseEvent event) Process mouse pressed event.voidMessaged when the drag operation has terminated with a drop.voidPaint the handle on the given graphics object during mouse operations.voidPaint 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:CellHandlePaint the handle on the given graphics object once.- Specified by:
paintin interfaceCellHandle- Parameters:
g- the graphics object to paint the handle on
-
initOffscreen
protected void initOffscreen() -
overlay
Description copied from interface:CellHandlePaint the handle on the given graphics object during mouse operations.- Specified by:
overlayin 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:
mouseMovedin interfaceCellHandle- Parameters:
event- the mouse event to be processed
-
mousePressed
Process mouse pressed event.- Specified by:
mousePressedin interfaceCellHandle- Parameters:
event- the mouse event to be processed
-
mouseDragged
Process mouse dragged event.- Specified by:
mouseDraggedin interfaceCellHandle- Parameters:
event- the drag event to be processed
-
computeBounds
-
mouseReleased
Description copied from interface:CellHandleMessaged when the drag operation has terminated with a drop.- Specified by:
mouseReleasedin interfaceCellHandle- Parameters:
e- the drop event to be processed
-
invalidate
protected void invalidate()
-