com.jgraph.example.fastgraph
Class FastEdgeView

java.lang.Object
  extended by org.jgraph.graph.AbstractCellView
      extended by org.jgraph.graph.EdgeView
          extended by com.jgraph.example.fastgraph.FastEdgeView
All Implemented Interfaces:
java.io.Serializable, org.jgraph.graph.CellView

public class FastEdgeView
extends org.jgraph.graph.EdgeView

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jgraph.graph.EdgeView
org.jgraph.graph.EdgeView.EdgeHandle
 
Field Summary
 
Fields inherited from class org.jgraph.graph.EdgeView
beginShape, endShape, LEGACY_DISCONNECTABLE, lineShape, renderer, sharedPath
 
Fields inherited from class org.jgraph.graph.AbstractCellView
cellEditor
 
Constructor Summary
FastEdgeView(java.lang.Object cell)
           
 
Method Summary
 java.util.Map changeAttributes(org.jgraph.graph.GraphLayoutCache cache, java.util.Map change)
           
 java.awt.geom.Rectangle2D getBounds()
          Returns the location for this portview.
 org.jgraph.graph.CellViewRenderer getRenderer()
           
 boolean intersects(org.jgraph.JGraph graph, java.awt.geom.Rectangle2D rect)
          Returns true if this view intersects the given rectangle.
 void setAttributes(org.jgraph.graph.AttributeMap attributes)
           
 void update(org.jgraph.graph.GraphLayoutCache cache)
          Update attributes and recurse children.
 
Methods inherited from class org.jgraph.graph.EdgeView
addExtraLabel, addPoint, getExtraLabelPosition, getFirstPointOfSegment, getHandle, getLabelPosition, getLabelVector, getLength, getPerimeterPoint, getPoint, getPointCount, getPoints, getShape, getSource, getSourceParentView, getTarget, getTargetParentView, isLoop, refresh, removeExtraLabel, removePoint, setExtraLabelPosition, setLabelPosition, setPoint, setSource, setTarget
 
Methods inherited from class org.jgraph.graph.AbstractCellView
childUpdated, getAllAttributes, getAttributes, getBounds, getCell, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, isLeaf, removeFromParent, scale, setBounds, setCell, translate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastEdgeView

public FastEdgeView(java.lang.Object cell)
Parameters:
cell -
Method Detail

getRenderer

public org.jgraph.graph.CellViewRenderer getRenderer()
Overrides:
getRenderer in class org.jgraph.graph.EdgeView

setAttributes

public void setAttributes(org.jgraph.graph.AttributeMap attributes)
Overrides:
setAttributes in class org.jgraph.graph.AbstractCellView

changeAttributes

public java.util.Map changeAttributes(org.jgraph.graph.GraphLayoutCache cache,
                                      java.util.Map change)
Specified by:
changeAttributes in interface org.jgraph.graph.CellView
Overrides:
changeAttributes in class org.jgraph.graph.AbstractCellView

intersects

public boolean intersects(org.jgraph.JGraph graph,
                          java.awt.geom.Rectangle2D rect)
Returns true if this view intersects the given rectangle.

Specified by:
intersects in interface org.jgraph.graph.CellView
Overrides:
intersects in class org.jgraph.graph.EdgeView

update

public void update(org.jgraph.graph.GraphLayoutCache cache)
Update attributes and recurse children.

Specified by:
update in interface org.jgraph.graph.CellView
Overrides:
update in class org.jgraph.graph.EdgeView

getBounds

public java.awt.geom.Rectangle2D getBounds()
Returns the location for this portview.

Specified by:
getBounds in interface org.jgraph.graph.CellView
Overrides:
getBounds in class org.jgraph.graph.EdgeView