@Override public void onFrame(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Set the rows' height from zero to their starting height final double pct = assertPct(iAnimation.getPercent()); for (int i = 1; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); row.setHeight(pct * heights.get(i)); } gridWidget.getLayer().batch(); }
@Override public void onFrame(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Set the rows' height from zero to their starting height final double pct = assertPct(iAnimation.getPercent()); for (int i = 1; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); row.setHeight(pct * heights.get(i)); } gridWidget.getLayer().batch(); }
@Override public void onFrame(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Set the rows' height to their starting height down to zero final double pct = assertPct(iAnimation.getPercent()); for (int i = 1; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); row.setHeight((1.0 - pct) * row.peekHeight()); } gridWidget.getLayer().batch(); }
@Override public void onFrame(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Set the rows' height to their starting height down to zero final double pct = assertPct(iAnimation.getPercent()); for (int i = 1; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); row.setHeight((1.0 - pct) * row.peekHeight()); } gridWidget.getLayer().batch(); }