org.opensourcephysics.sip.ch18
Class ObservedRing

java.lang.Object
  extended by org.opensourcephysics.sip.ch18.ContractedRing
      extended by org.opensourcephysics.sip.ch18.ObservedRing
All Implemented Interfaces:
Drawable

public class ObservedRing
extends ContractedRing

ObservedRing models the appearance of a ring at relativistic speeds.


Constructor Summary
ObservedRing(double x0, double y0, double vx, int numPts)
          Constructs an ObservedRing at the given position.
 
Method Summary
 void draw(DrawingPanel panel, java.awt.Graphics g)
          Draws the ring as seen by a single observer at the origin.
 
Methods inherited from class org.opensourcephysics.sip.ch18.ContractedRing
setTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObservedRing

public ObservedRing(double x0,
                    double y0,
                    double vx,
                    int numPts)
Constructs an ObservedRing at the given position.

Parameters:
x0 - double
y0 - double
vx - double
numPts - int
Method Detail

draw

public void draw(DrawingPanel panel,
                 java.awt.Graphics g)
Draws the ring as seen by a single observer at the origin.

Specified by:
draw in interface Drawable
Overrides:
draw in class ContractedRing
Parameters:
panel - DrawingPanel
g - Graphics