Enum ScenePrinter.ScaleStrategy
- All Implemented Interfaces:
Serializable
,Comparable<ScenePrinter.ScaleStrategy>
,java.lang.constant.Constable
- Enclosing class:
ScenePrinter
Scaling strategies to be used for printing a scene.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionPrint the Scene exactly as it would be if not scaled at all.Scale the printed scene to exactly the same scale level as the supplied scene.Scale the printed scene by a supplied percent.Scale the printed scene to fit on a single pageDetermine the scale percentage necessay to fit on the horizontal page.Determine the scale percentage necessay to fit on the vertical page. -
Method Summary
Modifier and TypeMethodDescriptionstatic ScenePrinter.ScaleStrategy
Returns the enum constant of this type with the specified name.static ScenePrinter.ScaleStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SCALE_CURRENT_ZOOM
Scale the printed scene to exactly the same scale level as the supplied scene. -
SCALE_PERCENT
Scale the printed scene by a supplied percent. This will scale the X and Y dimensions equally. -
SCALE_TO_FIT
Scale the printed scene to fit on a single page -
SCALE_TO_FIT_X
Determine the scale percentage necessay to fit on the horizontal page. The vertical is scaled equally but no garuntees are made on the page fit. -
SCALE_TO_FIT_Y
Determine the scale percentage necessay to fit on the vertical page. The horizontal is scaled equally but no garuntees are made on the page fit. -
NO_SCALING
Print the Scene exactly as it would be if not scaled at all. Note that this is different from SCALE_CURRENT_ZOOM where the page is printed as shown visually, including the zoom.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-