Class SVGVertexRenderer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, SwingConstants, CellViewRenderer

public class SVGVertexRenderer extends VertexRenderer
See Also:
  • Field Details

    • shape

      protected int shape
      Holds the shape of the current view.
  • Constructor Details

    • SVGVertexRenderer

      public SVGVertexRenderer()
  • Method Details

    • getPerimeterPoint

      public Point2D getPerimeterPoint(VertexView view, Point2D source, Point2D p)
      Description copied from class: VertexRenderer
      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 VertexRenderer
    • installAttributes

      public void installAttributes(CellView view)
      Description copied from class: VertexRenderer
      Install the attributes of specified cell in this renderer instance. This means, retrieve every published key from the cells hashtable and set global variables or superclass properties accordingly.
      Overrides:
      installAttributes in class VertexRenderer
      Parameters:
      view - the cell view to retrieve the attribute values from.
    • 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.