public static enum ScalingImageViewer.Dimension extends java.lang.Enum<ScalingImageViewer.Dimension>
| Enum Constant and Description |
|---|
BOTH
Both dimensions are derived
|
HEIGHT
Height is derived from the width
|
WIDTH
Width is derived from the height
|
| Modifier and Type | Method and Description |
|---|---|
static ScalingImageViewer.Dimension |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScalingImageViewer.Dimension[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScalingImageViewer.Dimension BOTH
public static final ScalingImageViewer.Dimension HEIGHT
public static final ScalingImageViewer.Dimension WIDTH
public static ScalingImageViewer.Dimension[] values()
for (ScalingImageViewer.Dimension c : ScalingImageViewer.Dimension.values()) System.out.println(c);
public static ScalingImageViewer.Dimension valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null