@Override public void onStart(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Store the rows' target heights for (int i = 0; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); heights.add(row.peekHeight()); } //Mark cells as expanded gridWidget.getModel().expandCell(uiRowIndex, uiColumnIndex); }
@Override public void onStart(final IAnimation iAnimation, final IAnimationHandle iAnimationHandle) { //Store the rows' target heights for (int i = 0; i < rowCount; i++) { final GridRow row = gridWidget.getModel().getRow(uiRowIndex + i); heights.add(row.peekHeight()); } //Mark cells as expanded gridWidget.getModel().expandCell(uiRowIndex, uiColumnIndex); }
@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(); }