algoanim.properties.items
Class BooleanPropertyItem

java.lang.Object
  extended by algoanim.properties.items.AnimationPropertyItem
      extended by algoanim.properties.items.BooleanPropertyItem
All Implemented Interfaces:
Visitable, java.lang.Cloneable

public class BooleanPropertyItem
extends AnimationPropertyItem
implements java.lang.Cloneable, Visitable

Represents an AnimationPropertiesItem that stores a boolean value.

Author:
T. Ackermann

Constructor Summary
BooleanPropertyItem()
          Without parameter, the default value of the BooleanPropertyItem is false
BooleanPropertyItem(boolean defValue)
          Sets the default value to defValue.
 
Method Summary
 void accept(Visitor v)
          Defines the interface for a Visitor to access a Visitable.
 java.lang.Object clone()
          Clone the item
 boolean equals(java.lang.Object o)
           
 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.
 
Methods inherited from class algoanim.properties.items.AnimationPropertyItem
set, set, set, set, set
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BooleanPropertyItem

public BooleanPropertyItem(boolean defValue)
Sets the default value to defValue.

Parameters:
defValue - the default value.

BooleanPropertyItem

public BooleanPropertyItem()
Without parameter, the default value of the BooleanPropertyItem is false

Method Detail

get

public java.lang.Object get()
Description copied from class: AnimationPropertyItem
Returns a represantation of the internal value.

Specified by:
get in class AnimationPropertyItem
Returns:
A represantation of the internal value.
See Also:
AnimationPropertyItem.get()

set

public boolean set(boolean value)
            throws java.lang.IllegalArgumentException
Description copied from class: AnimationPropertyItem
Sets the internal value to a new one, if this object contains a boolean value.

Overrides:
set in class AnimationPropertyItem
Parameters:
value - a new boolean value.
Returns:
whether the operation was successful.
Throws:
java.lang.IllegalArgumentException
See Also:
AnimationPropertyItem.set(boolean)

clone

public java.lang.Object clone()
Clone the item

Overrides:
clone in class AnimationPropertyItem
See Also:
AnimationProperties.fillAdditional()

accept

public void accept(Visitor v)
Description copied from interface: Visitable
Defines the interface for a Visitor to access a Visitable.

Specified by:
accept in interface Visitable
Specified by:
accept in class AnimationPropertyItem
Parameters:
v - the visitor
See Also:
Visitable

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object