|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.cau.cs.kieler.kvid.data.DataObject
public class DataObject
Class for storing all important data for KViD to visualize.
Constructor Summary | |
---|---|
DataObject(KvidUri theURI,
String thedata)
Constructor for a DataObject, knowing the URI and the data. |
|
DataObject(KvidUri theURI,
String thedata,
boolean doSaveHistory)
Constructor for a DataObject, knowing the URI and the data, additionally enables or disables history save mode. |
|
DataObject(KvidUri theURI,
String thedata,
List<List<Point>> thepaths)
Constructor for a DataObject, knowing the URI and the data, additionally sets one or more animation and display paths. |
Method Summary | |
---|---|
void |
clearHistory()
Clears the history. |
String |
getData()
Method to receive the data of this DataObject. |
int |
getHistoryLength()
Checks the number of currently saved history values. |
Object |
getHistoryValue(int which)
Method to get a certain history value. |
List<List<Point>> |
getPaths()
Method to get the paths which this DataObject's visual representation will follow during animation. |
KvidUri |
getUri()
Method to get the URI of the referred model element. |
void |
setSaveHistory(boolean doSaveHistory)
Enables or disables history save functionality. |
void |
updateData(String thedata)
Method to use when new data available for the referred model element. |
void |
updatePaths(List<List<Point>> thepaths)
Method to update the paths which this DataObject's visual representation will follow during animation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DataObject(KvidUri theURI, String thedata)
theURI
- The URI to identify the referred model elementthedata
- The data to associate with the referred model elementpublic DataObject(KvidUri theURI, String thedata, boolean doSaveHistory)
theURI
- The URI to identify the referred model elementthedata
- The data to associate with the referred model elementdoSaveHistory
- Whether history should be saved (true) or not (false)public DataObject(KvidUri theURI, String thedata, List<List<Point>> thepaths)
theURI
- The URI to identify the referred model elementthedata
- The data to associate with the referred model elementthepaths
- List of paths (represented by a list of draw2d Point
s) which
the data animation should follow or use for positioningMethod Detail |
---|
public String getData()
String
representing the data of this DataObjectpublic void updateData(String thedata)
thedata
- The new datapublic KvidUri getUri()
public List<List<Point>> getPaths()
Point
s)public void updatePaths(List<List<Point>> thepaths)
thepaths
- A list of paths (which are lists of Point
s)public void setSaveHistory(boolean doSaveHistory)
doSaveHistory
- Whether to enable (true) or disable (false) history savingpublic int getHistoryLength()
public Object getHistoryValue(int which)
which
- Index of the history value to get
public void clearHistory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |