Clique provides static factory methods for all library components.
This is the primary entry point for interacting with Clique.
Example usage:
Clique.parser().print("[red, bold]Error:[/] Something went wrong");
Clique.table()
.headers("Name", "Age")
.row("Alice", "25")
.render();
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static Box | Returns: a newBox instanceCreates a |
| public static Box | Returns: a newBox instancethe box configuration to use configuration)Creates a |
| public static Box | Returns: a newBox instancethe box type to use type, BoxConfiguration the box configuration to use configuration)Creates a |
| public static Box | Returns: a newBox instancethe box type to use type)Creates a |
| public static Box | |
| public static Box | |
| public static Box | |
| public static Box | |
| public static AnsiCode | |
| public static AnsiCode | |
| public static void | |
| public static Divider | |
| public static Divider | |
| public static Divider | |
| public static Divider | Returns: a newDivider instancethe width of the divider width, DividerConfiguration the divider configuration to use config)Creates a |
| public static void | |
| public static List | Returns: a list of available themesReturns a list of all |
| public static Optional | |
| public static Frame | Returns: a newFrame instanceCreates a |
| public static Frame | Returns: a newFrame instancethe frame configuration to use configuration)Creates a |
| public static Frame | Returns: a newFrame instancethe box type to use for the frame border type)Creates a |
| public static Frame | Returns: a newFrame instancethe box type to use for the frame border type, FrameConfiguration the frame configuration to use configuration)Creates a |
| public static Frame | |
| public static Frame | Returns: a newFrame instanceone or more ANSI codes to apply to the border borderColor)Creates a |
| public static Frame | |
| public static Frame | Returns: a newFrame instancethe name of a registered color to apply to the border borderColor)Creates a |
| public static RGBAnsiCode | Returns: a newRGBAnsiCodethe hex color string; must not be hexCode)null and must be in #RRGGBB formatApplies a 24-bit RGB foreground color via a |
| public static RGBAnsiCode | Returns: a newRGBAnsiCodethe hex color string; must not be hexCode, boolean null and must be in #RRGGBB formattrue to apply as a background color, false for foregroundApplies a 24-bit RGB color via a |
| public static Ink | |
| public static Ink | Returns: a newInk instancethe style context to apply context)Creates a new |
| public static ItemList | Returns: a newItemList instanceCreates an |
| public static ItemList | Returns: a newItemList instancethe item list configuration to use itemListConfiguration)Creates an |
| public static MarkupParser | |
| public static MarkupParser | Returns: a newMarkupParser instancethe parser configuration to use configuration)Creates a |
| public static ProgressBar | Returns: a newProgressBar instancethe total number of ticks to completion total)Creates a |
| public static ProgressBar | Returns: a newProgressBar instancethe total number of ticks to completion total, ProgressBarConfiguration the progress bar configuration to use configuration)Creates a |
| public static ProgressBar | progressBar(int
the total number of ticks to completion total, ProgressBarPreset the predefined style preset to use preset)Creates a |
| public static ProgressBar | progressBar(int
the total number of ticks to completion total, EasingConfiguration the easing configuration to apply to the animation easing)Creates a |
| public static < the type of elements in the collection T> IterableProgressBar | Returns: a newIterableProgressBar instancethe collection to iterate over collection)Creates an |
| public static < the type of elements in the collection T> IterableProgressBar | Returns: a newIterableProgressBar instancethe collection to iterate over collection, ProgressBarConfiguration the progress bar configuration to use configuration)Creates an |
| public static < the type of elements in the collection T> IterableProgressBar | Returns: a newIterableProgressBar instancethe collection to iterate over collection, ProgressBarPreset preset)Creates an |
| public static void | registerAvailableThemes()
Registers all themes discoverable on the classpath via the |
| public static void | registerStyle(String
the name to register the style under style, AnsiCode the ANSI code to associate with the name code)Registers a single custom style that can be referenced by name in markup. |
| public static void | registerStyles(Map<String, AnsiCode>
a map of style names to their corresponding codes)AnsiCode valuesRegisters multiple custom styles from a map of names to ANSI codes. |
| public static void | registerTheme(String
the name of the theme to register themeName)Registers a theme by name, making its color tokens available in markup. |
| public static void | |
| public static void | registerThemes(String...
the names of the themes to register themeNames)Registers multiple themes by name. |
| public static void | registerThemes(Collection<String>
a collection of theme names to register themes)Registers multiple themes from a collection of names. |
| public static RGBAnsiCode | Returns: a newRGBAnsiCode for the foregroundthe red component (0–255) r, int the green component (0–255) g, int the blue component (0–255) b)Creates an RGB foreground color. |
| public static RGBAnsiCode | Returns: a newRGBAnsiCodethe red component (0–255) r, int the green component (0–255) g, int the blue component (0–255) b, boolean true to apply as a background color, false for foregroundCreates an RGB color, optionally applied to the background. |
| public static StyleBuilder | Returns: a newStyleBuilder instanceCreates a new |
| public static PendingTable | Returns: a newPendingTable instanceCreates a |
| public static PendingTable | Returns: a newPendingTable instancethe table configuration to use configuration)Creates a |
| public static PendingTable | Returns: a newPendingTable instancethe table type to use type)Creates a |
| public static PendingTable | Returns: a newPendingTable instancethe table type to use type, TableConfiguration the table configuration to use configuration)Creates a |
| public static PendingTable | Returns: a newPendingTable instancethe table type to use type, AnsiCode... one or more ANSI codes to apply to the border borderColor)Creates a |
| public static PendingTable | Returns: a newPendingTable instanceone or more ANSI codes to apply to the border borderColor)Creates a |
| public static PendingTable | Returns: a newPendingTable instancethe table type to use type, String the name of a registered color to apply to the border borderColor)Creates a |
| public static PendingTable | Returns: a newPendingTable instancethe name of a registered color to apply to the border borderColor)Creates a |
| public static Tree | Returns: a newTree instancethe label for the root node label)Creates a |
| public static Tree | Returns: a newTree instancethe label for the root node label, TreeConfiguration the tree configuration to use configuration)Creates a |
| public static Tree | |
| public static Tree |