|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensourcephysics.controls.AbstractCalculation
org.opensourcephysics.sip.ch17.Affine2DApp
public class Affine2DApp
Affine2DApp demonstrates how to apply an affine transformation to a 2D shape.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation |
---|
control, decimalFormat, mainFrame |
Constructor Summary | |
---|---|
Affine2DApp()
|
Method Summary | |
---|---|
void |
calculate()
Performs a calculation by reading the transformation matrix and applying it to the shape. |
static void |
main(java.lang.String[] args)
Starts the Java application. |
void |
reset()
Resets the calculation by setting the transformation to the identity and creating a default rectangle. |
Methods inherited from class org.opensourcephysics.controls.AbstractCalculation |
---|
addChildFrame, clearChildFrames, getChildFrames, getLoader, getMainFrame, getOSPApp, resetCalculation, setControl |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Affine2DApp()
Method Detail |
---|
public void calculate()
calculate
in interface Calculation
calculate
in class AbstractCalculation
public void reset()
reset
in class AbstractCalculation
public static void main(java.lang.String[] args)
args
- command line parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |