public enum Scaling extends Enum<Scaling>
Enum Constant and Description |
---|
ACTUAL_SIZE
Print the image at 100% scale.
|
SCALE_TO_FIT
Stretch or shrink the image to fill the page, as needed.
|
SHRINK_TO_FIT
Shrink the image to fit the page, if needed.
|
STRETCH_TO_FIT
Stretch the image to fill the page, if needed.
|
Modifier and Type | Method and Description |
---|---|
static Scaling |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Scaling[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Scaling ACTUAL_SIZE
public static final Scaling SHRINK_TO_FIT
public static final Scaling STRETCH_TO_FIT
public static final Scaling SCALE_TO_FIT
public static Scaling[] values()
for (Scaling c : Scaling.values()) System.out.println(c);
public static Scaling 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 © 2002–2018 The Apache Software Foundation. All rights reserved.