Interface EdgeArrowRenderingSupport<V,E>

All Known Implementing Classes:
BasicEdgeArrowRenderingSupport, CenterEdgeArrowRenderingSupport

public interface EdgeArrowRenderingSupport<V,E>
  • Method Details

    • getArrowTransform

      AffineTransform getArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Parameters:
      rc - the rendering context used for rendering the arrow
      edgeShape - the shape used to draw the edge
      vertexShape - the shape used to draw the vertex
      Returns:
      a transform used for positioning the arrowhead for this vertex and edge
    • getReverseArrowTransform

      AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Parameters:
      rc - the rendering context used for rendering the arrow
      edgeShape - the shape used to draw the edge
      vertexShape - the shape used to draw the vertex
      Returns:
      a transform used for positioning the arrowhead for this vertex and edge
    • getReverseArrowTransform

      AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape, boolean passedGo)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.

      The Loop edge is a special case because its starting point is not inside the vertex. The passedGo flag handles this case.

      Parameters:
      rc - the rendering context used for rendering the arrow
      edgeShape - the shape used to draw the edge
      vertexShape - the shape used to draw the vertex
      passedGo - used for rendering loop edges
      Returns:
      a transform used for positioning the arrowhead for this vertex and edge
    • getArrowTransform

      AffineTransform getArrowTransform(RenderContext<V,E> rc, Line2D edgeShape, Shape vertexShape)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Parameters:
      rc - the rendering context used for rendering the arrow
      edgeShape - the shape used to draw the edge
      vertexShape - the shape used to draw the vertex
      Returns:
      a transform used for positioning the arrowhead for this vertex and edge