Enum Class GuiBackgroundRepeat
- All Implemented Interfaces:
Serializable, Comparable<GuiBackgroundRepeat>, Constable
Background, mask and border-image repetition policy. Space preserves tile size and distributes gaps; round resizes
tiles to fit a whole number in the origin. Axis-specific policies place a single image on the other axis.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionResize each axis to fit its nearest positive whole number of tiles.Resize tile width to fit; AUTO sizing preserves the source aspect ratio.Resize tile height to fit; AUTO sizing preserves the source aspect ratio.Preserve tile size, distributing gaps along both axes.Preserve tile width, distributing horizontal gaps.Preserve tile height, distributing vertical gaps. -
Method Summary
Modifier and TypeMethodDescriptionbooleanrepeatsX()booleanrepeatsY()static GuiBackgroundRepeatReturns the enum constant of this class with the specified name.static GuiBackgroundRepeat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_REPEAT
-
REPEAT_X
-
REPEAT_Y
-
REPEAT
-
SPACE
Preserve tile size, distributing gaps along both axes. -
SPACE_X
Preserve tile width, distributing horizontal gaps. -
SPACE_Y
Preserve tile height, distributing vertical gaps. -
ROUND
Resize each axis to fit its nearest positive whole number of tiles. -
ROUND_X
Resize tile width to fit; AUTO sizing preserves the source aspect ratio. -
ROUND_Y
Resize tile height to fit; AUTO sizing preserves the source aspect ratio.
-
-
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
-
repeatsX
public boolean repeatsX() -
repeatsY
public boolean repeatsY()
-