Interface EdgeArrowRenderingSupport<V,E>
- All Known Implementing Classes:
BasicEdgeArrowRenderingSupport
,CenterEdgeArrowRenderingSupport
public interface EdgeArrowRenderingSupport<V,E>
-
Method Summary
Modifier and TypeMethodDescriptiongetArrowTransform
(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.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.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.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.
-
Method Details
-
getArrowTransform
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 arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertex- Returns:
- a transform used for positioning the arrowhead for this vertex and edge
-
getReverseArrowTransform
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 arrowedgeShape
- the shape used to draw the edgevertexShape
- 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 arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertexpassedGo
- used for rendering loop edges- Returns:
- a transform used for positioning the arrowhead for this vertex and edge
-
getArrowTransform
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 arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertex- Returns:
- a transform used for positioning the arrowhead for this vertex and edge
-