backend.information
Class AreaNugget
java.lang.Object
java.util.Observable
backend.information.InformationNugget
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.
Constructor Summary |
AreaNugget(SphereModel theSphere)
AreaNugget base constructor will initalize an area nugget and store the
SphereModel which is needed for calculations |
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 |
AreaNugget
public AreaNugget(SphereModel theSphere)
- AreaNugget base constructor will initalize an area nugget and store the
SphereModel which is needed for calculations
- Parameters:
theSphere
-
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