com.jgraph.graph
Class VertexView.SizeHandle

java.lang.Object
  extended bycom.jgraph.graph.VertexView.SizeHandle
All Implemented Interfaces:
CellHandle, java.io.Serializable
Enclosing class:
VertexView

public class VertexView.SizeHandle
extends java.lang.Object
implements CellHandle, java.io.Serializable

See Also:
Serialized Form

Field Summary
protected  java.awt.Rectangle cachedBounds
           
protected  GraphContext context
           
protected  CellView[] contextViews
           
 int[] cursors
          Array that holds the cursors for the different control points.
protected  boolean firstDrag
           
protected  boolean firstOverlayInvocation
           
protected  JGraph graph
           
protected  int index
           
protected  java.awt.Rectangle initialBounds
           
protected  java.awt.Graphics offgraphics
           
protected  java.awt.Image offscreen
           
protected  PortView[] portViews
           
protected  java.awt.Rectangle[] r
           
protected  VertexView vertex
           
 
Constructor Summary
VertexView.SizeHandle(VertexView vertexview, GraphContext ctx)
           
 
Method Summary
protected  java.awt.Rectangle computeBounds(java.awt.event.MouseEvent event)
           
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

offscreen

protected transient java.awt.Image offscreen

offgraphics

protected transient java.awt.Graphics offgraphics

firstDrag

protected transient boolean firstDrag

graph

protected transient JGraph graph

vertex

protected transient VertexView vertex

portViews

protected transient PortView[] portViews

cachedBounds

protected transient java.awt.Rectangle cachedBounds

context

protected transient GraphContext context

initialBounds

protected transient java.awt.Rectangle initialBounds

contextViews

protected transient CellView[] contextViews

index

protected transient int index

r

protected transient java.awt.Rectangle[] r

firstOverlayInvocation

protected boolean firstOverlayInvocation

cursors

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

Constructor Detail

VertexView.SizeHandle

public VertexView.SizeHandle(VertexView vertexview,
                             GraphContext ctx)
Method Detail

paint

public void paint(java.awt.Graphics g)
Description copied from interface: CellHandle
Paint the handle on the given graphics object once.

Specified by:
paint in interface CellHandle
Parameters:
g - the graphics object to paint the handle on

overlay

public void overlay(java.awt.Graphics g)
Description copied from interface: CellHandle
Paint the handle on the given graphics object during mouse operations.

Specified by:
overlay in interface CellHandle
Parameters:
g - the graphics object to paint the handle on

mouseMoved

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

Specified by:
mouseMoved in interface CellHandle

mousePressed

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

Specified by:
mousePressed in interface CellHandle

mouseDragged

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

Specified by:
mouseDragged in interface CellHandle
Parameters:
event - the drag event to be processed

computeBounds

protected java.awt.Rectangle computeBounds(java.awt.event.MouseEvent event)

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent e)
Description copied from interface: CellHandle
Messaged when the drag operation has terminated with a drop.

Specified by:
mouseReleased in interface CellHandle