org.jgraph.graph.VertexView Class Reference

Inheritance diagram for org.jgraph.graph.VertexView:

org.jgraph.graph.AbstractCellView org.jgraph.graph.CellView List of all members.

Public Member Functions

 VertexView ()
 VertexView (Object cell)
void update ()
Rectangle2D getCachedBounds ()
void setCachedBounds (Rectangle2D bounds)
CellViewRenderer getRenderer ()
CellHandle getHandle (GraphContext context)
Rectangle2D getBounds ()
Point2D getCenterPoint ()
Point2D getPerimeterPoint (Point2D source, Point2D p)
Point2D getPerimeterPoint (EdgeView edge, Point2D source, Point2D p)

Static Public Attributes

static transient VertexRenderer renderer
static final Rectangle2D defaultBounds
static transient int[] defaultCursors
static transient int[] xCursors
static transient int[] yCursors

Protected Attributes

Rectangle2D bounds

Static Package Functions

 [static initializer]

Classes

class  SizeHandle

Detailed Description

The default implementation of a vertex view.

Version:
1.0 1/1/02
Author:
Gaudenz Alder


Constructor & Destructor Documentation

org.jgraph.graph.VertexView.VertexView  ) 
 

Constructs an empty vertex view.

org.jgraph.graph.VertexView.VertexView Object  cell  ) 
 

Constructs a vertex view for the specified model object and the specified child views.

Parameters:
cell reference to the model object


Member Function Documentation

org.jgraph.graph.VertexView.[static initializer]  )  [static, package]
 

Reimplemented from org.jgraph.graph.AbstractCellView.

Rectangle2D org.jgraph.graph.VertexView.getBounds  ) 
 

Returns the cached bounds for the vertex.

Reimplemented from org.jgraph.graph.AbstractCellView.

Rectangle2D org.jgraph.graph.VertexView.getCachedBounds  ) 
 

Point2D org.jgraph.graph.VertexView.getCenterPoint  ) 
 

Deprecated:
replaced by AbstractCellView#getCenterPoint(CellView vertex)
Returns:
the center point of this vertex

CellHandle org.jgraph.graph.VertexView.getHandle GraphContext  context  )  [virtual]
 

Returns a cell handle for the view, if the graph and the view are sizeable.

Implements org.jgraph.graph.AbstractCellView.

Point2D org.jgraph.graph.VertexView.getPerimeterPoint EdgeView  edge,
Point2D  source,
Point2D  p
 

Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds. Note: You must override this method if you use a different renderer. This is because this method relies on the VertexRenderer interface, which can not be safely assumed for subclassers.

Reimplemented from org.jgraph.graph.AbstractCellView.

Point2D org.jgraph.graph.VertexView.getPerimeterPoint Point2D  source,
Point2D  p
 

Deprecated:
replaced by getPerimeterPoint(EdgeView edge, Point2D source, Point2D p)

CellViewRenderer org.jgraph.graph.VertexView.getRenderer  )  [virtual]
 

Returns a renderer for the class.

Implements org.jgraph.graph.AbstractCellView.

void org.jgraph.graph.VertexView.setCachedBounds Rectangle2D  bounds  ) 
 

void org.jgraph.graph.VertexView.update  ) 
 

Overrides the parent method to udpate the cached points.

Reimplemented from org.jgraph.graph.AbstractCellView.


Member Data Documentation

Rectangle2D org.jgraph.graph.VertexView.bounds [protected]
 

Reference to the bounds attribute

final Rectangle2D org.jgraph.graph.VertexView.defaultBounds [static]
 

Initial value:

 new Rectangle2D.Double(10,
                        10, 20, 20)

transient int [] org.jgraph.graph.VertexView.defaultCursors [static]
 

Initial value:

 new int[] {
                        Cursor.NW_RESIZE_CURSOR, Cursor.N_RESIZE_CURSOR,
                        Cursor.NE_RESIZE_CURSOR, Cursor.W_RESIZE_CURSOR,
                        Cursor.E_RESIZE_CURSOR, Cursor.SW_RESIZE_CURSOR,
                        Cursor.S_RESIZE_CURSOR, Cursor.SE_RESIZE_CURSOR }
Array that holds the cursors for the different control points.

transient VertexRenderer org.jgraph.graph.VertexView.renderer [static]
 

Renderer for the class.

transient int [] org.jgraph.graph.VertexView.xCursors [static]
 

Initial value:

 new int[] {
                        Cursor.W_RESIZE_CURSOR, 0, Cursor.E_RESIZE_CURSOR,
                        Cursor.W_RESIZE_CURSOR, Cursor.E_RESIZE_CURSOR,
                        Cursor.W_RESIZE_CURSOR, 0, Cursor.E_RESIZE_CURSOR }
Array that holds the cursors for the different control points.

transient int [] org.jgraph.graph.VertexView.yCursors [static]
 

Initial value:

 new int[] {
                        Cursor.N_RESIZE_CURSOR, Cursor.N_RESIZE_CURSOR,
                        Cursor.N_RESIZE_CURSOR, 0, 0, Cursor.S_RESIZE_CURSOR,
                        Cursor.S_RESIZE_CURSOR, Cursor.S_RESIZE_CURSOR }
Array that holds the cursors for the different control points.


The documentation for this class was generated from the following file:
Generated on Sun May 28 19:13:17 2006 for Digimod by  doxygen 1.4.6-NO