|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--kinetic.KineticProperty
|
+--kinetic.KineticDiscreteProperty
specialized version of the nomral KineticProperty. contains a list of items in a lookup array. Treats the value as a bounded double type and rounds it to an index when the value must be retrieved
| Field Summary |
| Fields inherited from class kinetic.KineticProperty |
changed, endValue, initialValue, lower_bound, owner, upper_bound |
| Constructor Summary | |
KineticDiscreteProperty()
creates a new instance of KineticDiscreteProperty |
|
KineticDiscreteProperty(double new_val)
creates a new instance of KineticDiscreteProperty |
|
KineticDiscreteProperty(double new_val,
double l_bound,
double u_bound)
creates a new instance of KineticDiscreteProperty |
|
| Method Summary | |
void |
addChoice(java.lang.Object c)
adds a new option the choice list in this property |
void |
clipValue()
clips the current value to the defined bounds |
java.lang.Object |
getChoice(int i)
get the indexed object from the choice list |
java.lang.Object |
getEndChoice()
returns the object pointed by the current value |
double |
getEndValue()
gets the rounded interger of the property |
int |
getSize()
return the size of the choice list |
void |
removeChoice(java.lang.Object c)
removes a particular choice from the choice list |
void |
setChoices(java.util.ArrayList new_list)
assigns the linked list inside this property to the one passed |
| Methods inherited from class kinetic.KineticProperty |
addBehavior, applyBehavior, clear, getBehaviorList, getInitialValue, handleMouseEvent, hasChanged, limit, reset, resetEndValue, setMaxValue, setMinValue, setOwner, setValue, setValue, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public KineticDiscreteProperty()
public KineticDiscreteProperty(double new_val)
new_val - sets the value of this property
public KineticDiscreteProperty(double new_val,
double l_bound,
double u_bound)
new_val - sets the value of this propertyl_bound - sets the lower bound of the propertyu_bound - sets the upper bound of the property| Method Detail |
public double getEndValue()
getEndValue in class KineticPropertypublic java.lang.Object getEndChoice()
public void addChoice(java.lang.Object c)
c - instance of an object to be addedpublic void setChoices(java.util.ArrayList new_list)
new_list - ArrayList of object choicespublic void removeChoice(java.lang.Object c)
c - object to be removedpublic java.lang.Object getChoice(int i)
i - index value
public int getSize()
public void clipValue()
clipValue in class KineticProperty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||