Uses of Class
org.jgrapht.alg.drawing.model.Point2D
Packages that use Point2D
Package
Description
Graph Drawing.
Graph Drawing Basic Types and Models.
-
Uses of Point2D in org.jgrapht.alg.drawing
Fields in org.jgrapht.alg.drawing declared as Point2DFields in org.jgrapht.alg.drawing with type parameters of type Point2DModifier and TypeFieldDescriptionBaseLayoutAlgorithm2D.initializerA model initializerFRQuadTree.Node.pointsMethods in org.jgrapht.alg.drawing that return Point2DModifier and TypeMethodDescriptionFRQuadTree.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 Point2DModifier 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) BaseLayoutAlgorithm2D.getInitializer()Get the initializerFRQuadTree.Node.getPoints()Get a list of all points contained in this node.Methods in org.jgrapht.alg.drawing with parameters of type Point2DMethod parameters in org.jgrapht.alg.drawing with type arguments of type Point2DModifier and TypeMethodDescriptionvoidBaseLayoutAlgorithm2D.setInitializer(Function<V, Point2D> initializer) Set the initializerConstructor parameters in org.jgrapht.alg.drawing with type arguments of type Point2DModifierConstructorDescriptionBaseLayoutAlgorithm2D(Function<V, Point2D> initializer) Create a new layout algorithm with an initializer. -
Uses of Point2D in org.jgrapht.alg.drawing.model
Subinterfaces with type arguments of type Point2D in org.jgrapht.alg.drawing.modelModifier and TypeInterfaceDescriptioninterfaceA general interface for the 2D layout model.Fields in org.jgrapht.alg.drawing.model with type parameters of type Point2DModifier and TypeFieldDescriptionprotected List<BiConsumer<V, Point2D>> ListenableLayoutModel2D.listenersMapLayoutModel2D.pointsMethods in org.jgrapht.alg.drawing.model that return Point2DModifier and TypeMethodDescriptionstatic Point2DAdd 2-dimensional vectorsGet the last location of a particular vertex in the model.static Point2DGiven a vector $a$ compute $-a$.static Point2DPoint2D.of(double x, double y) Create a new pointSet the location of a vertex.static Point2DPoints.scalarMultiply(Point2D a, double scalar) Multiply a vector with a scalar.static <S> Point2DPoints.scalarMultiply(Point2D a, S scalar, BiFunction<Double, S, Double> mult) Multiply a vector with a scalar.static Point2DSubtract 2-dimensional vectorsMethods in org.jgrapht.alg.drawing.model that return types with arguments of type Point2DModifier 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()Methods in org.jgrapht.alg.drawing.model with parameters of type Point2DModifier and TypeMethodDescriptionstatic Point2DAdd 2-dimensional vectorsstatic booleanBoxes.containsPoint(Box2D box, Point2D p) Test whether a box contains a point.static booleanBoxes.containsPoint(Box2D box, Point2D p, Comparator<Double> comparator) Test whether a box contains a point.static booleanCompare two points for equality using tolerance 1e-9.static doubleCompute the length of a vector.static Point2DGiven a vector $a$ compute $-a$.protected voidListenableLayoutModel2D.notifyListeners(V vertex, Point2D point) Notify all registered listeners.Set the location of a vertex.static Point2DPoints.scalarMultiply(Point2D a, double scalar) Multiply a vector with a scalar.static <S> Point2DPoints.scalarMultiply(Point2D a, S scalar, BiFunction<Double, S, Double> mult) Multiply a vector with a scalar.static Point2DSubtract 2-dimensional vectorsMethod parameters in org.jgrapht.alg.drawing.model with type arguments of type Point2DModifier and TypeMethodDescriptionListenableLayoutModel2D.addListener(BiConsumer<V, Point2D> listener) Add a new listener.booleanListenableLayoutModel2D.removeListener(BiConsumer<V, Point2D> listener) Remove a listener.