backend.information
Class TriangleAreaNugget
java.lang.Object
java.util.Observable
backend.information.InformationNugget
backend.information.AreaNugget
backend.information.TriangleAreaNugget
- All Implemented Interfaces:
- java.util.Observer
public class TriangleAreaNugget
- extends AreaNugget
TriangleAreaNugget will display information about the area of a triangle
nugget
Method Summary |
boolean |
equals(java.lang.Object checkMe)
|
SpherePointModel |
getFirstPoint()
getFirstPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file |
SpherePointModel |
getSecondPoint()
getsecondPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file |
SpherePointModel |
getThirdPoint()
getThirdPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file |
java.lang.String |
toString()
|
void |
update(java.util.Observable obv,
java.lang.Object myArg)
|
Methods inherited from class java.util.Observable |
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
TriangleAreaNugget
public TriangleAreaNugget(SpherePointModel fPoint,
SpherePointModel sPoint,
SpherePointModel tPoint,
SphereModel theSphere)
- The TriangleAreaNugget default constructor
- Parameters:
fPoint
- The first point of our trianglesPoint
- The second point of our triangletPoint
- The third point of our triangletheSphere
- The sphere to work with
equals
public boolean equals(java.lang.Object checkMe)
- Specified by:
equals
in class InformationNugget
toString
public java.lang.String toString()
- Specified by:
toString
in class InformationNugget
getFirstPoint
public SpherePointModel getFirstPoint()
- getFirstPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file
- Returns:
- first point of the angle
getSecondPoint
public SpherePointModel getSecondPoint()
- getsecondPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file
- Returns:
- second point of the angle
getThirdPoint
public SpherePointModel getThirdPoint()
- getThirdPoint was only added as a way to get the necessary information
needed to write the TriangleAreaNugget to a file
- Returns:
- third point of the angle
update
public void update(java.util.Observable obv,
java.lang.Object myArg)
- Specified by:
update
in interface java.util.Observer
- Overrides:
update
in class InformationNugget