- All Implemented Interfaces:
Serializable,Comparable<DepthLevel>,java.lang.constant.Constable
Enumerator which defines 6 levels of
DropShadow effects from LEVEL0 to LEVEL5.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic DepthLevelfrom(DropShadow shadow) Attempts to get the correspondingDepthLevelof the givenDropShadoweffect.getColor()doubledoubledoubledoublestatic booleanlevelEqualsShadow(DepthLevel level, DropShadow shadow) Checks if the givenDropShadoweffect is equal to the givenDepthLevel.next()Retrieves the nextDepthLevelassociated withthisenumerator.static DepthLevelReturns the enum constant of this class with the specified name.static DepthLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LEVEL0
-
LEVEL1
-
LEVEL2
-
LEVEL3
-
LEVEL4
-
LEVEL5
-
-
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
-
getColor
-
getRadius
public double getRadius() -
getSpread
public double getSpread() -
getOffsetX
public double getOffsetX() -
getOffsetY
public double getOffsetY() -
next
Retrieves the nextDepthLevelassociated withthisenumerator.- Returns:
- The next
DepthLevel
-
from
Attempts to get the correspondingDepthLevelof the givenDropShadoweffect. If the given effect is not recognized as being generated by this class thenullis returned.Uses
levelEqualsShadow(DepthLevel, DropShadow)to check for equality. -
levelEqualsShadow
Checks if the givenDropShadoweffect is equal to the givenDepthLevel.
-