|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectalgoanim.properties.items.AnimationPropertyItem
public abstract class AnimationPropertyItem
This class defines the base for the distinct PropertyItems,
which are responsible to hold exactly one instance of one value.
The method set() provides a definition for each PropertyItem.
The derived PropertyItem just overrides the method which belongs to its type.
Hence each try to set a PropertyItem to an invalid type results in
an IllegalArgumentException as preimplemented in this class.
| Constructor Summary | |
|---|---|
AnimationPropertyItem()
|
|
| Method Summary | |
|---|---|
abstract void |
accept(Visitor v)
Defines the interface for a Visitor to access a Visitable. |
java.lang.Object |
clone()
we need this because we clone the default value from the "normal" data value. |
abstract java.lang.Object |
get()
Returns a represantation of the internal value. |
boolean |
set(boolean value)
Sets the internal value to a new one, if this object contains a boolean value. |
boolean |
set(java.awt.Color value)
Sets the internal value to a new one, if this object contains a Color value. |
boolean |
set(java.awt.Font value)
Sets the internal value to a new one, if this object contains a Font value. |
boolean |
set(int value)
Sets the internal value to a new one, if this object contains an int value. |
boolean |
set(java.lang.Object value)
Sets the internal value to a new one, using an Object. |
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 java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AnimationPropertyItem()
| Method Detail |
|---|
public boolean set(int value)
throws java.lang.IllegalArgumentException
int value.
value - a new int value.
java.lang.IllegalArgumentException
public boolean set(java.lang.String value)
throws java.lang.IllegalArgumentException
String value.
value - a new String value.
java.lang.IllegalArgumentException
public boolean set(boolean value)
throws java.lang.IllegalArgumentException
boolean value.
value - a new boolean value.
java.lang.IllegalArgumentException
public boolean set(java.awt.Color value)
throws java.lang.IllegalArgumentException
Color value.
value - a new Color value.
java.lang.IllegalArgumentException
public boolean set(java.awt.Font value)
throws java.lang.IllegalArgumentException
Font value.
value - a new Font value.
java.lang.IllegalArgumentException
public boolean set(java.lang.Object value)
throws java.lang.IllegalArgumentException
value - the new value.
java.lang.IllegalArgumentException - if the item doesn't exist.public abstract java.lang.Object get()
public java.lang.Object clone()
clone in class java.lang.ObjectAnimationProperties.fillAdditional()public abstract void accept(Visitor v)
Visitable
accept in interface Visitablev - the visitorVisitable.accept(algoanim.properties.Visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||