/** * this method will be set to private in future versions of JFoenix, * user the method {@link #setOverlayVisible(boolean)} */ @Deprecated public void showOverlay() { if (rippler.overlayRect != null) { rippler.overlayRect.outAnimation.stop(); } rippler.createOverlay(); rippler.overlayRect.inAnimation.play(); }
void createRipple() { if (enabled) { if (!generating.getAndSet(true)) { // create overlay once then change its color later createOverlay(); if (this.getClip() == null || (getChildren().size() == 1 && !cacheRipplerClip) || resetClip) { this.setClip(getMask()); } this.resetClip = false; // create the ripple effect final Ripple ripple = new Ripple(generatorCenterX, generatorCenterY); getChildren().add(ripple); ripplesQueue.add(ripple); // animate the ripple overlayRect.outAnimation.stop(); overlayRect.inAnimation.play(); ripple.inAnimation.play(); } } }
/** * this method will be set to private in future versions of JFoenix, * user the method {@link #setOverlayVisible(boolean)} */ @Deprecated public void showOverlay() { if (rippler.overlayRect != null) { rippler.overlayRect.outAnimation.stop(); } rippler.createOverlay(); rippler.overlayRect.inAnimation.play(); }
void createRipple() { if (enabled) { if (!generating.getAndSet(true)) { // create overlay once then change its color later createOverlay(); if (this.getClip() == null || (getChildren().size() == 1 && !cacheRipplerClip) || resetClip) { this.setClip(getMask()); } this.resetClip = false; // create the ripple effect final Ripple ripple = new Ripple(generatorCenterX, generatorCenterY); getChildren().add(ripple); ripplesQueue.add(ripple); // animate the ripple overlayRect.outAnimation.stop(); overlayRect.inAnimation.play(); ripple.inAnimation.play(); } } }