Class BaseLayoutAlgorithm2D<V,E>
java.lang.Object
org.jgrapht.alg.drawing.BaseLayoutAlgorithm2D<V,E>
- Type Parameters:
V- the vertex typeE- the edge type
- All Implemented Interfaces:
LayoutAlgorithm2D<V,E>
- Direct Known Subclasses:
CircularLayoutAlgorithm2D, FRLayoutAlgorithm2D, RandomLayoutAlgorithm2D, RescaleLayoutAlgorithm2D
A base class for a 2d layout algorithm.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreate a new layout algorithmBaseLayoutAlgorithm2D(Function<V, Point2D> initializer) Create a new layout algorithm with an initializer. -
Method Summary
Modifier and TypeMethodDescriptionGet the initializerprotected voidInitialize a model using the initializer.voidsetInitializer(Function<V, Point2D> initializer) Set the initializerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LayoutAlgorithm2D
layout
-
Field Details
-
initializer
-
-
Constructor Details
-
BaseLayoutAlgorithm2D
public BaseLayoutAlgorithm2D()Create a new layout algorithm -
BaseLayoutAlgorithm2D
-
-
Method Details
-
getInitializer
-
setInitializer
-
init
Initialize a model using the initializer.- Parameters:
graph- the graphmodel- the model
-