Uses of Record Class
cloud.opencode.base.graph.layout.LayoutUtil.Point2D
Packages that use LayoutUtil.Point2D
Package
Description
Graph Layout Algorithms - Algorithms for graph visualization layout
图布局算法 - 用于图可视化布局的算法
-
Uses of LayoutUtil.Point2D in cloud.opencode.base.graph.layout
Methods in cloud.opencode.base.graph.layout that return LayoutUtil.Point2DModifier and TypeMethodDescriptionLayoutUtil.Point2D.add(LayoutUtil.Point2D other) Add another point (vector addition).LayoutUtil.Point2D.multiply(double scalar) Multiply by scalar.LayoutUtil.Point2D.subtract(LayoutUtil.Point2D other) Subtract another point (vector subtraction).Methods in cloud.opencode.base.graph.layout that return types with arguments of type LayoutUtil.Point2DModifier and TypeMethodDescriptionstatic <V> Map<V, LayoutUtil.Point2D> LayoutUtil.center(Map<V, LayoutUtil.Point2D> positions, double width, double height) Center layout in the given bounds.static <V> Map<V, LayoutUtil.Point2D> Compute circular layout with default center.static <V> Map<V, LayoutUtil.Point2D> Compute circular layout.static <V> Map<V, LayoutUtil.Point2D> LayoutUtil.forceDirected(Graph<V> graph, double width, double height) Compute force-directed layout using Fruchterman-Reingold algorithm.static <V> Map<V, LayoutUtil.Point2D> LayoutUtil.forceDirected(Graph<V> graph, double width, double height, int iterations) Compute force-directed layout with custom iterations.static <V> Map<V, LayoutUtil.Point2D> Compute grid layout.static <V> Map<V, LayoutUtil.Point2D> LayoutUtil.hierarchical(Graph<V> graph, double width, double height) Compute hierarchical layout (top-down).static <V> Map<V, LayoutUtil.Point2D> Compute random layout.static <V> Map<V, LayoutUtil.Point2D> LayoutUtil.scale(Map<V, LayoutUtil.Point2D> positions, double width, double height, double margin) Scale layout to fit in the given bounds.static <V> Map<V, LayoutUtil.Point2D> Compute spring layout (simplified force-directed).static <V> Map<V, LayoutUtil.Point2D> Compute spring layout with custom parameters.Methods in cloud.opencode.base.graph.layout with parameters of type LayoutUtil.Point2DModifier and TypeMethodDescriptionLayoutUtil.Point2D.add(LayoutUtil.Point2D other) Add another point (vector addition).doubleLayoutUtil.Point2D.distanceTo(LayoutUtil.Point2D other) Calculate distance to another point.LayoutUtil.Point2D.subtract(LayoutUtil.Point2D other) Subtract another point (vector subtraction).Method parameters in cloud.opencode.base.graph.layout with type arguments of type LayoutUtil.Point2DModifier and TypeMethodDescriptionstatic <V> Map<V, LayoutUtil.Point2D> LayoutUtil.center(Map<V, LayoutUtil.Point2D> positions, double width, double height) Center layout in the given bounds.static <V> Map<V, LayoutUtil.Point2D> LayoutUtil.scale(Map<V, LayoutUtil.Point2D> positions, double width, double height, double margin) Scale layout to fit in the given bounds.