GoGraph
v1.0


gograph.base.graph
Class GGVertexView

java.lang.Object
  |
  +--org.jgraph.graph.AbstractCellView
        |
        +--org.jgraph.graph.VertexView
              |
              +--gograph.base.graph.GGVertexView
All Implemented Interfaces:
org.jgraph.graph.CellView, java.io.Serializable

public class GGVertexView
extends org.jgraph.graph.VertexView

Implementation of a GoGraph vertex view.

See Also:
GoGraph, Serialized Form

Field Summary
static GGVertexRenderer renderer
          Renderer for the class.
 
Fields inherited from class org.jgraph.graph.VertexView
bounds, groupBounds
 
Fields inherited from class org.jgraph.graph.AbstractCellView
allAttributes, attributes, cell, cellEditor, childViews, graph, mapper, parent
 
Constructor Summary
GGVertexView(java.lang.Object cell, org.jgraph.JGraph graph, org.jgraph.graph.CellMapper cm)
          Constructs a vertex view for the specified model object and the specified child views.
 
Method Summary
 java.awt.Point getPerimeterPoint(java.awt.Point source, java.awt.Point p)
          Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p.
 org.jgraph.graph.CellViewRenderer getRenderer()
          Returns a renderer for the class.
 
Methods inherited from class org.jgraph.graph.VertexView
childUpdated, getBounds, getCachedBounds, getCenterPoint, getHandle, isConstrainedSizeEvent, setCachedBounds, update, updateGroupBounds
 
Methods inherited from class org.jgraph.graph.AbstractCellView
getAllAttributes, getAttributes, getBounds, getCell, getChildViews, getDescendantViews, getEditor, getGraph, getMapper, getModel, getParentView, getRendererComponent, intersects, isLeaf, refresh, removeFromParent, scale, setAttributes, setBounds, translate, updateAllAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

renderer

public static GGVertexRenderer renderer
Renderer for the class.

Constructor Detail

GGVertexView

public GGVertexView(java.lang.Object cell,
                    org.jgraph.JGraph graph,
                    org.jgraph.graph.CellMapper cm)
Constructs a vertex view for the specified model object and the specified child views.

Parameters:
graph - Source graph.
cm - Grph cellmapper.
cell - Reference to the model object.
Method Detail

getPerimeterPoint

public java.awt.Point getPerimeterPoint(java.awt.Point source,
                                        java.awt.Point 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.

Overrides:
getPerimeterPoint in class org.jgraph.graph.VertexView
Parameters:
source - Source of the straight line.
p - Specified point.
Returns:
Intersection point.

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Returns a renderer for the class.

Overrides:
getRenderer in class org.jgraph.graph.VertexView
Returns:
Renderer for the class.

GoGraph
v1.0


Copyright (C) 2003 Stewe Frei. All rights reserved.