|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DataView
Title:
Description:
Copyright: Copyright (c) 2003
Company:
The DataView provides a view of the data that lets us see the data in different ways and provides useful convenience classes. The DataView is not shared between tools, and a given type of Data may have several different views. Every DataView should have a no argument constructor so that it can be used by the DataViewFactory. Additionally the DataView should be fully initialized after a call to setData(String name, Data data). DataViews are not required to be thread safe. External synchronization should occur on the DataView object and acquiring the lock for multiple DataView's at once is STRONGLY discouraged. If you must, they should be acquired in the natural order of the class name.
| Method Summary | |
|---|---|
void |
addedToModel(DataModel<?> model)
Notify this data that it was or will be added to the model. |
DataController |
getController(DataKey dataKey,
DoTarget target)
Get the controller for this DataView. |
Data |
getData()
Return the data object associated with this view. |
DataKey |
getDataKey()
Get the datakey for this view. |
int |
getInterval()
|
FileGroup |
getKey()
Return the key for this data. |
int |
getMaxTime()
|
int |
getMinTime()
|
Map<String,Object> |
getParameters()
Get all of the parameters |
DoTarget |
getTarget()
|
String |
getViewName()
Get a name that should identify this type of view, but not this individual view. |
boolean |
hasTime()
|
void |
removedFromModel()
Notify this data that it was removed from model. |
void |
setData(FileGroup dataKey,
Data data)
Initialize this view with the given data and the specified meta data (in the form of a map of tags). throw an ImmutableException if it is called more than once. |
void |
setDefaultParameters(Set<Tag> metadata)
Restore the defaults parameters. |
Object |
setParameter(String key,
Object parameter)
Set the given parameter to key, parameter. |
void |
setParameters(Map<String,Object> parameters)
Set the parameters to have only the data in parameters. |
void |
setTarget(DoTarget target)
|
| Method Detail |
|---|
void setData(FileGroup dataKey,
Data data)
throws ClassCastException
dataKey - data - tags - is a map of metadata.
ClassCastException - if data's class is the wrong type.Data getData()
void removedFromModel()
void addedToModel(DataModel<?> model)
DataController getController(DataKey dataKey,
DoTarget target)
dataKey - target - The target or null if the target remains unchanged
FileGroup getKey()
void setDefaultParameters(Set<Tag> metadata)
metadata - Use metadata to customize the view.void setParameters(Map<String,Object> parameters)
parameters.
parameters -
Object setParameter(String key,
Object parameter)
key - parameter -
Map<String,Object> getParameters()
String getViewName()
boolean hasTime()
int getMinTime()
int getMaxTime()
int getInterval()
DataKey getDataKey()
void setTarget(DoTarget target)
DoTarget getTarget()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||