edu.uci.ics.jung.visualization.renderers
Class BasicEdgeArrowRenderingSupport<V,E>
- java.lang.Object
-
- edu.uci.ics.jung.visualization.renderers.BasicEdgeArrowRenderingSupport<V,E>
-
- All Implemented Interfaces:
- EdgeArrowRenderingSupport<V,E>
public class BasicEdgeArrowRenderingSupport<V,E> extends java.lang.Object implements EdgeArrowRenderingSupport<V,E>
-
-
Constructor Summary
Constructors Constructor and Description BasicEdgeArrowRenderingSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.geom.AffineTransformgetArrowTransform(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.AffineTransformgetArrowTransform(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.AffineTransformgetReverseArrowTransform(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.AffineTransformgetReverseArrowTransform(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
public java.awt.geom.AffineTransform getArrowTransform(RenderContext<V,E> rc, java.awt.Shape edgeShape, java.awt.Shape vertexShape)
Description copied from interface:EdgeArrowRenderingSupportReturns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.- Specified by:
getArrowTransformin 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:EdgeArrowRenderingSupportReturns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.- Specified by:
getReverseArrowTransformin 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)
Description copied from interface:EdgeArrowRenderingSupportReturns 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.
- Specified by:
getReverseArrowTransformin 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- used for rendering loop edges- 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:EdgeArrowRenderingSupportReturns a transform to position the arrowhead on this edge shape at the point where it intersects the passed vertex shape.- Specified by:
getArrowTransformin 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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG