Interface EdgeArrowRenderingSupport<V,​E>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.awt.geom.AffineTransform getArrowTransform​(RenderContext<V,​E> rc, java.awt.geom.Line2D edgeShape, java.awt.Shape vertexShape)
      This is used for the arrow of a directed and for one of the arrows for non-directed edges Get a transform to place the arrow shape on the passed edge at the point where it intersects the passed shape
      java.awt.geom.AffineTransform getArrowTransform​(RenderContext<V,​E> rc, java.awt.Shape edgeShape, java.awt.Shape vertexShape)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      java.awt.geom.AffineTransform getReverseArrowTransform​(RenderContext<V,​E> rc, java.awt.Shape edgeShape, java.awt.Shape vertexShape)
      Returns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.
      java.awt.geom.AffineTransform getReverseArrowTransform​(RenderContext<V,​E> rc, java.awt.Shape edgeShape, java.awt.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.
    • Method Detail

      • getArrowTransform

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

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

        java.awt.geom.AffineTransform getReverseArrowTransform​(RenderContext<V,​E> rc,
                                                               java.awt.Shape edgeShape,
                                                               java.awt.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 staring point is not inside the vertex. The passedGo flag handles this case.

        Parameters:
        edgeShape -
        vertexShape -
        passedGo - - used only for Loop edges
      • getArrowTransform

        java.awt.geom.AffineTransform getArrowTransform​(RenderContext<V,​E> rc,
                                                        java.awt.geom.Line2D edgeShape,
                                                        java.awt.Shape vertexShape)
        This is used for the arrow of a directed and for one of the arrows for non-directed edges Get a transform to place the arrow shape on the passed edge at the point where it intersects the passed shape
        Parameters:
        edgeShape -
        vertexShape -
        Returns: