public class CenterEdgeArrowRenderingSupport<V,E> extends Object implements EdgeArrowRenderingSupport<V,E>
Constructor and Description |
---|
CenterEdgeArrowRenderingSupport() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
protected AffineTransform |
getReverseArrowTransform(RenderContext<V,E> rc,
Line2D edgeShape,
Shape vertexShape) |
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.
|
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.
|
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
|
public AffineTransform getArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
EdgeArrowRenderingSupport
getArrowTransform
in interface EdgeArrowRenderingSupport<V,E>
rc
- the rendering context used for rendering the arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertexpublic AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape)
EdgeArrowRenderingSupport
getReverseArrowTransform
in interface EdgeArrowRenderingSupport<V,E>
rc
- the rendering context used for rendering the arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertexpublic AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Shape edgeShape, Shape vertexShape, boolean passedGo)
getReverseArrowTransform
in interface EdgeArrowRenderingSupport<V,E>
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)public AffineTransform getArrowTransform(RenderContext<V,E> rc, Line2D edgeShape, Shape vertexShape)
EdgeArrowRenderingSupport
getArrowTransform
in interface EdgeArrowRenderingSupport<V,E>
rc
- the rendering context used for rendering the arrowedgeShape
- the shape used to draw the edgevertexShape
- the shape used to draw the vertexprotected AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, Line2D edgeShape, Shape vertexShape)
Copyright © 2015. All rights reserved.