|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensourcephysics.sip.ch03.WorldRectangle
public class WorldRectangle
WorldRectangle demonstrates how to draw an object using a drawing panel's world coordinates.
| Constructor Summary | |
|---|---|
WorldRectangle(double left,
double top,
double width,
double height)
Constructs a WorldRectangle with position and dimensions values given in world coordinates. |
|
| Method Summary | |
|---|---|
void |
draw(DrawingPanel panel,
java.awt.Graphics g)
Draws this rectangle using a drawing panel's world coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WorldRectangle(double left,
double top,
double width,
double height)
left - doubletop - doublewidth - doubleheight - double| Method Detail |
|---|
public void draw(DrawingPanel panel,
java.awt.Graphics g)
draw in interface Drawablepanel - DrawingPanelg - Graphics
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||