|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.draw2d.Animator
org.eclipse.draw2d.RoutingAnimator
public class RoutingAnimator
Animates the routing of a connection. The animator will capture the effects of the connection's router, and the play back the placement of the routing, interpolating the intermediate routes.
To use a routing animator, hook it as a routing listener for the connection
whose points are to be animated, by calling
PolylineConnection.addRoutingListener(RoutingListener)
. An animator
is active only when the Animation utility is activated.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.eclipse.draw2d.RoutingListener |
---|
RoutingListener.Stub |
Constructor Summary | |
---|---|
protected |
RoutingAnimator()
Constructs a routing animator for use with one or more connections. |
Method Summary | |
---|---|
protected Object |
getCurrentState(IFigure connection)
Returns the current state of the connection. |
static RoutingAnimator |
getDefault()
Returns the default instance. |
void |
invalidate(Connection conn)
Hooks invalidate for animation purposes. |
protected boolean |
playback(IFigure figure)
Plays back the interpolated state. |
void |
playbackStarting(IFigure connection)
Overridden to sync initial and final states. |
void |
postRoute(Connection connection)
Hooks post routing for animation purposes. |
void |
remove(Connection connection)
This callback is unused. |
boolean |
route(Connection conn)
Hooks route to intercept routing during animation playback. |
void |
setConstraint(Connection connection,
Object constraint)
This callback is unused. |
Methods inherited from class org.eclipse.draw2d.Animator |
---|
capture, init, recordFinalState, recordInitialState, tearDown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected RoutingAnimator()
getDefault()
can be used on any number of
connections.
Method Detail |
---|
public void playbackStarting(IFigure connection)
playbackStarting
in class Animator
connection
- the figureAnimator.playbackStarting(IFigure)
protected Object getCurrentState(IFigure connection)
getCurrentState
in class Animator
connection
- the figure
Animator.getCurrentState(IFigure)
public static RoutingAnimator getDefault()
public final void invalidate(Connection conn)
invalidate
in interface RoutingListener
conn
- the connectionRoutingListener.invalidate(Connection)
protected boolean playback(IFigure figure)
playback
in class Animator
figure
- the figure being animated
true
if playback was successfulAnimator.playback(IFigure)
public final void postRoute(Connection connection)
postRoute
in interface RoutingListener
connection
- the routed connectionRoutingListener.postRoute(Connection)
public final void remove(Connection connection)
remove
in interface RoutingListener
connection
- the connectionRoutingListener.remove(Connection)
public final boolean route(Connection conn)
route
in interface RoutingListener
conn
- the connection being routed
true
if routing has been performed by the listenerRoutingListener.route(Connection)
public final void setConstraint(Connection connection, Object constraint)
setConstraint
in interface RoutingListener
connection
- the connectionconstraint
- the new constraintRoutingListener.setConstraint(Connection, Object)
|
Eclipse Draw2d 3.8.0.201206011245 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |