public enum GraphicScaleStrategy extends Enum<GraphicScaleStrategy>
| Enum Constant and Description |
|---|
Auto
Container chooses strategy
|
Fill
Scale to maximum bounds.
|
Fit
Keeps original ratio.
|
NoScale
No scaling at all
|
| Modifier and Type | Method and Description |
|---|---|
static GraphicScaleStrategy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GraphicScaleStrategy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GraphicScaleStrategy Fill
public static final GraphicScaleStrategy Fit
public static final GraphicScaleStrategy NoScale
public static final GraphicScaleStrategy Auto
public static GraphicScaleStrategy[] values()
for (GraphicScaleStrategy c : GraphicScaleStrategy.values()) System.out.println(c);
public static GraphicScaleStrategy 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 nullCopyright © 2017. All rights reserved.