|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfhm.edu.fem.animation.CalcAnimation
fhm.edu.fem.animation.CalcAnimationSpanner
public class CalcAnimationSpanner
Class Description: This class is being used when we have FEM6 files for Spanner calculations. It animates the Spanner and offers the user the ability to increase or decrease the used force.
Field Summary | |
---|---|
protected FEMCalcSpanner |
femCalc
|
protected GLSpannerFrame |
femFrame
|
protected double |
forceUserStep
|
Fields inherited from class fhm.edu.fem.animation.CalcAnimation |
---|
aiVector, deltaT, dimensionA, dimensionB, femManager, frameCount, initialDeltaT, initialPZ, INNER_POINTS, localLogger, omega, OUTER_POINTS, pX, pY, pZ, startTime, tmpTime, w0Vector |
Constructor Summary | |
---|---|
CalcAnimationSpanner(FEMCalcSpanner femCalc,
java.lang.String[] args)
Create a new Calc Animation Object |
Method Summary | |
---|---|
protected void |
addVariableToForces(double factor)
Adjust the forces stored in the FEMManager by the given factor |
protected boolean |
initDisplay()
Initialize the display |
void |
keyTyped(java.awt.event.KeyEvent e)
Automatically called when the user presses a key |
protected void |
resetNodePositions()
Reset the node positions to the initial old figure, so that the changed forces can take correct effect. |
boolean |
start()
Call this method to start the animation |
Methods inherited from class fhm.edu.fem.animation.CalcAnimation |
---|
calculateAI, calculateAnimation, calculateExactA, calculateMembranDimensions, calculateOmega, calculateStartingAmplitude, keyPressed, keyReleased, normB |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected FEMCalcSpanner femCalc
protected GLSpannerFrame femFrame
protected double forceUserStep
Constructor Detail |
---|
public CalcAnimationSpanner(FEMCalcSpanner femCalc, java.lang.String[] args)
femCalc,
- the calculation object to useargs,
- the given command line arguments (none needed)Method Detail |
---|
protected void addVariableToForces(double factor)
factor,
- the factor to add to the forces (OLD_FORCE+FACTOR = NEW_FORCE)protected boolean initDisplay()
public void keyTyped(java.awt.event.KeyEvent e)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class CalcAnimation
e,
- the key eventprotected void resetNodePositions()
public boolean start()
start
in class CalcAnimation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |