org.gjt.universe
Class AtmosphereCompositionType
java.lang.Object
|
+--org.gjt.universe.Classification
|
+--org.gjt.universe.AtmosphereCompositionType
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- AtmosphereCompositionType.CarbonDioxideAtmosphereCompositionType, AtmosphereCompositionType.HydrogenAtmosphereCompositionType, AtmosphereCompositionType.NoneAtmosphereCompositionType, AtmosphereCompositionType.NormalAtmosphereCompositionType
- public abstract class AtmosphereCompositionType
- extends Classification
- See Also:
- Serialized Form
Constructor Summary |
protected |
AtmosphereCompositionType(java.lang.String aName,
java.lang.String aBackStory,
java.awt.Color aColor)
This constructor is used to construct instances of
this class. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
allInstances
private static java.util.Vector allInstances
NORMAL
public static AtmosphereCompositionType NORMAL
NONE
public static AtmosphereCompositionType NONE
HYDROGEN
public static AtmosphereCompositionType HYDROGEN
CARBON_DIOXIDE
public static AtmosphereCompositionType CARBON_DIOXIDE
LOW_NORMAL_N2
public static float LOW_NORMAL_N2
HIGH_NORMAL_N2
public static float HIGH_NORMAL_N2
LOW_NORMAL_O2
public static float LOW_NORMAL_O2
HIGH_NORMAL_O2
public static float HIGH_NORMAL_O2
myColor
public java.awt.Color myColor
AtmosphereCompositionType
protected AtmosphereCompositionType(java.lang.String aName,
java.lang.String aBackStory,
java.awt.Color aColor)
- This constructor is used to construct instances of
this class. It should not be necessary for callers
to invoke this directly, since all atmospheric composition types should
be created automatically.
- Parameters:
aName
- The short localized name of the atmospheric composition type.aBackStory
- A localized description of the atmospheric composition type.aColor
- A color used to indicate the chemical composition of the atmosphere.
instanceForMakeup
public static AtmosphereCompositionType instanceForMakeup(SimpleAccrete.PlanetaryMakeup aMakeup)
- This class method returns the atmospheric composition type instance
which best matches the given planetary make-up.
- Parameters:
aMakeup
- A planetary make-up to be matched against.
getColor
public java.awt.Color getColor()
- This method returns a color that can be used to indicate the chemical
composition of the atmosphere in a graphical user interface.
Copyright © 2001 Universe Dev Team All Rights Reserved.