Package mindustry.ui.layout
Class BranchTreeLayout
java.lang.Object
mindustry.ui.layout.BranchTreeLayout
- All Implemented Interfaces:
TreeLayout
Algorithm taken from TreeLayout.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumNested classes/interfaces inherited from interface mindustry.ui.layout.TreeLayout
TreeLayout.TreeNode<T extends TreeLayout.TreeNode> -
Field Summary
FieldsModifier and TypeFieldDescriptionfloatfloat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarc.math.geom.RectfloatintfloatgetSizeOfLevel(int level) voidlayout(TreeLayout.TreeNode root)
-
Field Details
-
rootLocation
-
alignment
-
gapBetweenLevels
public float gapBetweenLevels -
gapBetweenNodes
public float gapBetweenNodes
-
-
Constructor Details
-
BranchTreeLayout
public BranchTreeLayout()
-
-
Method Details
-
layout
- Specified by:
layoutin interfaceTreeLayout
-
getBounds
public arc.math.geom.Rect getBounds() -
getLevelCount
public int getLevelCount() -
getGapBetweenNodes
-
getSizeOfLevel
public float getSizeOfLevel(int level)
-