JavaView® v2.00.008

jvx.geom
Class PnExplodeElementSet

java.lang.Object
  |
  +--jvx.geom.PnExplodeElementSet
All Implemented Interfaces:
PsTimeListenerIf

public class PnExplodeElementSet
extends java.lang.Object
implements PsTimeListenerIf

Class to explode element sets.

Version:
21.02.01, 1.10 revised (kp) Adapted to changes in PsTimeListenerIf.
20.06.00, 1.00 created (ur)
Author:
Ulrich Reitebuch

Constructor Summary
PnExplodeElementSet(PgElementSet anElementSet)
          Constructor.
 
Method Summary
 PsAnimation getAnimation()
          Get the animation object of the project which handles the projects animations.
 java.lang.String getName()
          Return name of this PsTimeListenerIf.
 boolean hasAnimation()
          Check whether this project is registered as listener of an animation object.
 void init()
          Initialization.
 void reset()
          Reset geometry to initial state.
 void setAnimation(PsAnimation anAnimation)
          Assign the animation object where this listener is registered.
 void setEndListener(PsUpdateIf end)
           
 void setGravity(double gravity)
           
 void setGravityDirection(PdVector gravityDirection)
           
 void setRotationSpeed(double rotationSpeed)
           
 void setSpeed(double speed)
           
 boolean setTime(PsTimeEvent timeEvent)
          Update the geometry for every new time step.
 void startAnimation()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PnExplodeElementSet

public PnExplodeElementSet(PgElementSet anElementSet)
Constructor.
Method Detail

init

public void init()
Initialization.

setSpeed

public void setSpeed(double speed)

setGravity

public void setGravity(double gravity)

setGravityDirection

public void setGravityDirection(PdVector gravityDirection)

setRotationSpeed

public void setRotationSpeed(double rotationSpeed)

setEndListener

public void setEndListener(PsUpdateIf end)

startAnimation

public void startAnimation()

reset

public void reset()
Reset geometry to initial state.

getName

public java.lang.String getName()
Return name of this PsTimeListenerIf.
Specified by:
getName in interface PsTimeListenerIf

setTime

public boolean setTime(PsTimeEvent timeEvent)
Update the geometry for every new time step.
Specified by:
setTime in interface PsTimeListenerIf

getAnimation

public PsAnimation getAnimation()
Get the animation object of the project which handles the projects animations. This listener may only have a single animation object which is assigned by the animation object when this listener is registered using setAnimation(PsAnimation).
Specified by:
getAnimation in interface PsTimeListenerIf
See Also:
hasAnimation(), setAnimation(PsAnimation)

hasAnimation

public boolean hasAnimation()
Check whether this project is registered as listener of an animation object.
Specified by:
hasAnimation in interface PsTimeListenerIf
See Also:
getAnimation(), setAnimation(PsAnimation)

setAnimation

public void setAnimation(PsAnimation anAnimation)
Assign the animation object where this listener is registered. This method is invoked by the animation object during registration of this listener, and usually is not required to be called by a user. If this listener has an assigned animation object, then its animation panel may be shown to change the current time of this listener.

If this project has an animation object assigned in its constructor or init() method, then the animation panel is shown when the project's start() method is invoked during loading of the project.

Only one animation object may be assigned to this listener. Subsequent assignments will replace the previous assignment.

Specified by:
setAnimation in interface PsTimeListenerIf
See Also:
getAnimation(), hasAnimation()

JavaView® v2.00.008

The software JavaView® is copyright protected. All Rights Reserved.