backend.information
Class AngleNugget

java.lang.Object
  extended by java.util.Observable
      extended by backend.information.InformationNugget
          extended by backend.information.AngleNugget
All Implemented Interfaces:
java.util.Observer

public class AngleNugget
extends InformationNugget

AngleNugget is used to display angle measures and get them ready for displaying


Constructor Summary
AngleNugget(SpherePointModel fPoint, SpherePointModel sPoint, SpherePointModel tPoint)
          The default AngleNugget 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 AngleNugget to a file
 SpherePointModel getSecondPoint()
          getsecondPoint was only added as a way to get the necessary information needed to write the AngleNugget to a file
 SpherePointModel getThirdPoint()
          getThirdPoint was only added as a way to get the necessary information needed to write the AngleNugget to a file
static void setDefaultRadians(boolean myDefault)
          setDefaultRadians if set to true will make the default units for all AngleNuggets radian if set to false it will be degrees
 void setRadians(boolean radians)
          setRadians will change what this AngleNugget displays in
 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
 

Constructor Detail

AngleNugget

public AngleNugget(SpherePointModel fPoint,
                   SpherePointModel sPoint,
                   SpherePointModel tPoint)
The default AngleNugget constructor

Parameters:
fPoint - The first point in the angle
sPoint - The second (middle) point of the angle
tPoint - The third point of the angle
Method Detail

setRadians

public void setRadians(boolean radians)
setRadians will change what this AngleNugget displays in

Parameters:
radians - True to display in radians false to display in degrees

toString

public java.lang.String toString()
Specified by:
toString in class InformationNugget

equals

public boolean equals(java.lang.Object checkMe)
Specified by:
equals in class InformationNugget

getFirstPoint

public SpherePointModel getFirstPoint()
getFirstPoint was only added as a way to get the necessary information needed to write the AngleNugget 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 AngleNugget 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 AngleNugget to a file

Returns:
third point of the angle

setDefaultRadians

public static void setDefaultRadians(boolean myDefault)
setDefaultRadians if set to true will make the default units for all AngleNuggets radian if set to false it will be degrees

Parameters:
myDefault - true to make radians, false to make degrees

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