org.jgraph.graph

Class VertexView.SizeHandle

public static class VertexView.SizeHandle extends Object implements CellHandle, Serializable

Field Summary
protected Rectangle2DcachedBounds
protected GraphContextcontext
protected CellView[]contextViews
int[]cursors
Array that holds the cursors for the different control points.
protected booleanediting
True if the cell is being edited.
protected booleanfirstDrag
protected booleanfirstOverlayInvocation
protected JGraphgraph
protected intindex
protected Rectangle2DinitialBounds
protected Graphicsoffgraphics
Reference to graph off screen graphics
protected CellView[]portViews
protected Rectangle2D[]r
protected VertexViewvertex
Constructor Summary
SizeHandle(VertexView vertexview, GraphContext ctx)
Method Summary
protected Rectangle2DcomputeBounds(MouseEvent event)
protected voidinitOffscreen()
protected voidinvalidate()
booleanisConstrainedSizeEvent(MouseEvent e)
voidmouseDragged(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.
voidmouseReleased(MouseEvent e)
voidoverlay(Graphics g)
voidpaint(Graphics g)

Field Detail

cachedBounds

protected transient Rectangle2D cachedBounds

context

protected transient GraphContext context

contextViews

protected transient CellView[] contextViews

cursors

public transient int[] cursors
Array that holds the cursors for the different control points.

editing

protected boolean editing
True if the cell is being edited.

firstDrag

protected transient boolean firstDrag

firstOverlayInvocation

protected boolean firstOverlayInvocation

graph

protected transient JGraph graph

index

protected transient int index

initialBounds

protected transient Rectangle2D initialBounds

offgraphics

protected transient Graphics offgraphics
Reference to graph off screen graphics

portViews

protected transient CellView[] portViews

r

protected transient Rectangle2D[] r

vertex

protected transient VertexView vertex

Constructor Detail

SizeHandle

public SizeHandle(VertexView vertexview, GraphContext ctx)

Method Detail

computeBounds

protected Rectangle2D computeBounds(MouseEvent event)

initOffscreen

protected void initOffscreen()

invalidate

protected void invalidate()

isConstrainedSizeEvent

public boolean isConstrainedSizeEvent(MouseEvent e)

mouseDragged

public void mouseDragged(MouseEvent event)
Process mouse dragged event.

mouseMoved

public void mouseMoved(MouseEvent event)
Invoked when the mouse pointer has been moved on a component (with no buttons down).

mousePressed

public void mousePressed(MouseEvent event)
Process mouse pressed event.

mouseReleased

public void mouseReleased(MouseEvent e)

overlay

public void overlay(Graphics g)

paint

public void paint(Graphics g)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.