public enum StackRGBState extends Enum<StackRGBState>
Enum Constant and Description |
---|
NOT_RGB
Not a RGB image.
|
RGB_WITH_ALPHA
RGB with a alpha channel.
|
RGB_WITHOUT_ALPHA
RGB without any alpha channel.
|
Modifier and Type | Method and Description |
---|---|
StackRGBState |
max(StackRGBState other)
Finds the maximum of this value and another, according to an ordering.
|
StackRGBState |
min(StackRGBState other)
Finds the minimum of this value and another, according to an ordering.
|
static StackRGBState |
multiplex(boolean rgb,
boolean withAlpha)
Returns one of the three
RGB_ states based upon two boolean flags. |
static StackRGBState |
multiplexAlpha(boolean withAlpha)
Returns one of the two
RGB_ states based upon a boolean flag. |
static StackRGBState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StackRGBState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StackRGBState NOT_RGB
public static final StackRGBState RGB_WITHOUT_ALPHA
public static final StackRGBState RGB_WITH_ALPHA
public static StackRGBState[] values()
for (StackRGBState c : StackRGBState.values()) System.out.println(c);
public static StackRGBState 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 static StackRGBState multiplex(boolean rgb, boolean withAlpha)
RGB_
states based upon two boolean flags.rgb
- true if RGB or RGBA, false otherwise.withAlpha
- true if alpha is present, false if it is not. Ignored when rgb==false
.RGB_WITHOUT_ALPHA
or RGB_WITH_ALPHA
as matches withAlpha
.public static StackRGBState multiplexAlpha(boolean withAlpha)
RGB_
states based upon a boolean flag.withAlpha
- true if alpha is present, false if it is not.RGB_WITHOUT_ALPHA
or RGB_WITH_ALPHA
as matches withAlpha
.public StackRGBState min(StackRGBState other)
The ordering is increasingly: NOT_RGB
, RGB_WITHOUT_ALPHA
, RGB_WITH_ALPHA
.
other
- the other.public StackRGBState max(StackRGBState other)
The ordering is increasingly: NOT_RGB
, RGB_WITHOUT_ALPHA
, RGB_WITH_ALPHA
.
other
- the other.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.