com.jgraph.io.svg

Class SVGVertexRenderer

public class SVGVertexRenderer extends VertexRenderer

Field Summary
protected intshape
Holds the shape of the current view.
Method Summary
Point2DgetEllipsePerimeterPoint(VertexView view, Point2D source, Point2D p)
Utility method to return the perimeter point for a circle.
Point2DgetPerimeterPoint(VertexView view, Point2D source, Point2D p)
voidinstallAttributes(CellView view)

Field Detail

shape

protected int shape
Holds the shape of the current view.

Method Detail

getEllipsePerimeterPoint

public Point2D getEllipsePerimeterPoint(VertexView view, Point2D source, Point2D p)
Utility method to return the perimeter point for a circle.

Parameters: view The view that defines the bounds of the circle. source The start point of theline to intersect with the circle. p The end point of the line to intersect with the circle.

Returns: The interaction of the circle and the line between source and p.

getPerimeterPoint

public Point2D getPerimeterPoint(VertexView view, Point2D source, Point2D p)

installAttributes

public void installAttributes(CellView view)
Copyright (C) 2001-2009 JGraph Ltd. All rights reserved.