|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DynamicController
This controller maintains the dynamic models, one per Workspace
.
It is a service and can therefore be found in Lookup:
DynamicController dc = Lookup.getDefault().lookup(DynamicController.class);
Method Summary | |
---|---|
void |
addModelListener(DynamicModelListener listener)
Adds listener to the listeners of this model. |
DynamicModel |
getModel()
Returns the dynamic model for the current workspace, or null
if the project is empty. |
DynamicModel |
getModel(Workspace workspace)
Returns the dynamic model for the given workspace . |
void |
removeModelListener(DynamicModelListener listener)
Removes listener to the listeners of this model. |
void |
setEstimator(Estimator estimator)
Sets the current ESTIMATOR used to get values from
DynamicType . |
void |
setNumberEstimator(Estimator estimator)
Sets the current number ESTIMATOR used to get values from
DynamicType . |
void |
setTimeFormat(DynamicModel.TimeFormat timeFormat)
Sets the current time format. |
void |
setVisibleInterval(double low,
double high)
Sets the time interval wrapped by the DynamicGraph of
the current workspace. |
void |
setVisibleInterval(TimeInterval interval)
Sets the time interval wrapped by the DynamicGraph of
the current workspace. |
Method Detail |
---|
DynamicModel getModel()
null
if the project is empty.
DynamicModel getModel(Workspace workspace)
workspace
.
workspace
- the workspace that dynamic model is to be returned
workspace
's dynamic model.void setVisibleInterval(TimeInterval interval)
DynamicGraph
of
the current workspace.
interval
- an object to get endpoints fromvoid setVisibleInterval(double low, double high)
DynamicGraph
of
the current workspace.
low
- the left endpointhigh
- the right endpointvoid setTimeFormat(DynamicModel.TimeFormat timeFormat)
timeFormat
- the time format that is to be set as currentvoid setEstimator(Estimator estimator)
ESTIMATOR
used to get values from
DynamicType
. Default is Estimator.FIRST
.
estimator
- the estimator that is to be setvoid setNumberEstimator(Estimator estimator)
ESTIMATOR
used to get values from
DynamicType
. Default is Estimator.AVERAGE
.
estimator
- the number estimator that is to be setvoid addModelListener(DynamicModelListener listener)
listener
to the listeners of this model. It receives
events when model is changed.
listener
- the listener that is to be addedvoid removeModelListener(DynamicModelListener listener)
listener
to the listeners of this model.
listener
- the listener that is to be removed
|
Gephi Toolkit Javadoc | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |