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 Summary
Constructors -
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.protected AffineTransform
getReverseArrowTransform
(RenderContext<V, E> rc, Line2D edgeShape, Shape vertexShape) 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.protected void
divide a Line2D into 2 new Line2Ds that are returned in the passed left and right instances, if non-null
-
Constructor Details
-
CenterEdgeArrowRenderingSupport
public CenterEdgeArrowRenderingSupport()
-
-
Method Details
-
getArrowTransform
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 interfaceEdgeArrowRenderingSupport<V,
E> - 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
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 interfaceEdgeArrowRenderingSupport<V,
E> - 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
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 interfaceEdgeArrowRenderingSupport<V,
E> - Parameters:
rc
- the rendering context used for rendering the arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertexpassedGo
- (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 interfaceEdgeArrowRenderingSupport<V,
E> - 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
protected AffineTransform getReverseArrowTransform(RenderContext<V, E> rc, Line2D edgeShape, Shape vertexShape) -
subdivide
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 divideleft
- the left side, or nullright
- the right side, or null
-