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 declared as Point2D Modifier and Type Field Description (package private) Point2DFRQuadTree.Node. centroidFields in org.jgrapht.alg.drawing with type parameters of type Point2D Modifier and Type Field Description protected java.util.function.Function<V,Point2D>BaseLayoutAlgorithm2D. initializerA model initializer(package private) java.util.List<Point2D>FRQuadTree.Node. pointsMethods in org.jgrapht.alg.drawing that return Point2D Modifier and Type Method Description Point2DFRQuadTree.Node. getCentroid()Get the centroid of all points contained in this node.Methods in org.jgrapht.alg.drawing that return types with arguments of type Point2D Modifier and Type Method Description protected java.util.Map<V,Point2D>FRLayoutAlgorithm2D. calculateAttractiveForces(Graph<V,E> graph, LayoutModel2D<V> model)Calculate the repulsive forces between vertices connected with edges.protected java.util.Map<V,Point2D>FRLayoutAlgorithm2D. calculateRepulsiveForces(Graph<V,E> graph, LayoutModel2D<V> model)Calculate the repulsive forces between verticesprotected java.util.Map<V,Point2D>IndexedFRLayoutAlgorithm2D. calculateRepulsiveForces(Graph<V,E> graph, LayoutModel2D<V> model)java.util.function.Function<V,Point2D>BaseLayoutAlgorithm2D. getInitializer()Get the initializerjava.util.List<Point2D>FRQuadTree.Node. getPoints()Get a list of all points contained in this node.Methods in org.jgrapht.alg.drawing with parameters of type Point2D Modifier and Type Method Description voidFRQuadTree. insert(Point2D p)Insert a new point.Method parameters in org.jgrapht.alg.drawing with type arguments of type Point2D Modifier and Type Method Description voidBaseLayoutAlgorithm2D. setInitializer(java.util.function.Function<V,Point2D> initializer)Set the initializerConstructor parameters in org.jgrapht.alg.drawing with type arguments of type Point2D Constructor Description BaseLayoutAlgorithm2D(java.util.function.Function<V,Point2D> initializer)Create a new layout algorithm with an initializer. -
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 java.util.List<java.util.function.BiConsumer<V,Point2D>>ListenableLayoutModel2D. listenersprotected java.util.Map<V,Point2D>MapLayoutModel2D. pointsMethods in org.jgrapht.alg.drawing.model that return Point2D Modifier and Type Method Description static Point2DPoints. add(Point2D a, Point2D b)Add 2-dimensional vectorsPoint2DLayoutModel2D. get(V vertex)Get the last location of a particular vertex in the model.Point2DListenableLayoutModel2D. get(V vertex)Point2DMapLayoutModel2D. get(V vertex)static Point2DPoints. negate(Point2D a)Given a vector $a$ compute $-a$.static Point2DPoint2D. of(double x, double y)Create a new pointPoint2DLayoutModel2D. put(V vertex, Point2D point)Set the location of a vertex.Point2DListenableLayoutModel2D. put(V vertex, Point2D point)Point2DMapLayoutModel2D. put(V vertex, Point2D point)static Point2DPoints. scalarMultiply(Point2D a, double scalar)Multiply a vector with a scalar.static <S> Point2DPoints. scalarMultiply(Point2D a, S scalar, java.util.function.BiFunction<java.lang.Double,S,java.lang.Double> mult)Multiply a vector with a scalar.static Point2DPoints. 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 java.util.function.BiConsumer<V,Point2D>ListenableLayoutModel2D. addListener(java.util.function.BiConsumer<V,Point2D> listener)Add a new listener.default java.util.Map<V,Point2D>LayoutModel2D. collect()Collect a map of all vertices locations.java.util.Iterator<java.util.Map.Entry<V,Point2D>>LayoutModel2D. iterator()Get an iterator with all vertices' locations.java.util.Iterator<java.util.Map.Entry<V,Point2D>>ListenableLayoutModel2D. iterator()java.util.Iterator<java.util.Map.Entry<V,Point2D>>MapLayoutModel2D. iterator()Methods in org.jgrapht.alg.drawing.model with parameters of type Point2D Modifier and Type Method Description static Point2DPoints. add(Point2D a, Point2D b)Add 2-dimensional vectorsstatic booleanBoxes. containsPoint(Box2D box, Point2D p)Test whether a box contains a point.static booleanBoxes. containsPoint(Box2D box, Point2D p, java.util.Comparator<java.lang.Double> comparator)Test whether a box contains a point.static booleanPoints. equals(Point2D p1, Point2D p2)Compare two points for equality using tolerance 1e-9.static doublePoints. length(Point2D v)Compute the length of a vector.static Point2DPoints. negate(Point2D a)Given a vector $a$ compute $-a$.protected voidListenableLayoutModel2D. notifyListeners(V vertex, Point2D point)Notify all registered listeners.Point2DLayoutModel2D. put(V vertex, Point2D point)Set the location of a vertex.Point2DListenableLayoutModel2D. put(V vertex, Point2D point)Point2DMapLayoutModel2D. put(V vertex, Point2D point)static Point2DPoints. scalarMultiply(Point2D a, double scalar)Multiply a vector with a scalar.static <S> Point2DPoints. scalarMultiply(Point2D a, S scalar, java.util.function.BiFunction<java.lang.Double,S,java.lang.Double> mult)Multiply a vector with a scalar.static Point2DPoints. 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 java.util.function.BiConsumer<V,Point2D>ListenableLayoutModel2D. addListener(java.util.function.BiConsumer<V,Point2D> listener)Add a new listener.booleanListenableLayoutModel2D. removeListener(java.util.function.BiConsumer<V,Point2D> listener)Remove a listener.
-