backend.information
Class TriangleAreaNugget

java.lang.Object
  extended by java.util.Observable
      extended by backend.information.InformationNugget
          extended by backend.information.AreaNugget
              extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from class backend.information.AreaNugget
AreaNugget.AreaType
 
Constructor Summary
TriangleAreaNugget(SpherePointModel fPoint, SpherePointModel sPoint, SpherePointModel tPoint, SphereModel theSphere)
          The TriangleAreaNugget default constructor
 
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 backend.information.AreaNugget
setAreaMeasure, setDefaultMeasure
 
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
 

Constructor Detail

TriangleAreaNugget

public TriangleAreaNugget(SpherePointModel fPoint,
                          SpherePointModel sPoint,
                          SpherePointModel tPoint,
                          SphereModel theSphere)
The TriangleAreaNugget default constructor

Parameters:
fPoint - The first point of our triangle
sPoint - The second point of our triangle
tPoint - The third point of our triangle
theSphere - The sphere to work with
Method Detail

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