java.lang.Object
io.github.palexdev.materialfx.effects.MFXDepthManager
Utility class which manages a preset number of
DropShadow effects ordered by DepthLevel, but
it also allows to create custom DropShadow effects with shadowOf(Color, double, double, double, double).
DepthLevel-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DropShadowshadowOf(DepthLevel level) Retrieves theDropShadowassociated with the specifiedDepthLevel.static DropShadowshadowOf(DepthLevel level, int delta) Retrieves theDropShadowassociated with the specifiedDepthLeveladded to delta.static DropShadowReturns a new instance ofDropShadowwith the specified characteristics.
-
Constructor Details
-
MFXDepthManager
public MFXDepthManager()
-
-
Method Details
-
shadowOf
public static DropShadow shadowOf(Color color, double radius, double spread, double offsetX, double offsetY) Returns a new instance ofDropShadowwith the specified characteristics.- Returns:
- The desired custom
DropShadoweffect - See Also:
-
shadowOf
Retrieves theDropShadowassociated with the specifiedDepthLevel.- Parameters:
level- The desiredDepthLevelbetween 1 and 5- Returns:
- The desired
DropShadoweffect
-
shadowOf
Retrieves theDropShadowassociated with the specifiedDepthLeveladded to delta. Example 1: for a depth level equal to 3 and a delta equal to 2, the returnedDropShadoweffect is the effected associated to a depth level of 5. Example 2: for a depth level equal to 5 and a delta equal to whatever integer, the returnedDropShadoweffect is the effected associated to a depth level of 5.- Parameters:
level- The desiredDepthLevelbetween 1 and 5delta- The number of levels to shift- Returns:
- The final
DropShadoweffect}nextLevel(DepthLevel)
-