Class ParallelEdgeShapeFunction<V,E>
- java.lang.Object
-
- org.jungrapht.visualization.decorators.ParallelEdgeShapeFunction<V,E>
-
- Type Parameters:
V- vertex typeE- edge type
- All Implemented Interfaces:
BiFunction<org.jgrapht.Graph<V,E>,E,Shape>
- Direct Known Subclasses:
EdgeShape.Box,EdgeShape.CubicCurve,EdgeShape.Loop,EdgeShape.Orthogonal,EdgeShape.QuadCurve
public abstract class ParallelEdgeShapeFunction<V,E> extends Object implements BiFunction<org.jgrapht.Graph<V,E>,E,Shape>
An abstract class for edge-to-Shape functions that work with parallel edges.- Author:
- Tom Nelson
-
-
Field Summary
Fields Modifier and Type Field Description protected floatcontrolOffsetIncrementSpecifies the distance between control points for edges being drawn in parallel.protected EdgeIndexFunction<V,E>edgeIndexFunction
-
Constructor Summary
Constructors Constructor Description ParallelEdgeShapeFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EdgeIndexFunction<V,E>getEdgeIndexFunction()voidsetControlOffsetIncrement(float y)voidsetEdgeIndexFunction(EdgeIndexFunction<V,E> edgeIndexFunction)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiFunction
andThen, apply
-
-
-
-
Field Detail
-
controlOffsetIncrement
protected float controlOffsetIncrement
Specifies the distance between control points for edges being drawn in parallel.
-
edgeIndexFunction
protected EdgeIndexFunction<V,E> edgeIndexFunction
-
-
Method Detail
-
setControlOffsetIncrement
public void setControlOffsetIncrement(float y)
-
setEdgeIndexFunction
public void setEdgeIndexFunction(EdgeIndexFunction<V,E> edgeIndexFunction)
-
getEdgeIndexFunction
public EdgeIndexFunction<V,E> getEdgeIndexFunction()
-
-