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 java.lang.Object implements EdgeArrowRenderingSupport<V,E>
-
-
Constructor Summary
Constructors Constructor Description CenterEdgeArrowRenderingSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.geom.AffineTransform
getArrowTransform(RenderContext<V,E> rc, java.awt.geom.Line2D 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
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.protected java.awt.geom.AffineTransform
getReverseArrowTransform(RenderContext<V,E> rc, java.awt.geom.Line2D edgeShape, java.awt.Shape vertexShape)
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.protected void
subdivide(java.awt.geom.Line2D src, java.awt.geom.Line2D left, java.awt.geom.Line2D right)
divide a Line2D into 2 new Line2Ds that are returned in the passed left and right instances, if non-null
-
-
-
Method Detail
-
getArrowTransform
public java.awt.geom.AffineTransform getArrowTransform(RenderContext<V,E> rc, java.awt.Shape edgeShape, java.awt.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
public java.awt.geom.AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, java.awt.Shape edgeShape, java.awt.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 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.- 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 java.awt.geom.AffineTransform getArrowTransform(RenderContext<V,E> rc, java.awt.geom.Line2D edgeShape, java.awt.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 java.awt.geom.AffineTransform getReverseArrowTransform(RenderContext<V,E> rc, java.awt.geom.Line2D edgeShape, java.awt.Shape vertexShape)
-
subdivide
protected void subdivide(java.awt.geom.Line2D src, java.awt.geom.Line2D left, java.awt.geom.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 divideleft
- the left side, or nullright
- the right side, or null
-
-