public enum AsciiColorPalette extends Enum<AsciiColorPalette>
Enum Constant and Description |
---|
HALFTONE_GRAY |
MAX_LEVEL_GRAY |
MIN_LEVEL_GRAY |
MONOCHROME |
NORM_LEVEL_GRAY |
Modifier and Type | Method and Description |
---|---|
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()
Copyright © 2016. All rights reserved.