|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface RankingController
Controller that maintains the ranking models, one per workspace.
This controller is a service and can therefore be found in Lookup:
RankingController rc = Lookup.getDefault().lookup(RankingController.class);
Use transform() to apply transformers on ranking's elements. Transform
is a one shot action. For continuous transformation, start an auto transformer
using startAutoTransform().
RankingModel| Method Summary | |
|---|---|
RankingModel |
getModel()
Returns the ranking model of the current workspace. |
RankingModel |
getModel(Workspace workspace)
Returns the ranking model of workspace. |
void |
setInterpolator(Interpolator interpolator)
Sets the interpolator to be used when transforming values. |
void |
setUseLocalScale(boolean useLocalScale)
Sets whether rankings use a local or a global scale. |
void |
startAutoTransform(Ranking ranking,
Transformer transformer)
Starts an auto transformation using ranking and
transformer. |
void |
stopAutoTransform(Transformer transformer)
Stops the auto transformation of transfromer. |
void |
transform(Ranking ranking,
Transformer transformer)
Apply the transformation of transformer on ranking. |
| Method Detail |
|---|
RankingModel getModel()
RankingModel getModel(Workspace workspace)
workspace. If it doesn't exists,
it creates one and put it in the workspace.
workspace - the workspace containing the model
void setInterpolator(Interpolator interpolator)
Default interpolator implementations can be found in the Interpolator
class.
interpolator - the interpolator to use for transformation.void setUseLocalScale(boolean useLocalScale)
useLocalScale - true for local, false for global
void transform(Ranking ranking,
Transformer transformer)
transformer on ranking.
The transformer will modify element's color or size according to the values
returned by the ranking. Before passing values to the transformer, they may
be transformer by the current interpolator.
ranking - the ranking to give to the transformertransformer - the transformer to apply on the ranking's elements
void startAutoTransform(Ranking ranking,
Transformer transformer)
ranking and
transformer. The transformation is continuously applied to
the current graph. The operation is the same as transform(),
except it is applied in a loop until stopAutoTransform() is
called.
Note that auto transformation work only in the current workspace and are paused when the workspace is not current.
ranking - the ranking to give to the transformertransformer - the transformer to apply on the ranking's elementsvoid stopAutoTransform(Transformer transformer)
transfromer.
transformer - the transformer to stop auto transformation
|
Gephi Toolkit Javadoc | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||