|
|||||||||
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.ch10.ElectricFieldApp
public class ElectricFieldApp
ElectricFieldApp draws the vector field from point charges.
Field Summary |
---|
Fields inherited from class org.opensourcephysics.controls.AbstractCalculation |
---|
control, decimalFormat, mainFrame |
Constructor Summary | |
---|---|
ElectricFieldApp()
The ElectricFieldApp constructor. |
Method Summary | |
---|---|
void |
calculate()
Adds a new charge. |
void |
handleMouseAction(InteractivePanel panel,
java.awt.event.MouseEvent evt)
Handles mouse actions from the panel. |
static void |
main(java.lang.String[] args)
The main method starts the Java application. |
void |
reset()
Removes charges and recalculates the field. |
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 ElectricFieldApp()
Method Detail |
---|
public void calculate()
calculate
in interface Calculation
calculate
in class AbstractCalculation
public void reset()
reset
in class AbstractCalculation
public void handleMouseAction(InteractivePanel panel, java.awt.event.MouseEvent evt)
handleMouseAction
in interface InteractiveMouseHandler
panel
- evt
- public static void main(java.lang.String[] args)
args[]
- the input parameters
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |