- All Implemented Interfaces:
Serializable
,Comparable<Texture.Scaling>
,Constable
- Enclosing class:
- Texture
public static enum Texture.Scaling extends Enum<Texture.Scaling>
This enum lists all avaliable scaling methods.
The methods are illustrated with an example picture:
- Author:
- Dr. Peter Droste, Omix Visualization
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description NoScale
no adaption of the image to the paint bounds.Scale
scale the image exactly to the paint bounds.ScaleKeepAspectRatio
scale the image to the paint bounds under preservation of the image's aspec ratio.ScaleKeepAspectRatioByExpanding
scale the image to the paint bounds under preservation of the image's aspec ratio by expansion. -
Method Summary
Modifier and Type Method Description static Texture.Scaling
valueOf(String name)
Returns the enum constant of this type with the specified name.static Texture.Scaling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
NoScale
no adaption of the image to the paint bounds.
-
Scale
scale the image exactly to the paint bounds.
-
ScaleKeepAspectRatio
scale the image to the paint bounds under preservation of the image's aspec ratio.
-
ScaleKeepAspectRatioByExpanding
scale the image to the paint bounds under preservation of the image's aspec ratio by expansion.
-
-
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
-