Uses of Class
org.jgrapht.alg.drawing.model.Point2D
Package
Description
Graph Drawing.
Graph Drawing Basic Types and Models.
-
Uses of Point2D in org.jgrapht.alg.drawing
Modifier and TypeFieldDescriptionBaseLayoutAlgorithm2D.initializer
A model initializerBaseLayoutAlgorithm2D.initializer
A model initializerBaseLayoutAlgorithm2D.initializer
A model initializerBaseLayoutAlgorithm2D.initializer
A model initializerBaseLayoutAlgorithm2D.initializer
A model initializerModifier and TypeMethodDescriptionFRLayoutAlgorithm2D.calculateAttractiveForces
(Graph<V, E> graph, LayoutModel2D<V> model) Calculate the repulsive forces between vertices connected with edges.FRLayoutAlgorithm2D.calculateRepulsiveForces
(Graph<V, E> graph, LayoutModel2D<V> model) Calculate the repulsive forces between verticesIndexedFRLayoutAlgorithm2D.calculateRepulsiveForces
(Graph<V, E> graph, LayoutModel2D<V> model) -
Uses of Point2D in org.jgrapht.alg.drawing.model
Modifier and TypeFieldDescriptionprotected List<BiConsumer<V,
Point2D>> ListenableLayoutModel2D.listeners
MapLayoutModel2D.points
Modifier and TypeMethodDescriptionstatic Point2D
Add 2-dimensional vectorsGet the last location of a particular vertex in the model.static Point2D
Given a vector $a$ compute $-a$.static Point2D
Point2D.of
(double x, double y) Create a new pointSet the location of a vertex.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
Subtract 2-dimensional vectorsModifier and TypeMethodDescriptionListenableLayoutModel2D.addListener
(BiConsumer<V, Point2D> listener) Add a new listener.LayoutModel2D.collect()
Collect a map of all vertices locations.LayoutModel2D.iterator()
Get an iterator with all vertices' locations.ListenableLayoutModel2D.iterator()
MapLayoutModel2D.iterator()
Modifier and TypeMethodDescriptionstatic Point2D
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
Compare two points for equality using tolerance 1e-9.static double
Compute the length of a vector.static Point2D
Given a vector $a$ compute $-a$.protected void
ListenableLayoutModel2D.notifyListeners
(V vertex, Point2D point) Notify all registered listeners.Set the location of a vertex.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
Subtract 2-dimensional vectorsModifier and TypeMethodDescriptionListenableLayoutModel2D.addListener
(BiConsumer<V, Point2D> listener) Add a new listener.boolean
ListenableLayoutModel2D.removeListener
(BiConsumer<V, Point2D> listener) Remove a listener.