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

Method animate

CodenameOne/src/com/codename1/ui/Toolbar.java:2859–2880  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2857 }
2858
2859 @Override
2860 public boolean animate() {
2861 if (hideShowMotion != null) {
2862 Form f = getComponentForm();
2863 final Container actualPane = f.getActualPane();
2864 int val = hideShowMotion.getValue();
2865 setY(val);
2866 if (!layered) {
2867 actualPane.setY(actualPaneInitialY + val);
2868 actualPane.setHeight(actualPaneInitialH - val);
2869 actualPane.doLayout();
2870 }
2871 f.repaint();
2872 boolean finished = hideShowMotion.isFinished();
2873 if (finished) {
2874 f.deregisterAnimated(this);
2875 hideShowMotion = null;
2876 }
2877 return !finished;
2878 }
2879 return false;
2880 }
2881
2882 private void initVars(Container actualPane) {
2883 initialY = getY();

Callers

nothing calls this directly

Calls 9

getActualPaneMethod · 0.95
doLayoutMethod · 0.95
repaintMethod · 0.95
deregisterAnimatedMethod · 0.95
getValueMethod · 0.65
setHeightMethod · 0.65
isFinishedMethod · 0.65
getComponentFormMethod · 0.45
setYMethod · 0.45

Tested by

no test coverage detected