jsynoptic.plugins.java3d.data
Class DoubleDataAnimator.DoubleData

java.lang.Object
  extended by jsynoptic.plugins.java3d.data.DataAnimator.Data
      extended by jsynoptic.plugins.java3d.data.DoubleDataAnimator.DoubleData
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, DataSourceListener, EndNotificationListener
Direct Known Subclasses:
TransformData
Enclosing class:
DoubleDataAnimator

public static class DoubleDataAnimator.DoubleData
extends DataAnimator.Data

See Also:
Serialized Form

Field Summary
protected  double[] params
           
 
Fields inherited from class jsynoptic.plugins.java3d.data.DataAnimator.Data
_delegateListener, _sources
 
Constructor Summary
DoubleDataAnimator.DoubleData()
           
 
Method Summary
 void apply()
           
 java.lang.Object clone()
           
 void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
          Called when the range of valid index changed
 void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
          Called when at least a value changed in the data source.
 void dispose()
          Cleanup anything that could possibly help the garbage collector.
 double getValue(int index)
          Get value
 void set(double[] values, DataSource[] d)
           
 void setValue(int index, double v)
          Set value
 void updateFrom(DataAnimator.Data dataCopy)
          Inverse operation from clone() Update this data from the content of another one
 
Methods inherited from class jsynoptic.plugins.java3d.data.DataAnimator.Data
DataSourceInfoChanged, DataSourceOrderChanged, DataSourceReplaced, DataSourceValueRangeChanged, getDataSource, getDelegateListener, getReferences, length, notificationEnd, removeSceneGraphData, setDataSource, setDelegateListener
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

params

protected double[] params
Constructor Detail

DoubleDataAnimator.DoubleData

public DoubleDataAnimator.DoubleData()
Method Detail

getValue

public double getValue(int index)
Get value

Parameters:
index - = field number 0..length-1
Returns:
value for this field

setValue

public void setValue(int index,
                     double v)
Set value

Parameters:
index - = field number 0..length-1
v - = new value for this field

set

public void set(double[] values,
                DataSource[] d)

apply

public void apply()

DataSourceIndexRangeChanged

public void DataSourceIndexRangeChanged(DataSource ds,
                                        long startIndex,
                                        long lastIndex)
Description copied from interface: DataSourceListener
Called when the range of valid index changed

Specified by:
DataSourceIndexRangeChanged in interface DataSourceListener
Overrides:
DataSourceIndexRangeChanged in class DataAnimator.Data
Parameters:
ds - The data source that changed
startIndex - The new start Index
lastIndex - The new last index

DataSourceValueChanged

public void DataSourceValueChanged(DataSource ds,
                                   long minIndex,
                                   long maxIndex)
Description copied from interface: DataSourceListener
Called when at least a value changed in the data source. The listener shall then get the values in the given range again, if it is interested by the values in that range.

Specified by:
DataSourceValueChanged in interface DataSourceListener
Overrides:
DataSourceValueChanged in class DataAnimator.Data
Parameters:
ds - The data source that changed
minIndex - Lower bound of the range where values changed
maxIndex - Higher bound of the range where values changed

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class DataAnimator.Data
Throws:
java.lang.CloneNotSupportedException

updateFrom

public void updateFrom(DataAnimator.Data dataCopy)
Description copied from class: DataAnimator.Data
Inverse operation from clone() Update this data from the content of another one

Overrides:
updateFrom in class DataAnimator.Data

dispose

public void dispose()
Description copied from class: DataAnimator.Data
Cleanup anything that could possibly help the garbage collector. Ref counted listeners may be a good start...

Overrides:
dispose in class DataAnimator.Data