Serializable
, Comparable<AsciiColorPalette>
public enum AsciiColorPalette extends Enum<AsciiColorPalette>
Enum Constant | Description |
---|---|
HALFTONE_GRAY |
This palate contains block characters representing shade patterns from
white to black representing gray scale colors in terms of ASCII art.
|
MAX_LEVEL_GRAY |
This palate contains the full set of characters from white to black
representing gray scale colors in terms of ASCII art.
|
MIN_LEVEL_GRAY |
This palate contains a minimal set of characters from white to black
representing gray scale colors in terms of ASCII art.
|
MONOCHROME |
This palate contains block characters representing shade patterns from
white to black representing gray scale colors in terms of ASCII art.
|
NORM_LEVEL_GRAY |
This palate contains a normal set of characters from white to black
representing gray scale colors in terms of ASCII art.
|
Modifier and Type | Method | Description |
---|---|---|
static AsciiColorPalette |
fromPaletteName(String aPaletteName) |
Retrieves the enumeration element representing the given palette name
(ignoring the case) or null if none was found.
|
char[] |
getPalette() |
Returns the palette for the according enumeration element.
|
static AsciiColorPalette |
valueOf(String name) |
Returns the enum constant of this type with the specified name.
|
static AsciiColorPalette[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AsciiColorPalette MIN_LEVEL_GRAY
public static final AsciiColorPalette NORM_LEVEL_GRAY
public static final AsciiColorPalette MAX_LEVEL_GRAY
public static final AsciiColorPalette HALFTONE_GRAY
public static final AsciiColorPalette MONOCHROME
public static AsciiColorPalette[] values()
for (AsciiColorPalette c : AsciiColorPalette.values()) System.out.println(c);
public static AsciiColorPalette valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic char[] getPalette()
public static AsciiColorPalette fromPaletteName(String aPaletteName)
aPaletteName
- The palette name for which to get the enumeration
element.Copyright © 2018. All rights reserved.