java.lang.Object
io.github.palexdev.materialfx.effects.MFXScrimEffect
From Google's material design guidelines:
Scrims are temporary treatments that can be applied to Material surfaces for the purpose of making content on a surface less prominent. They help direct user attention to other parts of the screen, away from the surface receiving a scrim.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmodalScrim(Pane pane, double opacity) Same asscrim(Pane, double)but the effect is placed at the end of the children list, covering all the pane's nodesvoidmodalScrim(Pane parent, Node child, double opacity) Adds a scrim effect to the specified pane with specified opacity.voidremoveEffect(Pane pane) Removes the scrim effect from the specified pane.voidremoveEffect(Window window) Removes the scrim effect from the specified window.voidAdds a scrim effect to the specified pane with specified opacity.voidscrimWindow(Window window, double opacity) Adds a scrim effect to the specifiedWindow's root pane with the specified opacity.
-
Constructor Details
-
MFXScrimEffect
public MFXScrimEffect()
-
-
Method Details
-
scrim
Adds a scrim effect to the specified pane with specified opacity.- Parameters:
pane- The pane to which add the effectopacity- The effect opacity/strength
-
modalScrim
Same asscrim(Pane, double)but the effect is placed at the end of the children list, covering all the pane's nodes- Parameters:
pane- The pane to which add the effectopacity- The effect opacity/strength
-
modalScrim
Adds a scrim effect to the specified pane with specified opacity. It also simulates the modal behavior ofStages, leaving only the specifiedNodeinteractive.- Parameters:
parent- The pane to which add the effectchild- The node to leave interactiveopacity- The effect opacity/strength
-
scrimWindow
Adds a scrim effect to the specifiedWindow's root pane with the specified opacity.- Parameters:
window- The desired windowopacity- The desired opacity
-
removeEffect
Removes the scrim effect from the specified pane.- Parameters:
pane- The pane to which remove the effect.
-
removeEffect
Removes the scrim effect from the specified window.- Parameters:
window- The window to which remove the effect.
-
getScrimNode
-