Enum Class ImageUtils.ScalingStrategy
java.lang.Object
java.lang.Enum<ImageUtils.ScalingStrategy>
org.hippoecm.frontend.plugins.gallery.imageutil.ImageUtils.ScalingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<ImageUtils.ScalingStrategy>
,Constable
- Enclosing class:
- ImageUtils
The available strategies for scaling images.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionAutomatically determine the best strategy to get the nicest looking image in the least amount of time.Do everything possible to make the scaled image exceptionally good, regardless of the processing time needed.Create a nice scaled version of an image at the cost of more processing time.Scale as fast as possible. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageUtils.ScalingStrategy
Returns the enum constant of this class with the specified name.static ImageUtils.ScalingStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
AUTO
Automatically determine the best strategy to get the nicest looking image in the least amount of time. -
SPEED
Scale as fast as possible. For smaller images (800px in size) this can result in noticeable aliasing but it can be a few order of magnitudes faster than using theQUALITY
method. -
SPEED_AND_QUALITY
-
QUALITY
Create a nice scaled version of an image at the cost of more processing time. This strategy is most important for smaller pictures (800px or smaller) and less important for larger pictures, as the difference between this strategy and theSPEED
strategy become less and less noticeable as the source-image size increases. -
BEST_QUALITY
Do everything possible to make the scaled image exceptionally good, regardless of the processing time needed. Use this strategy when even @{link #QUALITY} results in bad-looking images.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-