public final class TreeOptions extends Object
| Constructor and Description |
|---|
TreeOptions() |
| Modifier and Type | Method and Description |
|---|---|
AnnotationPosition |
getAnnotationPosition() |
ColorScheme |
getColorScheme() |
CycleProtection |
getCycleProtection() |
IdentityScheme |
getIdentityScheme() |
int |
getMaxDepth() |
int |
getPadding() |
String |
getPaddingStr() |
TreeStyle |
getStyle() |
void |
setAnnotationPosition(AnnotationPosition pAnnotationPosition) |
void |
setColorScheme(ColorScheme pColorScheme) |
void |
setCycleProtection(CycleProtection pCycleProtection) |
void |
setEnableDefaultColoring(boolean pEnableDefaultColoring)
Setter.
|
void |
setIdentityScheme(IdentityScheme pIdentityScheme) |
void |
setMaxDepth(int pMaxDepth)
Setter.
|
void |
setPadding(int pLenPadding) |
void |
setStyle(TreeStyle pStyle) |
@Nonnull public AnnotationPosition getAnnotationPosition()
@Nonnull public ColorScheme getColorScheme()
@Nonnull public CycleProtection getCycleProtection()
@Nonnull public IdentityScheme getIdentityScheme()
public int getMaxDepth()
public int getPadding()
public void setAnnotationPosition(@Nullable AnnotationPosition pAnnotationPosition)
public void setColorScheme(@Nullable ColorScheme pColorScheme)
public void setCycleProtection(@Nullable CycleProtection pCycleProtection)
public void setEnableDefaultColoring(boolean pEnableDefaultColoring)
pEnableDefaultColoring - flag indicating whether the resulting tree should have default colors
(true) or not be colored at all (false). The default is false.
Individual node colors will always be displayed if set.setColorScheme(org.barfuin.texttree.api.color.ColorScheme)public void setIdentityScheme(@Nullable IdentityScheme pIdentityScheme)
public void setMaxDepth(int pMaxDepth)
pMaxDepth - the maximum depth of the resulting tree. Nodes which are lower down will be clipped. A value of
zero indicates unlimited depth.public void setPadding(int pLenPadding)