|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.properties.items.AnimationPropertyItem
algoanim.properties.items.EnumerationPropertyItem
public class EnumerationPropertyItem
Represents an AnimationPropertiesItem that stores a
Color value.
| Constructor Summary | |
|---|---|
EnumerationPropertyItem()
|
|
EnumerationPropertyItem(java.lang.String defaultChoice,
java.util.Vector<java.lang.String> availableChoices)
Sets the default value to defValue. |
|
EnumerationPropertyItem(java.util.Vector<java.lang.String> choices)
Sets the color to green (default). |
|
| Method Summary | |
|---|---|
void |
accept(Visitor v)
Defines the interface for a Visitor to access a Visitable. |
java.lang.Object |
clone()
Clones the element |
java.util.Vector<java.lang.String> |
get()
Returns a represantation of the internal value. |
boolean |
set(java.lang.String value)
Sets the internal value to a new one, if this object contains a String value. |
| Methods inherited from class algoanim.properties.items.AnimationPropertyItem |
|---|
set, set, set, set, set |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EnumerationPropertyItem(java.lang.String defaultChoice,
java.util.Vector<java.lang.String> availableChoices)
defaultChoice - the default color.availableChoices - the vector of possible choicespublic EnumerationPropertyItem()
public EnumerationPropertyItem(java.util.Vector<java.lang.String> choices)
| Method Detail |
|---|
public java.util.Vector<java.lang.String> get()
AnimationPropertyItem
get in class AnimationPropertyItemAnimationPropertyItem.get()
public boolean set(java.lang.String value)
throws java.lang.IllegalArgumentException
AnimationPropertyItemString value.
set in class AnimationPropertyItemvalue - a new String value.
java.lang.IllegalArgumentExceptionAnimationPropertyItem.set(java.awt.Color)public java.lang.Object clone()
clone in class AnimationPropertyItemAnimationProperties.fillAdditional()public void accept(Visitor v)
Visitable
accept in interface Visitableaccept in class AnimationPropertyItemv - the visitorVisitable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||