Uses of Interface
edu.cmu.tetrad.graph.LayoutUtil.NodeSize
Packages that use LayoutUtil.NodeSize
-
Uses of LayoutUtil.NodeSize in edu.cmu.tetrad.graph
Methods in edu.cmu.tetrad.graph that return LayoutUtil.NodeSizeModifier and TypeMethodDescriptionstatic LayoutUtil.NodeSizeLayoutUtil.estimatedNodeSize()A size estimate for use when no display sizes are available: about 8 px per character of the name plus padding, with the same 60 px floor and ~30 px height the workbench's measured node boxes use.Methods in edu.cmu.tetrad.graph with parameters of type LayoutUtil.NodeSizeModifier and TypeMethodDescriptionstatic voidLayoutUtil.circleLayout(Graph graph, LayoutUtil.NodeSize size) Arranges the non-latent nodes in a circle just large enough that no two node boxes overlap and, for a circle of a few nodes, an edge between any two of them would be at leastMIN_EDGE_LENGTHlong from box to box (seeMIN_EDGE_LENGTH_MAX_RADIUS), places each latent near its adjacent nodes without overlapping anything, and shifts the result so the bounding box of all node boxes sits at (LAYOUT_MARGIN,LAYOUT_MARGIN) — i.e.static voidLayoutUtil.defaultLayout(Graph graph, LayoutUtil.NodeSize size) Arranges the nodes in the graph by the default layout (seeLayoutUtil.setDefaultLayout(DefaultLayout)), with the given node sizes for the layouts that use them.static voidLayoutUtil.layoutByCausalOrder(Graph graph, LayoutUtil.NodeSize size) Lays the graph out in rows by causal order: the nodes with no parents in the top row, then the nodes all of whose parents are above, and so on down.static voidLayoutUtil.layoutInCenteredRows(List<List<Node>> tiers, LayoutUtil.NodeSize size) Places the given rows of nodes one under another, top row first, each row centered on the widest row.static voidLayoutUtil.repositionLatents(Graph graph, LayoutUtil.NodeSize size) Places each latent near its adjacent nodes without overlapping any other node's box.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size) Richard's layout with the given node sizes and default spacing: a 30 px horizontal gap between node boxes, 90 px between layer centerlines, and a 50 px rightward shear per layer.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size, double xGap, double yGap, double shearPerLayer) Richard's layout, fully parameterized.static voidLayoutUtil.richardsLayout(Graph graph, LayoutUtil.NodeSize size, double xGap, double yGap, double shearPerLayer, boolean nudge) Richard's layout, with the nudge pass switchable.