|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectapps.realgravity.MassEntity
public class MassEntity
The Class MassEntity.
Field Summary | |
---|---|
static MassEntity |
EARTH
The Constant EARTH. |
static MassEntity |
JUPITER
The Constant JUPITER. |
static MassEntity |
LUNA
The Constant LUNA. |
static MassEntity |
MARS
The Constant MARS. |
static MassEntity |
MERCURY
The Constant MERCURY. |
static MassEntity |
NEPTUNE
The Constant NEPTUNE. |
static MassEntity |
PLUTO
The Constant PLUTO. |
static MassEntity |
SATURN
The Constant SATURN. |
static MassEntity |
SUN
The Constant SUN. |
static MassEntity |
URANUS
The Constant URANUS. |
static MassEntity |
VENUS
The Constant VENUS. |
Method Summary | |
---|---|
java.lang.Object |
clone()
|
boolean |
equals(java.lang.Object obj)
|
double |
getMass()
Gets the mass. |
java.lang.String |
getName()
Gets the name. |
java.awt.geom.Point2D.Double |
getPos()
Gets the pos. |
double |
getRadius()
Gets the radius. |
java.awt.geom.Point2D.Double |
getVel()
Gets the vel. |
void |
render(java.awt.Graphics2D g2d,
int xOffset,
int yOffset,
double metersPerPixel)
Render. |
void |
setName(java.lang.String name)
Sets the name. |
void |
setPos(java.awt.geom.Point2D.Double pos)
Sets the pos. |
void |
setRadius(double r)
Sets the radius. |
void |
setVel(java.awt.geom.Point2D.Double vel)
Sets the vel. |
double |
surfaceGravity()
Surface gravity. |
double |
surfaceWeight(double otherMass)
Surface weight. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final MassEntity EARTH
public static final MassEntity JUPITER
public static final MassEntity LUNA
public static final MassEntity MARS
public static final MassEntity MERCURY
public static final MassEntity NEPTUNE
public static final MassEntity PLUTO
public static final MassEntity SATURN
public static final MassEntity SUN
public static final MassEntity URANUS
public static final MassEntity VENUS
Method Detail |
---|
public java.lang.Object clone()
clone
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public double getMass()
public java.lang.String getName()
public java.awt.geom.Point2D.Double getPos()
public double getRadius()
public java.awt.geom.Point2D.Double getVel()
public void render(java.awt.Graphics2D g2d, int xOffset, int yOffset, double metersPerPixel)
g2d
- the g2dxOffset
- the x offsetyOffset
- the y offsetmetersPerPixel
- the meters per pixelpublic void setName(java.lang.String name)
name
- the new namepublic void setPos(java.awt.geom.Point2D.Double pos)
pos
- the new pospublic void setRadius(double r)
r
- the new radiuspublic void setVel(java.awt.geom.Point2D.Double vel)
vel
- the new velpublic double surfaceGravity()
public double surfaceWeight(double otherMass)
otherMass
- the other mass
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |