|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfaa.tg.pointmodel.PointModel
public abstract class PointModel
The PointModel abstracts the common attribute of position for all objects whose position will be represented as a single point. See the source: PointModel.java
See section 6 of the Detailed Design Document for a discussion of design issues.
FixedPointModel,
Position,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CVS_VERSION_ID
The CVS Version ID |
private Position |
position
Position is the three dimensional location of the PointModel object. |
(package private) static long |
serialVersionUID
|
| Constructor Summary | |
|---|---|
PointModel(Position pos)
Constructor |
|
| Method Summary | |
|---|---|
protected PointModel |
clone()
Creates a new object of the same class as this object. |
Position |
getPosition()
Returns the position field of this object. |
void |
setPosition(Position newPosition)
replaces the current Position with this Position |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
static final long serialVersionUID
public static final java.lang.String CVS_VERSION_ID
private Position position
| Constructor Detail |
|---|
public PointModel(Position pos)
pos - Position of the object| Method Detail |
|---|
public Position getPosition()
public void setPosition(Position newPosition)
newPosition - the new Position which replaces the current Position
protected PointModel clone()
throws java.lang.CloneNotSupportedException
The clone method of class PointModel will
only clone an object whose class indicates that it is willing for
its instances to be cloned. A class indicates that its instances
can be cloned by declaring that it implements the
Cloneable interface.
clone in class java.lang.Objectjava.lang.CloneNotSupportedException - if the object's class does not
support the Cloneable interface. Subclasses
that override the clone method can also
throw this exception to indicate that an instance cannot
be cloned.
java.lang.OutOfMemoryError - if there is not enough memory.Cloneablepublic 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 | |||||||||