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

Method animate

CodenameOne/src/com/codename1/ui/Button.java:1019–1037  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1017
1018 /// {@inheritDoc}
1019 @Override
1020 public boolean animate() {
1021 boolean a = super.animate();
1022 if (!isEnabled() && disabledIcon != null) {
1023 a |= disabledIcon.isAnimation() && disabledIcon.animate();
1024 } else {
1025 switch (state) {
1026 case STATE_ROLLOVER:
1027 a |= rolloverIcon != null && rolloverIcon.isAnimation() && rolloverIcon.animate();
1028 break;
1029 case STATE_PRESSED:
1030 a |= pressedIcon != null && pressedIcon.isAnimation() && pressedIcon.animate();
1031 break;
1032 default:
1033 break;
1034 }
1035 }
1036 return a;
1037 }
1038
1039 /// Places the check box or radio button on the opposite side at the far end
1040 ///

Callers

nothing calls this directly

Calls 3

animateMethod · 0.65
isEnabledMethod · 0.65
isAnimationMethod · 0.45

Tested by

no test coverage detected