| Modifier and Type | Field and Description |
|---|---|
| public static final ColorPalette | |
| private Colors. | |
| private String | |
| private boolean | |
| private int[] | |
| private final Terminal | |
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the terminal can change colorsCheck if the terminal has the capability to change colors. |
| private static int[] | |
| public int | Returns: the color at the given indexthe index of the color index)Get a specific color in the palette |
| protected Colors. | |
| public String | Returns: the name of the color distanceGet the name of the distance to use for rounding colors. |
| public int | |
| public boolean | |
| public boolean | Returns: true if the palette has been successfully loaded.Load the palette from the terminal. |
| protected void | |
| public int | |
| public int | |
| public void | setColor(int
the index of the color index, int the new color value color)Change the color of the palette |
| public void | setDistance(String
the name of the color distance name)Set the name of the color distance to use when rounding RGB colors to the palette. |
| public String |
| DEFAULT | back to summary |
|---|---|
| public static final ColorPalette DEFAULT | |
| distance | back to summary |
|---|---|
| private Colors. | |
| distanceName | back to summary |
|---|---|
| private String distanceName | |
| osc4 | back to summary |
|---|---|
| private boolean osc4 | |
| palette | back to summary |
|---|---|
| private int[] palette | |
| terminal | back to summary |
|---|---|
| private final Terminal terminal | |
| XTERM_INITC | back to summary |
|---|---|
| public static final String XTERM_INITC | |
| ColorPalette | back to summary |
|---|---|
| public ColorPalette() | |
| ColorPalette | back to summary |
|---|---|
| public ColorPalette(Terminal terminal) throws IOException | |
| ColorPalette | back to summary |
|---|---|
public ColorPalette(Terminal terminal, String distance) throws IOException
| |
| canChange | back to summary |
|---|---|
| public boolean canChange() Check if the terminal has the capability to change colors.
| |
| doLoad | back to summary |
|---|---|
| private static int[] doLoad(Terminal terminal) throws IOException | |
| getColor | back to summary |
|---|---|
| public int getColor(int index) Get a specific color in the palette
| |
| getDist | back to summary |
|---|---|
| protected Colors. | |
| getDistanceName | back to summary |
|---|---|
| public String getDistanceName() Get the name of the distance to use for rounding colors.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Get the palette length
| |
| isReal | back to summary |
|---|---|
| public boolean isReal() | |
| loadPalette | back to summary |
|---|---|
| public boolean loadPalette() throws IOException Load the palette from the terminal.
If the palette has already been loaded, subsequent calls will simply return
| |
| loadPalette | back to summary |
|---|---|
| protected void loadPalette(boolean doLoad) throws IOException | |
| round | back to summary |
|---|---|
| public int round(int r, int g, int b) | |
| round | back to summary |
|---|---|
| public int round(int col) | |
| setColor | back to summary |
|---|---|
| public void setColor(int index, int color) Change the color of the palette
| |
| setDistance | back to summary |
|---|---|
| public void setDistance(String name) Set the name of the color distance to use when rounding RGB colors to the palette.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |