Class MFXCircleRippleGenerator
- All Implemented Interfaces:
IRippleGenerator<MFXCircleRippleGenerator.CircleRipple>,Styleable,EventTarget
AbstractMFXRippleGenerator<MFXCircleRippleGenerator.CircleRipple>.
This is the most basic ripple generator that generates circular ripples.
Accepted ripples are MFXCircleRippleGenerator.CircleRipple or subclasses.
Region region = ...
MFXCircleRippleGenerator generator = new MFXCircleRippleGenerator(region) // It's needed to pass the region reference
generator.setRipplePositionFunction(mouseEvent -> ...) // This is needed to specify where the ripple should be placed when generated
region.getChildren().add(generator) // Ripples are added to the generator's container so the generator must be added to the region
region.addEventHandler(MouseEvent.MOUSE_PRESSED, generator::generateRipple)
-
Property Summary
PropertiesTypePropertyDescriptionSpecifies the speed on the ripples' animation.Specifies whether the generator should try tobuildClip()automatically, this means also trying to fetch the background/border radius.Specifies the strength of the background animation.Specifies if the ripple's radius multiplier should be computed automatically.Property to enable/disable the ripple generator.Specifies the multiplier used to obtain the final ripple's radius.Specifies the ripples' color.Specifies the initial ripple's opacity.Specifies the ripples' initial radius.Properties inherited from class io.github.palexdev.materialfx.effects.ripple.base.AbstractMFXRippleGenerator
animateBackground, animateShadow, checkBounds, depthLevelOffset, onAnimationFinishedProperties inherited from class javafx.scene.layout.Region
background, border, cacheShape, centerShape, height, insets, maxHeight, maxWidth, minHeight, minWidth, opaqueInsets, padding, prefHeight, prefWidth, scaleShape, shape, snapToPixel, widthProperties inherited from class javafx.scene.Parent
needsLayoutProperties inherited from class javafx.scene.Node
accessibleHelp, accessibleRoleDescription, accessibleRole, accessibleText, blendMode, boundsInLocal, boundsInParent, cacheHint, cache, clip, cursor, depthTest, disabled, disable, effectiveNodeOrientation, effect, eventDispatcher, focused, focusTraversable, hover, id, inputMethodRequests, layoutBounds, layoutX, layoutY, localToParentTransform, localToSceneTransform, managed, mouseTransparent, nodeOrientation, onContextMenuRequested, onDragDetected, onDragDone, onDragDropped, onDragEntered, onDragExited, onDragOver, onInputMethodTextChanged, onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragEntered, onMouseDragExited, onMouseDragged, onMouseDragOver, onMouseDragReleased, onMouseEntered, onMouseExited, onMouseMoved, onMousePressed, onMouseReleased, onRotate, onRotationFinished, onRotationStarted, onScrollFinished, onScroll, onScrollStarted, onSwipeDown, onSwipeLeft, onSwipeRight, onSwipeUp, onTouchMoved, onTouchPressed, onTouchReleased, onTouchStationary, onZoomFinished, onZoom, onZoomStarted, opacity, parent, pickOnBounds, pressed, rotate, rotationAxis, scaleX, scaleY, scaleZ, scene, style, translateX, translateY, translateZ, viewOrder, visible -
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassNested classes/interfaces inherited from class io.github.palexdev.materialfx.effects.ripple.base.AbstractMFXRippleGenerator
AbstractMFXRippleGenerator.RippleGeneratorEvent -
Field Summary
Fields inherited from class io.github.palexdev.materialfx.effects.ripple.base.AbstractMFXRippleGenerator
animateBackground, animateShadow, animationsStack, checkBounds, clipSupplier, depthLevelOffset, onAnimationFinished, positionFunction, region, rippleSupplier, STYLE_CLASSFields inherited from class javafx.scene.layout.Region
USE_COMPUTED_SIZE, USE_PREF_SIZEFields inherited from class javafx.scene.Node
BASELINE_OFFSET_SAME_AS_HEIGHT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSpecifies the speed on the ripples' animation.Specifies whether the generator should try tobuildClip()automatically, this means also trying to fetch the background/border radius.Specifies the strength of the background animation.protected NodeResponsible for building the ripple generator's clip, which avoids ripple ending outside the region.protected doublecomputeRadiusMultiplier(double xCoordinate) Attempts to compute the radius multiplier from the starting ripple radius and the x position at which the ripple will be generated.Specifies if the ripple's radius multiplier should be computed automatically.voidEvery ripple generator should have a default clip supplier.voidEvery ripple generator should have a default position for the ripples.voidEvery ripple generator should have a default ripple supplier.voidgenerateRipple(MouseEvent event) Generates a ripple.doubleGets the value of the property animationSpeed.protected AnimationBuilds the background animation.doubleGets the value of the property backgroundOpacity.static List<CssMetaData<? extends Styleable,?>> List<CssMetaData<? extends Styleable,?>> doubleGets the value of the property radiusMultiplier.Gets the value of the property rippleColor.doubleGets the value of the property rippleOpacity.doubleGets the value of the property rippleRadius.protected AnimationBuilds the animation of theDropShadoweffect.protected voidbooleanGets the value of the property autoClip.booleanGets the value of the property computeRadiusMultiplier.booleanisPaused()Gets the value of the property paused.Property to enable/disable the ripple generator.Specifies the multiplier used to obtain the final ripple's radius.Specifies the ripples' color.Specifies the initial ripple's opacity.Specifies the ripples' initial radius.voidsetAnimationSpeed(double animationSpeed) Sets the value of the property animationSpeed.voidsetAutoClip(boolean autoClip) Sets the value of the property autoClip.voidsetBackgroundOpacity(double backgroundOpacity) Sets the value of the property backgroundOpacity.voidsetClipSupplier(Supplier<Shape> clipSupplier) Sets the generator's clip supplier to the specified one.voidsetComputeRadiusMultiplier(boolean computeRadiusMultiplier) Sets the value of the property computeRadiusMultiplier.voidsetPaused(boolean paused) Sets the value of the property paused.voidsetRadiusMultiplier(double radiusMultiplier) Sets the value of the property radiusMultiplier.voidsetRippleColor(Paint rippleColor) Sets the value of the property rippleColor.voidsetRippleOpacity(double rippleOpacity) Sets the value of the property rippleOpacity.voidsetRipplePositionFunction(Function<MouseEvent, PositionBean> positionFunction) Sets the generator's ripple position function to the specified one.voidsetRippleRadius(double radius) Sets the value of the property rippleRadius.voidsetRippleSupplier(Supplier<MFXCircleRippleGenerator.CircleRipple> rippleSupplier) Sets the generator's ripple supplier to the specified one.Methods inherited from class io.github.palexdev.materialfx.effects.ripple.base.AbstractMFXRippleGenerator
animateBackgroundProperty, animateShadowProperty, checkBoundsProperty, depthLevelOffsetProperty, fireGeneratorEvent, getDepthLevelOffset, getOnAnimationFinished, isAnimateBackground, isAnimateShadow, isCheckBounds, isWithinBounds, onAnimationFinishedProperty, setAnimateBackground, setAnimateShadow, setCheckBounds, setDepthLevelOffset, setOnAnimationFinishedMethods inherited from class javafx.scene.layout.Region
backgroundProperty, borderProperty, cacheShapeProperty, centerShapeProperty, computeMaxHeight, computeMaxWidth, computeMinHeight, computeMinWidth, computePrefHeight, computePrefWidth, getBackground, getBorder, getClassCssMetaData, getHeight, getInsets, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getOpaqueInsets, getPadding, getPrefHeight, getPrefWidth, getShape, getUserAgentStylesheet, getWidth, heightProperty, insetsProperty, isCacheShape, isCenterShape, isResizable, isScaleShape, isSnapToPixel, layoutInArea, layoutInArea, layoutInArea, layoutInArea, maxHeight, maxHeightProperty, maxWidth, maxWidthProperty, minHeight, minHeightProperty, minWidth, minWidthProperty, opaqueInsetsProperty, paddingProperty, positionInArea, positionInArea, prefHeight, prefHeightProperty, prefWidth, prefWidthProperty, resize, scaleShapeProperty, setBackground, setBorder, setCacheShape, setCenterShape, setHeight, setMaxHeight, setMaxSize, setMaxWidth, setMinHeight, setMinSize, setMinWidth, setOpaqueInsets, setPadding, setPrefHeight, setPrefSize, setPrefWidth, setScaleShape, setShape, setSnapToPixel, setWidth, shapeProperty, snappedBottomInset, snappedLeftInset, snappedRightInset, snappedTopInset, snapPosition, snapPositionX, snapPositionY, snapSize, snapSizeX, snapSizeY, snapSpace, snapSpaceX, snapSpaceY, snapToPixelProperty, widthPropertyMethods inherited from class javafx.scene.Parent
getBaselineOffset, getChildren, getChildrenUnmodifiable, getManagedChildren, getStylesheets, isNeedsLayout, layout, layoutChildren, lookup, needsLayoutProperty, queryAccessibleAttribute, requestLayout, requestParentLayout, setNeedsLayout, updateBoundsMethods inherited from class javafx.scene.Node
accessibleHelpProperty, accessibleRoleDescriptionProperty, accessibleRoleProperty, accessibleTextProperty, addEventFilter, addEventHandler, applyCss, autosize, blendModeProperty, boundsInLocalProperty, boundsInParentProperty, buildEventDispatchChain, cacheHintProperty, cacheProperty, clipProperty, computeAreaInScreen, contains, contains, cursorProperty, depthTestProperty, disabledProperty, disableProperty, effectiveNodeOrientationProperty, effectProperty, eventDispatcherProperty, executeAccessibleAction, fireEvent, focusedProperty, focusTraversableProperty, getAccessibleHelp, getAccessibleRole, getAccessibleRoleDescription, getAccessibleText, getBlendMode, getBoundsInLocal, getBoundsInParent, getCacheHint, getClip, getContentBias, getCursor, getDepthTest, getEffect, getEffectiveNodeOrientation, getEventDispatcher, getId, getInitialCursor, getInitialFocusTraversable, getInputMethodRequests, getLayoutBounds, getLayoutX, getLayoutY, getLocalToParentTransform, getLocalToSceneTransform, getNodeOrientation, getOnContextMenuRequested, getOnDragDetected, getOnDragDone, getOnDragDropped, getOnDragEntered, getOnDragExited, getOnDragOver, getOnInputMethodTextChanged, getOnKeyPressed, getOnKeyReleased, getOnKeyTyped, getOnMouseClicked, getOnMouseDragEntered, getOnMouseDragExited, getOnMouseDragged, getOnMouseDragOver, getOnMouseDragReleased, getOnMouseEntered, getOnMouseExited, getOnMouseMoved, getOnMousePressed, getOnMouseReleased, getOnRotate, getOnRotationFinished, getOnRotationStarted, getOnScroll, getOnScrollFinished, getOnScrollStarted, getOnSwipeDown, getOnSwipeLeft, getOnSwipeRight, getOnSwipeUp, getOnTouchMoved, getOnTouchPressed, getOnTouchReleased, getOnTouchStationary, getOnZoom, getOnZoomFinished, getOnZoomStarted, getOpacity, getParent, getProperties, getPseudoClassStates, getRotate, getRotationAxis, getScaleX, getScaleY, getScaleZ, getScene, getStyle, getStyleableParent, getStyleClass, getTransforms, getTranslateX, getTranslateY, getTranslateZ, getTypeSelector, getUserData, getViewOrder, hasProperties, hoverProperty, idProperty, inputMethodRequestsProperty, intersects, intersects, isCache, isDisable, isDisabled, isFocused, isFocusTraversable, isHover, isManaged, isMouseTransparent, isPickOnBounds, isPressed, isVisible, layoutBoundsProperty, layoutXProperty, layoutYProperty, localToParent, localToParent, localToParent, localToParent, localToParent, localToParentTransformProperty, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToScene, localToSceneTransformProperty, localToScreen, localToScreen, localToScreen, localToScreen, localToScreen, lookupAll, managedProperty, mouseTransparentProperty, nodeOrientationProperty, notifyAccessibleAttributeChanged, onContextMenuRequestedProperty, onDragDetectedProperty, onDragDoneProperty, onDragDroppedProperty, onDragEnteredProperty, onDragExitedProperty, onDragOverProperty, onInputMethodTextChangedProperty, onKeyPressedProperty, onKeyReleasedProperty, onKeyTypedProperty, onMouseClickedProperty, onMouseDragEnteredProperty, onMouseDragExitedProperty, onMouseDraggedProperty, onMouseDragOverProperty, onMouseDragReleasedProperty, onMouseEnteredProperty, onMouseExitedProperty, onMouseMovedProperty, onMousePressedProperty, onMouseReleasedProperty, onRotateProperty, onRotationFinishedProperty, onRotationStartedProperty, onScrollFinishedProperty, onScrollProperty, onScrollStartedProperty, onSwipeDownProperty, onSwipeLeftProperty, onSwipeRightProperty, onSwipeUpProperty, onTouchMovedProperty, onTouchPressedProperty, onTouchReleasedProperty, onTouchStationaryProperty, onZoomFinishedProperty, onZoomProperty, onZoomStartedProperty, opacityProperty, parentProperty, parentToLocal, parentToLocal, parentToLocal, parentToLocal, parentToLocal, pickOnBoundsProperty, pressedProperty, pseudoClassStateChanged, relocate, removeEventFilter, removeEventHandler, requestFocus, resizeRelocate, rotateProperty, rotationAxisProperty, scaleXProperty, scaleYProperty, scaleZProperty, sceneProperty, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, sceneToLocal, screenToLocal, screenToLocal, screenToLocal, setAccessibleHelp, setAccessibleRole, setAccessibleRoleDescription, setAccessibleText, setBlendMode, setCache, setCacheHint, setClip, setCursor, setDepthTest, setDisable, setDisabled, setEffect, setEventDispatcher, setEventHandler, setFocused, setFocusTraversable, setHover, setId, setInputMethodRequests, setLayoutX, setLayoutY, setManaged, setMouseTransparent, setNodeOrientation, setOnContextMenuRequested, setOnDragDetected, setOnDragDone, setOnDragDropped, setOnDragEntered, setOnDragExited, setOnDragOver, setOnInputMethodTextChanged, setOnKeyPressed, setOnKeyReleased, setOnKeyTyped, setOnMouseClicked, setOnMouseDragEntered, setOnMouseDragExited, setOnMouseDragged, setOnMouseDragOver, setOnMouseDragReleased, setOnMouseEntered, setOnMouseExited, setOnMouseMoved, setOnMousePressed, setOnMouseReleased, setOnRotate, setOnRotationFinished, setOnRotationStarted, setOnScroll, setOnScrollFinished, setOnScrollStarted, setOnSwipeDown, setOnSwipeLeft, setOnSwipeRight, setOnSwipeUp, setOnTouchMoved, setOnTouchPressed, setOnTouchReleased, setOnTouchStationary, setOnZoom, setOnZoomFinished, setOnZoomStarted, setOpacity, setPickOnBounds, setPressed, setRotate, setRotationAxis, setScaleX, setScaleY, setScaleZ, setStyle, setTranslateX, setTranslateY, setTranslateZ, setUserData, setViewOrder, setVisible, snapshot, snapshot, startDragAndDrop, startFullDrag, styleProperty, toBack, toFront, toString, translateXProperty, translateYProperty, translateZProperty, usesMirroring, viewOrderProperty, visiblePropertyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javafx.css.Styleable
getStyleableNode
-
Property Details
-
computeRadiusMultiplier
Specifies if the ripple's radius multiplier should be computed automatically. If this is true the value specified byradiusMultiplierProperty()will be ignored andcomputeRadiusMultiplier(double)will be called instead. -
radiusMultiplier
Specifies the multiplier used to obtain the final ripple's radius. If you are still wondering what the heck is this multiplier then read this. The ripple is basically a shape, in this case a circle with initial radius 0, created at specified coordinates.Generally speaking:
The first phase of the ripple animation consists in increasing the radius to the value specified by
rippleRadiusProperty().The second phase is to further expand that radius (like a ripple in a lake lol) to make the circle cover entirely or almost the region.
The last phase is to drop the circle opacity to 0 and remove the ripple.
-
animationSpeed
Specifies the speed on the ripples' animation. This is done by setting the animations rate property,Animation.setRate(double)- See Also:
-
autoClip
Specifies whether the generator should try tobuildClip()automatically, this means also trying to fetch the background/border radius.EXPERIMENTAL, may not work in all situations
- See Also:
-
backgroundOpacity
Specifies the strength of the background animation. -
paused
Property to enable/disable the ripple generator.- See Also:
-
rippleColor
Specifies the ripples' color.- See Also:
-
rippleOpacity
Specifies the initial ripple's opacity.- See Also:
-
rippleRadius
Specifies the ripples' initial radius.- See Also:
-
-
Constructor Details
-
MFXCircleRippleGenerator
-
-
Method Details
-
initialize
protected void initialize()CallsAbstractMFXRippleGenerator.initialize(),defaultClipSupplier()()},defaultPositionFunction()anddefaultRippleSupplier()- Overrides:
initializein classAbstractMFXRippleGenerator<MFXCircleRippleGenerator.CircleRipple>
-
generateRipple
Generates a ripple.- If
AbstractMFXRippleGenerator.checkBoundsProperty()is true callsAbstractMFXRippleGenerator.isWithinBounds(MouseEvent). Exits if returns false.- Sets the generator clip/bounds by calling
buildClip().- Computes the ripple coordinates by calling
getRipplePositionFunction()applied on the passed mouse event.- Creates the ripple by calling
getRippleSupplier(). Sets the center and fill properties of the ripple.- Creates the animations by calling
MFXCircleRippleGenerator.CircleRipple.getAnimation()- If
AbstractMFXRippleGenerator.animateBackgroundProperty()andAbstractMFXRippleGenerator.animateShadowProperty()are true, creates the respective animations by callinggetBackgroundAnimation()andgetShadowAnimation().- The animations are added to a
ParallelTransitionwhich is added to the animation stack.- The ripple is added to the generator's children list.
- The animation starts.
- Specified by:
generateRipplein classAbstractMFXRippleGenerator<MFXCircleRippleGenerator.CircleRipple>- See Also:
-
getBackgroundAnimation
Builds the background animation. It consists in a temporary shape added to the generator's children list in position 0. The opacity of the shape is increased to the value specified bybackgroundOpacityProperty(), and then dropped to 0. When the opacity is 0 it is removed from the children list. -
getShadowAnimation
Builds the animation of theDropShadoweffect. If the region's effect is not a DropShadow or its level is not recognized byDepthLevel.from(DropShadow)then an empty animation is returned.If the effect is recognized then builds two new DropShadow effects, a start one and an end one. The start effect is the same level as the region's one and the end is computed by
MFXDepthManager.shadowOf(DepthLevel, int)usingAbstractMFXRippleGenerator.depthLevelOffsetProperty()as argument.N.B: as stated above the animation works only for shadows defined by
DepthLevel -
computeRadiusMultiplier
protected double computeRadiusMultiplier(double xCoordinate) Attempts to compute the radius multiplier from the starting ripple radius and the x position at which the ripple will be generated.Currently the value is computed by finding the region' side closest to the specified x coordinate. The final radius is computed as the starting radius plus "Math.abs(xCoordinate - nearestBound)". Then the multiplier is calculated as the final radius divided by the starting radius.
This method works in most cases. Sometimes the computed multiplier is not enough to cover the entire region. This is probably because the right way would be to consider the farthermost vertex rather than side. However, it's not a big issue since you can also manipulate the initial radius or set the multiplier manually.
- Parameters:
xCoordinate- the x coordinate at which the ripple will be generated- See Also:
-
buildClip
Responsible for building the ripple generator's clip, which avoids ripple ending outside the region. -
isComputeRadiusMultiplier
public boolean isComputeRadiusMultiplier()Gets the value of the property computeRadiusMultiplier.- Property description:
- Specifies if the ripple's radius multiplier should be computed automatically.
If this is true the value specified by
radiusMultiplierProperty()will be ignored andcomputeRadiusMultiplier(double)will be called instead.
-
computeRadiusMultiplierProperty
Specifies if the ripple's radius multiplier should be computed automatically. If this is true the value specified byradiusMultiplierProperty()will be ignored andcomputeRadiusMultiplier(double)will be called instead. -
setComputeRadiusMultiplier
public void setComputeRadiusMultiplier(boolean computeRadiusMultiplier) Sets the value of the property computeRadiusMultiplier.- Property description:
- Specifies if the ripple's radius multiplier should be computed automatically.
If this is true the value specified by
radiusMultiplierProperty()will be ignored andcomputeRadiusMultiplier(double)will be called instead.
-
getRadiusMultiplier
public double getRadiusMultiplier()Gets the value of the property radiusMultiplier.- Property description:
- Specifies the multiplier used to obtain the final ripple's radius.
If you are still wondering what the heck is this multiplier then read this.
The ripple is basically a shape, in this case a circle with initial radius 0, created at specified coordinates.
Generally speaking:
The first phase of the ripple animation consists in increasing the radius to the value specified by
rippleRadiusProperty().The second phase is to further expand that radius (like a ripple in a lake lol) to make the circle cover entirely or almost the region.
The last phase is to drop the circle opacity to 0 and remove the ripple.
-
radiusMultiplierProperty
Specifies the multiplier used to obtain the final ripple's radius. If you are still wondering what the heck is this multiplier then read this. The ripple is basically a shape, in this case a circle with initial radius 0, created at specified coordinates.Generally speaking:
The first phase of the ripple animation consists in increasing the radius to the value specified by
rippleRadiusProperty().The second phase is to further expand that radius (like a ripple in a lake lol) to make the circle cover entirely or almost the region.
The last phase is to drop the circle opacity to 0 and remove the ripple.
-
setRadiusMultiplier
public void setRadiusMultiplier(double radiusMultiplier) Sets the value of the property radiusMultiplier.- Property description:
- Specifies the multiplier used to obtain the final ripple's radius.
If you are still wondering what the heck is this multiplier then read this.
The ripple is basically a shape, in this case a circle with initial radius 0, created at specified coordinates.
Generally speaking:
The first phase of the ripple animation consists in increasing the radius to the value specified by
rippleRadiusProperty().The second phase is to further expand that radius (like a ripple in a lake lol) to make the circle cover entirely or almost the region.
The last phase is to drop the circle opacity to 0 and remove the ripple.
-
getRegion
- Returns:
- the region on which the ripple will be generated
-
defaultClipSupplier
public void defaultClipSupplier()Description copied from interface:IRippleGeneratorEvery ripple generator should have a default clip supplier. -
getClipSupplier
- Returns:
- the current generator's clip supplier
-
setClipSupplier
Description copied from interface:IRippleGeneratorSets the generator's clip supplier to the specified one.This is responsible for creating the clip node of the generator, which is built and set everytime the ripple is generated, before the animation is started, and defines the bounds beyond which the ripple must not go.
Although the supplier accepts any
Shapeit is highly recommended to build clips usingRippleClipTypeFactory. -
defaultPositionFunction
public void defaultPositionFunction()Description copied from interface:IRippleGeneratorEvery ripple generator should have a default position for the ripples. -
getRipplePositionFunction
- Returns:
- the current generator's position function
-
setRipplePositionFunction
Description copied from interface:IRippleGeneratorSets the generator's ripple position function to the specified one.This
Functionis responsible for computing the ripple's x and y coordinates before the animation is played. The function takes a MouseEvent as the input (since in most controls the coordinates are the x and y coordinates of the mouse event) and returns aPositionBeanbean. -
defaultRippleSupplier
public void defaultRippleSupplier()Description copied from interface:IRippleGeneratorEvery ripple generator should have a default ripple supplier. -
getRippleSupplier
- Returns:
- the current generator's ripple supplier
-
setRippleSupplier
Description copied from interface:IRippleGeneratorSets the generator's ripple supplier to the specified one.This
Supplieris responsible for creating the ripple shape before the animation is played. -
getAnimationSpeed
public double getAnimationSpeed()Gets the value of the property animationSpeed.- Property description:
- Specifies the speed on the ripples' animation.
This is done by setting the animations rate property,
Animation.setRate(double)
-
animationSpeedProperty
Specifies the speed on the ripples' animation. This is done by setting the animations rate property,Animation.setRate(double)- See Also:
-
setAnimationSpeed
public void setAnimationSpeed(double animationSpeed) Sets the value of the property animationSpeed.- Property description:
- Specifies the speed on the ripples' animation.
This is done by setting the animations rate property,
Animation.setRate(double)
-
isAutoClip
public boolean isAutoClip()Gets the value of the property autoClip.- Property description:
- Specifies whether the generator should try to
buildClip()automatically, this means also trying to fetch the background/border radius.EXPERIMENTAL, may not work in all situations
-
autoClipProperty
Specifies whether the generator should try tobuildClip()automatically, this means also trying to fetch the background/border radius.EXPERIMENTAL, may not work in all situations
- See Also:
-
setAutoClip
public void setAutoClip(boolean autoClip) Sets the value of the property autoClip.- Property description:
- Specifies whether the generator should try to
buildClip()automatically, this means also trying to fetch the background/border radius.EXPERIMENTAL, may not work in all situations
-
getBackgroundOpacity
public double getBackgroundOpacity()Gets the value of the property backgroundOpacity.- Property description:
- Specifies the strength of the background animation.
-
backgroundOpacityProperty
Specifies the strength of the background animation. -
setBackgroundOpacity
public void setBackgroundOpacity(double backgroundOpacity) Sets the value of the property backgroundOpacity.- Property description:
- Specifies the strength of the background animation.
-
isPaused
public boolean isPaused()Gets the value of the property paused.- Property description:
- Property to enable/disable the ripple generator.
-
pausedProperty
Property to enable/disable the ripple generator.- See Also:
-
setPaused
public void setPaused(boolean paused) Sets the value of the property paused.- Property description:
- Property to enable/disable the ripple generator.
-
getRippleColor
Gets the value of the property rippleColor.- Property description:
- Specifies the ripples' color.
-
rippleColorProperty
Specifies the ripples' color.- See Also:
-
setRippleColor
Sets the value of the property rippleColor.- Property description:
- Specifies the ripples' color.
-
getRippleOpacity
public double getRippleOpacity()Gets the value of the property rippleOpacity.- Property description:
- Specifies the initial ripple's opacity.
-
rippleOpacityProperty
Specifies the initial ripple's opacity.- See Also:
-
setRippleOpacity
public void setRippleOpacity(double rippleOpacity) Sets the value of the property rippleOpacity.- Property description:
- Specifies the initial ripple's opacity.
-
getRippleRadius
public double getRippleRadius()Gets the value of the property rippleRadius.- Property description:
- Specifies the ripples' initial radius.
-
rippleRadiusProperty
Specifies the ripples' initial radius.- See Also:
-
setRippleRadius
public void setRippleRadius(double radius) Sets the value of the property rippleRadius.- Property description:
- Specifies the ripples' initial radius.
-
getControlCssMetaDataList
-
getCssMetaData
- Specified by:
getCssMetaDatain interfaceStyleable- Overrides:
getCssMetaDatain classRegion
-