Uses of Class
org.jgrapht.alg.drawing.model.Point2D
-
Packages that use Point2D Package Description org.jgrapht.alg.drawing Graph Drawing.org.jgrapht.alg.drawing.model Graph Drawing Basic Types and Models. -
-
Uses of Point2D in org.jgrapht.alg.drawing
Fields in org.jgrapht.alg.drawing with type parameters of type Point2D Modifier and Type Field Description protected Function<V,Point2D>
BaseLayoutAlgorithm2D. initializer
A model initializerprotected Function<V,Point2D>
BaseLayoutAlgorithm2D. initializer
A model initializerprotected Function<V,Point2D>
BaseLayoutAlgorithm2D. initializer
A model initializerprotected Function<V,Point2D>
BaseLayoutAlgorithm2D. initializer
A model initializerprotected Function<V,Point2D>
BaseLayoutAlgorithm2D. initializer
A model initializerMethods in org.jgrapht.alg.drawing that return types with arguments of type Point2D Modifier and Type Method Description protected Map<V,Point2D>
FRLayoutAlgorithm2D. calculateAttractiveForces(Graph<V,E> graph, LayoutModel2D<V> model)
Calculate the repulsive forces between vertices connected with edges.protected Map<V,Point2D>
FRLayoutAlgorithm2D. calculateRepulsiveForces(Graph<V,E> graph, LayoutModel2D<V> model)
Calculate the repulsive forces between verticesprotected Map<V,Point2D>
IndexedFRLayoutAlgorithm2D. calculateRepulsiveForces(Graph<V,E> graph, LayoutModel2D<V> model)
-
Uses of Point2D in org.jgrapht.alg.drawing.model
Fields in org.jgrapht.alg.drawing.model with type parameters of type Point2D Modifier and Type Field Description protected List<BiConsumer<V,Point2D>>
ListenableLayoutModel2D. listeners
protected Map<V,Point2D>
MapLayoutModel2D. points
Methods in org.jgrapht.alg.drawing.model that return Point2D Modifier and Type Method Description static Point2D
Points. add(Point2D a, Point2D b)
Add 2-dimensional vectorsPoint2D
LayoutModel2D. get(V vertex)
Get the last location of a particular vertex in the model.Point2D
ListenableLayoutModel2D. get(V vertex)
Point2D
MapLayoutModel2D. get(V vertex)
static Point2D
Points. negate(Point2D a)
Given a vector $a$ compute $-a$.static Point2D
Point2D. of(double x, double y)
Create a new pointPoint2D
LayoutModel2D. put(V vertex, Point2D point)
Set the location of a vertex.Point2D
ListenableLayoutModel2D. put(V vertex, Point2D point)
Point2D
MapLayoutModel2D. put(V vertex, Point2D point)
static Point2D
Points. scalarMultiply(Point2D a, double scalar)
Multiply a vector with a scalar.static <S> Point2D
Points. scalarMultiply(Point2D a, S scalar, BiFunction<Double,S,Double> mult)
Multiply a vector with a scalar.static Point2D
Points. subtract(Point2D a, Point2D b)
Subtract 2-dimensional vectorsMethods in org.jgrapht.alg.drawing.model that return types with arguments of type Point2D Modifier and Type Method Description BiConsumer<V,Point2D>
ListenableLayoutModel2D. addListener(BiConsumer<V,Point2D> listener)
Add a new listener.default Map<V,Point2D>
LayoutModel2D. collect()
Collect a map of all vertices locations.Iterator<Map.Entry<V,Point2D>>
LayoutModel2D. iterator()
Get an iterator with all vertices' locations.Iterator<Map.Entry<V,Point2D>>
ListenableLayoutModel2D. iterator()
Iterator<Map.Entry<V,Point2D>>
MapLayoutModel2D. iterator()
Methods in org.jgrapht.alg.drawing.model with parameters of type Point2D Modifier and Type Method Description static Point2D
Points. add(Point2D a, Point2D b)
Add 2-dimensional vectorsstatic boolean
Boxes. containsPoint(Box2D box, Point2D p)
Test whether a box contains a point.static boolean
Boxes. containsPoint(Box2D box, Point2D p, Comparator<Double> comparator)
Test whether a box contains a point.static boolean
Points. equals(Point2D p1, Point2D p2)
Compare two points for equality using tolerance 1e-9.static double
Points. length(Point2D v)
Compute the length of a vector.static Point2D
Points. negate(Point2D a)
Given a vector $a$ compute $-a$.protected void
ListenableLayoutModel2D. notifyListeners(V vertex, Point2D point)
Notify all registered listeners.Point2D
LayoutModel2D. put(V vertex, Point2D point)
Set the location of a vertex.Point2D
ListenableLayoutModel2D. put(V vertex, Point2D point)
Point2D
MapLayoutModel2D. put(V vertex, Point2D point)
static Point2D
Points. scalarMultiply(Point2D a, double scalar)
Multiply a vector with a scalar.static <S> Point2D
Points. scalarMultiply(Point2D a, S scalar, BiFunction<Double,S,Double> mult)
Multiply a vector with a scalar.static Point2D
Points. subtract(Point2D a, Point2D b)
Subtract 2-dimensional vectorsMethod parameters in org.jgrapht.alg.drawing.model with type arguments of type Point2D Modifier and Type Method Description BiConsumer<V,Point2D>
ListenableLayoutModel2D. addListener(BiConsumer<V,Point2D> listener)
Add a new listener.boolean
ListenableLayoutModel2D. removeListener(BiConsumer<V,Point2D> listener)
Remove a listener.
-