|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsyn3d.data.SceneGraphData
public abstract class SceneGraphData
Class description ...
Nested Class Summary | |
---|---|
protected static class |
SceneGraphData.SourceHolder
|
Field Summary | |
---|---|
protected EndNotificationListener |
delegateListener
|
protected boolean |
editable
|
protected SceneGraphData.SourceHolder[] |
sources
|
Constructor Summary | |
---|---|
SceneGraphData()
Create a SceneGraphData linked with a SceneGraphObject |
Method Summary | |
---|---|
abstract void |
apply()
Apply data to the node |
java.lang.Object |
clone()
|
void |
DataSourceIndexRangeChanged(DataSource ds,
long startIndex,
long lastIndex)
Called when the range of valid index changed |
void |
DataSourceInfoChanged(DataSource ds,
DataInfo newInfo)
Called when the information about the data source changed |
void |
DataSourceOrderChanged(DataSource ds,
int newOrder)
If defined, called when the order of the source changed. |
void |
DataSourceReplaced(DataSource oldData,
DataSource newData)
Called when a data source is replaced by another one |
void |
DataSourceValueChanged(DataSource ds,
long minIndex,
long maxIndex)
Called when at least a value changed in the data source. |
void |
DataSourceValueRangeChanged(DataSource ds)
Called when the range of possible values changed, if defined. |
void |
dispose()
Cleanup anything that could possibly help the garbage collector. |
DataSource |
getDataSource(int index)
Get data source |
EndNotificationListener |
getDelegateListener()
|
abstract void |
init()
Initialize data with the node current values |
boolean |
isEditable()
|
int |
length()
Get number of fields for this data |
void |
notificationEnd(java.lang.Object referer)
This callback is called after all notifications were processed. |
void |
removeSceneGraphData()
|
void |
setDataSource(int index,
DataSource d)
Set data source |
void |
setDelegateListener(EndNotificationListener delegateListener)
Setting a delegate end notification listener is quite important to avoid duplicate events. |
void |
setEditable(boolean flag)
|
void |
updateFrom(SceneGraphData dataCopy)
Inverse operation from clone() Update this data from the content of another one |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected transient SceneGraphData.SourceHolder[] sources
protected transient EndNotificationListener delegateListener
setDelegateListener
protected boolean editable
Constructor Detail |
---|
public SceneGraphData()
Method Detail |
---|
public boolean isEditable()
public void setEditable(boolean flag)
public EndNotificationListener getDelegateListener()
public void setDelegateListener(EndNotificationListener delegateListener)
delegateListener
- The delegateListener to set.public void removeSceneGraphData()
public int length()
public DataSource getDataSource(int index)
index
- = field number 0..length-1public void setDataSource(int index, DataSource d)
index
- = field number 0..length-1d
- new value for the DataSourcepublic abstract void init()
public abstract void apply()
public void DataSourceIndexRangeChanged(DataSource ds, long startIndex, long lastIndex)
DataSourceListener
DataSourceIndexRangeChanged
in interface DataSourceListener
ds
- The data source that changedstartIndex
- The new start IndexlastIndex
- The new last indexpublic void DataSourceReplaced(DataSource oldData, DataSource newData)
DataSourceListener
DataSourceReplaced
in interface DataSourceListener
public void DataSourceInfoChanged(DataSource ds, DataInfo newInfo)
DataSourceListener
DataSourceInfoChanged
in interface DataSourceListener
ds
- The data source that changedpublic void DataSourceOrderChanged(DataSource ds, int newOrder)
DataSourceListener
DataSourceOrderChanged
in interface DataSourceListener
ds
- The data source that changedpublic void DataSourceValueChanged(DataSource ds, long minIndex, long maxIndex)
DataSourceListener
DataSourceValueChanged
in interface DataSourceListener
ds
- The data source that changedminIndex
- Lower bound of the range where values changedmaxIndex
- Higher bound of the range where values changedpublic void DataSourceValueRangeChanged(DataSource ds)
DataSourceListener
DataSourceValueRangeChanged
in interface DataSourceListener
ds
- The data source that changedpublic void notificationEnd(java.lang.Object referer)
EndNotificationListener
notificationEnd
in interface EndNotificationListener
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
public void updateFrom(SceneGraphData dataCopy)
public void dispose()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |