algoanim.properties.items
Class DoublePropertyItem

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

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

Represents an AnimationPropertiesItem that stores a double value.

Author:
T. Ackermann

Constructor Summary
DoublePropertyItem()
           
 
Method Summary
 void accept(Visitor v)
          Defines the interface for a Visitor to access a Visitable.
 java.lang.Object clone()
          Clones the element
 java.lang.Object get()
          Returns a represantation of the internal value.
 boolean set(double value)
          Sets the internal value to the given double value.
 boolean set(java.lang.Double value)
          Sets the internal value to the given double value.
 
Methods inherited from class algoanim.properties.items.AnimationPropertyItem
set, set, set, set, set, set
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoublePropertyItem

public DoublePropertyItem()
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(double value)
Sets the internal value to the given double value.

Parameters:
value - the new value.
Returns:
true, if no error occurred.

set

public boolean set(java.lang.Double value)
Sets the internal value to the given double value.

Parameters:
value - the new value (as a Double).
Returns:
true, if no error occurred.

clone

public java.lang.Object clone()
Clones the element

Overrides:
clone in class AnimationPropertyItem
Returns:
a clone of this element
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