|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--kinetic.util.EffectParameter | +--kinetic.util.EffectParameter.BoundedDouble
Bounded Double Parameter Class
Nested Class Summary |
Nested classes inherited from class kinetic.util.EffectParameter |
EffectParameter.Boolean, EffectParameter.BoundedDouble, EffectParameter.BoundedInteger, EffectParameter.Double, EffectParameter.EnumeratedString, EffectParameter.Integer, EffectParameter.Percentage, EffectParameter.String, EffectParameter.ZeroToOne |
Field Summary |
Fields inherited from class kinetic.util.EffectParameter |
currentValue, defaultValue, name, type, TYPE_BOOLEAN, TYPE_BOUNDED_DOUBLE, TYPE_BOUNDED_INTEGER, TYPE_DOUBLE, TYPE_ENUMERATED_STRING, TYPE_INTEGER, TYPE_PERCENTAGE, TYPE_STRING, TYPE_UNKNOWN, TYPE_ZERO_TO_ONE |
Constructor Summary | |
EffectParameter.BoundedDouble(java.lang.String n,
double v,
double lower,
double upper)
creates a new instance of the type parameter |
Method Summary | |
double |
getLowerBound()
gets the lower bound |
double |
getUpperBound()
gets the upper bound |
double |
getValue()
gets the type casted version of the current value object |
void |
setLowerBound(double v)
sets the lower bound |
void |
setUpperBound(double v)
sets the upper bound |
void |
setValue(double v)
sets the current value object with a type casted variable |
Methods inherited from class kinetic.util.EffectParameter |
getCurrentObject, getDefaultObject, getName, getType, setCurrentObject, setDefaultObject, setName, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EffectParameter.BoundedDouble(java.lang.String n, double v, double lower, double upper)
n
- name of the parameterv
- the default and initial value for the parameterlower
- lower bound for the parameterupper
- upper bound for the parameterMethod Detail |
public double getValue()
public void setValue(double v)
v
- new value for the parameterpublic double getUpperBound()
public double getLowerBound()
public void setUpperBound(double v)
v
- upper boundpublic void setLowerBound(double v)
v
- lower bound
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |