Package mindustry.ui.layout
Class BranchTreeLayout
java.lang.Object
mindustry.ui.layout.BranchTreeLayout
- All Implemented Interfaces:
TreeLayout
Algorithm taken from TreeLayout.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
static enum
Nested classes/interfaces inherited from interface mindustry.ui.layout.TreeLayout
TreeLayout.TreeNode<T extends TreeLayout.TreeNode>
-
Field Summary
Modifier and TypeFieldDescriptionfloat
float
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
int
float
getSizeOfLevel
(int level) void
layout
(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:
layout
in interfaceTreeLayout
-
getBounds
-
getLevelCount
public int getLevelCount() -
getGapBetweenNodes
-
getSizeOfLevel
public float getSizeOfLevel(int level)
-