|
Re: Animation... [message #206951 is a reply to message #206940] |
Mon, 09 January 2006 16:20 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
Animation works by adding LayoutListeners or RoutingListeners to the figures
to be animated.
See createFigure in WireEditPart for the 3rd line of code that is needed.
enjoy, but don't abuse ;-).
"Michael Moser" <mmo@zurich.ibm.com> wrote in message
news:dpu1k4$ou0$1@utils.eclipse.org...
>I found this very cool animation feature in the logic example code:
> ...
> protected void refreshVisuals() {
> Animation.markBegin();
> ConnectionLayer cLayer = (ConnectionLayer) getLayer(CONNECTION_LAYER);
> cLayer.setAntialias(SWT.ON);
> ...
> cLayer.setConnectionRouter(...);
> Animation.run(400);
> }
>
> ...
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02908 seconds