animate.add(new ColorAnimator(LABELS, VisualItem.TEXTCOLOR));
animate.add(new RepaintAction());
animate.addActivityListener(new ActivityAdapter() {
public void activityCancelled(Activity a) {
// if animation is canceled, set colors to final state
update.run(1.0);
}
});
m_vis.putAction("animate", animate);
// update items after a resize of the display, animating them to their