backend.information
Class AreaNugget

java.lang.Object
  extended by java.util.Observable
      extended by backend.information.InformationNugget
          extended by backend.information.AreaNugget
All Implemented Interfaces:
java.util.Observer
Direct Known Subclasses:
TriangleAreaNugget

public abstract class AreaNugget
extends InformationNugget

The AreaNugget class is a base class for any nugget that needs to display the area of something.


Nested Class Summary
static class AreaNugget.AreaType
           
 
Constructor Summary
AreaNugget(SphereModel theSphere)
          AreaNugget base constructor will initalize an area nugget and store the SphereModel which is needed for calculations
 
Method Summary
 void setAreaMeasure(AreaNugget.AreaType newType)
          setAreaMeasure will set the current area measure to be the type sent
static void setDefaultMeasure(AreaNugget.AreaType newType)
          setDefaultMesasure will set what the default measurment type is when a new area is requested.
 
Methods inherited from class backend.information.InformationNugget
equals, toString, update
 
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

AreaNugget

public AreaNugget(SphereModel theSphere)
AreaNugget base constructor will initalize an area nugget and store the SphereModel which is needed for calculations

Parameters:
theSphere -
Method Detail

setDefaultMeasure

public static void setDefaultMeasure(AreaNugget.AreaType newType)
setDefaultMesasure will set what the default measurment type is when a new area is requested.

Parameters:
newType - is the AreaType that should be set to the new default

setAreaMeasure

public void setAreaMeasure(AreaNugget.AreaType newType)
setAreaMeasure will set the current area measure to be the type sent

Parameters:
newType - the new way to measure area