Class CenterEdgeArrowRenderingSupport<V,E>

java.lang.Object
edu.uci.ics.jung.visualization.renderers.CenterEdgeArrowRenderingSupport<V,E>
All Implemented Interfaces:
EdgeArrowRenderingSupport<V,E>

public class CenterEdgeArrowRenderingSupport<V,E> extends Object implements EdgeArrowRenderingSupport<V,E>
  • Constructor Details

    • CenterEdgeArrowRenderingSupport

      public CenterEdgeArrowRenderingSupport()
  • Method Details

    • getArrowTransform

      public AffineTransform getArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
      Description copied from interface: EdgeArrowRenderingSupport
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Specified by:
      getArrowTransform in interface EdgeArrowRenderingSupport<V,E>
      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

      public AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
      Description copied from interface: EdgeArrowRenderingSupport
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Specified by:
      getReverseArrowTransform in interface EdgeArrowRenderingSupport<V,E>
      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

      public 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.
      Specified by:
      getReverseArrowTransform in interface EdgeArrowRenderingSupport<V,E>
      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 - (ignored in this implementation)
      Returns:
      a transform used for positioning the arrowhead for this vertex and edge
    • getArrowTransform

      public AffineTransform getArrowTransform(RenderContext<V,E> rc, Line2D edgeShape, Shape vertexShape)
      Description copied from interface: EdgeArrowRenderingSupport
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      Specified by:
      getArrowTransform in interface EdgeArrowRenderingSupport<V,E>
      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

      protected AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Line2D edgeShape, Shape vertexShape)
    • subdivide

      protected void subdivide(Line2D src, Line2D left, Line2D right)
      divide a Line2D into 2 new Line2Ds that are returned in the passed left and right instances, if non-null
      Parameters:
      src - the line to divide
      left - the left side, or null
      right - the right side, or null