public final class TreeOptions extends Object
| Constructor and Description |
|---|
TreeOptions() |
| Modifier and Type | Method and Description |
|---|---|
static TreeOptions |
copyOf(TreeOptions pTreeOptions) |
AnnotationPosition |
getAnnotationPosition() |
ColorScheme |
getColorScheme() |
CycleProtection |
getCycleProtection() |
IdentityScheme |
getIdentityScheme() |
int |
getMaxDepth() |
TreeStyle |
getStyle() |
int |
getVerticalSpacing() |
boolean |
isCycleAsPruned() |
void |
setAnnotationPosition(AnnotationPosition pAnnotationPosition) |
void |
setColorScheme(ColorScheme pColorScheme) |
void |
setCycleAsPruned(boolean pCycleAsPruned)
Setter.
|
void |
setCycleProtection(CycleProtection pCycleProtection) |
void |
setEnableDefaultColoring(boolean pEnableDefaultColoring)
Setter.
|
void |
setIdentityScheme(IdentityScheme pIdentityScheme) |
void |
setMaxDepth(int pMaxDepth)
Setter.
|
void |
setStyle(TreeStyle pStyle) |
void |
setVerticalSpacing(int pVerticalSpacing)
Setter.
|
public static TreeOptions copyOf(@Nonnull TreeOptions pTreeOptions)
@Nonnull public AnnotationPosition getAnnotationPosition()
@Nonnull public ColorScheme getColorScheme()
@Nonnull public CycleProtection getCycleProtection()
@Nonnull public IdentityScheme getIdentityScheme()
public int getMaxDepth()
public int getVerticalSpacing()
public boolean isCycleAsPruned()
public void setAnnotationPosition(@Nullable AnnotationPosition pAnnotationPosition)
public void setColorScheme(@Nullable ColorScheme pColorScheme)
public void setCycleAsPruned(boolean pCycleAsPruned)
pCycleAsPruned - flag indicating whether detected cycles should be flagged with a
"shown before" callout instead of a "CYCLE" callout. This would tune down the
cycles a bit, a behavior which may be desired by the invoking application.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 setVerticalSpacing(int pVerticalSpacing)
pVerticalSpacing - the number of blank lines to print before each node (defaults to 0)