MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / initRippleEffect

Method initRippleEffect

CodenameOne/src/com/codename1/ui/Form.java:3293–3302  ·  view source on GitHub ↗
(int x, int y, Component cmp)

Source from the content-addressed store, hash-verified

3291 }
3292
3293 private void initRippleEffect(int x, int y, Component cmp) {
3294 if (cmp.isRippleEffect()) {
3295 Motion motion = Motion.createEaseInMotion(0, 1000, 800);
3296 motion.start();
3297 setRippleMotion(motion);
3298 setRippleComponent(cmp);
3299 rippleX = x;
3300 rippleY = y;
3301 }
3302 }
3303
3304 private void tactileTouchVibe(int x, int y, Component cmp) {
3305 if (tactileTouchDuration > 0 && cmp.isTactileTouch(x, y)) {

Callers 1

pointerPressedMethod · 0.95

Calls 5

createEaseInMotionMethod · 0.95
startMethod · 0.95
setRippleMotionMethod · 0.95
setRippleComponentMethod · 0.95
isRippleEffectMethod · 0.80

Tested by

no test coverage detected