Modifier and Type | Field | Description |
---|---|---|
protected List<CommandLine.Help.Ansi.Text> |
CommandLine.Help.TextTable.columnValues |
The
char[] slots of the TextTable to copy text values into. |
Modifier and Type | Method | Description |
---|---|---|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(String string) |
Deprecated.
use
concat(String) instead |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(CommandLine.Help.Ansi.Text text) |
Deprecated.
use
concat(Text) instead |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.apply(String plainText,
List<CommandLine.Help.Ansi.IStyle> styles) |
Returns a new Text object where all the specified styles are applied to the full length of the
specified plain text.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.TextTable.cellAt(int row,
int col) |
Deprecated.
use
CommandLine.Help.TextTable.textAt(int, int) instead |
CommandLine.Help.Ansi.Text |
CommandLine.Help.commandNamesText(String separator) |
Returns a
Text object containing the command name and all aliases, separated with the specified separator. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.commandText(String command) |
Returns a Text with all command styles applied to the specified command string.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.concat(String string) |
Returns a copy of this
Text instance with the specified text concatenated to the end. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.concat(CommandLine.Help.Ansi.Text other) |
Returns a copy of this
Text instance with the specified text concatenated to the end. |
protected CommandLine.Help.Ansi.Text |
CommandLine.Help.createDetailedSynopsisCommandText() |
Returns a Text object containing a partial detailed synopsis showing only the subcommands, starting with a
" " space. |
protected CommandLine.Help.Ansi.Text |
CommandLine.Help.createDetailedSynopsisGroupsText(Set<CommandLine.Model.ArgSpec> outparam_groupArgs) |
Returns a Text object containing a partial detailed synopsis showing only the options and positional parameters in
the specified validating groups, starting with a
" " space. |
protected CommandLine.Help.Ansi.Text |
CommandLine.Help.createDetailedSynopsisOptionsText(Collection<CommandLine.Model.ArgSpec> done,
Comparator<CommandLine.Model.OptionSpec> optionSort,
boolean clusterBooleanOptions) |
Returns a Text object containing a partial detailed synopsis showing only the options, starting with a
" " space. |
protected CommandLine.Help.Ansi.Text |
CommandLine.Help.createDetailedSynopsisPositionalsText(Collection<CommandLine.Model.ArgSpec> done) |
Returns a Text object containing a partial detailed synopsis showing only the positional parameters, starting with a
" " space. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.optionParamText(String optionParam) |
Returns a Text with all optionParam styles applied to the specified optionParam string.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.optionText(String option) |
Returns a Text with all option styles applied to the specified option string.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.ColorScheme.parameterText(String parameter) |
Returns a Text with all parameter styles applied to the specified parameter string.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IOptionRenderer.render(CommandLine.Model.OptionSpec option,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
Returns a text representation of the specified option and its parameter(s) if any.
|
CommandLine.Help.Ansi.Text[][] |
CommandLine.Help.IParameterRenderer.render(CommandLine.Model.PositionalParamSpec param,
CommandLine.Help.IParamLabelRenderer parameterLabelRenderer,
CommandLine.Help.ColorScheme scheme) |
Returns a text representation of the specified positional parameter.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.IParamLabelRenderer.renderParameterLabel(CommandLine.Model.ArgSpec argSpec,
CommandLine.Help.Ansi ansi,
List<CommandLine.Help.Ansi.IStyle> styles) |
Returns a text rendering of the option parameter or positional parameter; returns an empty string
"" if the option is a boolean and does not take a parameter. |
CommandLine.Help.Ansi.Text[] |
CommandLine.Help.Ansi.Text.splitLines() |
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.substring(int start) |
Returns a new
Text instance that is a substring of this Text. |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.substring(int start,
int end) |
Returns a new
Text instance that is a substring of this Text. |
CommandLine.Help.Ansi.Text |
CommandLine.Model.ArgGroupSpec.synopsisText(CommandLine.Help.ColorScheme colorScheme,
Set<CommandLine.Model.ArgSpec> outparam_groupArgs) |
Returns the synopsis of this group.
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.text(String stringWithMarkup) |
Returns a new Text object for this Ansi mode, encapsulating the specified string
which may contain markup like
@|bg(red),white,underline some text|@ . |
CommandLine.Help.Ansi.Text |
CommandLine.Help.TextTable.textAt(int row,
int col) |
Returns the
Text slot at the specified row and column to write a text value into. |
Modifier and Type | Method | Description |
---|---|---|
void |
CommandLine.Help.TextTable.addRowValues(CommandLine.Help.Ansi.Text... values) |
|
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.append(CommandLine.Help.Ansi.Text text) |
Deprecated.
use
concat(Text) instead |
CommandLine.Help.Ansi.Text |
CommandLine.Help.Ansi.Text.concat(CommandLine.Help.Ansi.Text other) |
Returns a copy of this
Text instance with the specified text concatenated to the end. |
void |
CommandLine.Help.Ansi.Text.getStyledChars(int from,
int length,
CommandLine.Help.Ansi.Text destination,
int offset) |
Copies the specified substring of this Text into the specified destination, preserving the markup.
|
protected String |
CommandLine.Help.insertSynopsisCommandName(int synopsisHeadingLength,
CommandLine.Help.Ansi.Text optionsAndPositionalsAndCommandsDetails) |
Returns the detailed synopsis text by inserting the command name before the specified text with options and positional parameters details.
|
void |
CommandLine.Help.Layout.layout(CommandLine.Model.ArgSpec argSpec,
CommandLine.Help.Ansi.Text[][] cellValues) |
Copies the specified text values into the correct cells in the
CommandLine.Help.TextTable . |
CommandLine.Help.TextTable.Cell |
CommandLine.Help.TextTable.putValue(int row,
int col,
CommandLine.Help.Ansi.Text value) |
Writes the specified value into the cell at the specified row and column and returns the last row and
column written to.
|
Constructor | Description |
---|---|
Text(CommandLine.Help.Ansi.Text other) |
Copy constructor.
|
Copyright © 2017–2019. All rights reserved.