org.opensourcephysics.sip.ch10
Class RadiatingCharge

java.lang.Object
  extended by org.opensourcephysics.sip.ch10.RadiatingCharge
All Implemented Interfaces:
Drawable, Function

public class RadiatingCharge
extends java.lang.Object
implements Drawable, Function

RadiatingCharge models the fields from an accelerating charged particle.


Constructor Summary
RadiatingCharge()
          MovingCharge constructor
 
Method Summary
 void draw(DrawingPanel panel, java.awt.Graphics g)
          Draws the charge.
 double evaluate(double t)
          Evaluates the charge position at time t.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RadiatingCharge

public RadiatingCharge()
MovingCharge constructor

Method Detail

draw

public void draw(DrawingPanel panel,
                 java.awt.Graphics g)
Draws the charge.

Specified by:
draw in interface Drawable
Parameters:
panel -
g -

evaluate

public double evaluate(double t)
Evaluates the charge position at time t.

Specified by:
evaluate in interface Function
Parameters:
t -
Returns:
the x position