Package org.gephi.appearance
Class AppearanceControllerImpl
- java.lang.Object
-
- org.gephi.appearance.AppearanceControllerImpl
-
- All Implemented Interfaces:
AppearanceController,org.gephi.project.spi.Controller<AppearanceModelImpl>
public class AppearanceControllerImpl extends Object implements AppearanceController, org.gephi.project.spi.Controller<AppearanceModelImpl>
- Author:
- mbastian
-
-
Constructor Summary
Constructors Constructor Description AppearanceControllerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppearanceModelImplgetModel()Returns the appearance model for the current workspace.AppearanceModelImplgetModel(org.gephi.project.api.Workspace workspace)Returns the appearance model for the given workspace.Class<AppearanceModelImpl>getModelClass()TransformergetTransformer(TransformerUI ui)Returns the transformer associated with the given transformer UI.AppearanceModelImplnewModel(org.gephi.project.api.Workspace workspace)voidsetTransformNullValues(boolean transformNullValues)Sets whether elements withnullvalues are also transformed.voidsetUsePartitionLocalScale(boolean useLocalScale)Sets whether partitions use a local or a global scale.voidsetUseRankingLocalScale(boolean useLocalScale)Sets whether rankings use a local or a global scale.voidtransform(Function function)Apply the function's transformer.
-
-
-
Method Detail
-
newModel
public AppearanceModelImpl newModel(org.gephi.project.api.Workspace workspace)
- Specified by:
newModelin interfaceorg.gephi.project.spi.Controller<AppearanceModelImpl>
-
transform
public void transform(Function function)
Description copied from interface:AppearanceControllerApply the function's transformer. If the function is for nodes all nodes in the visible graph will be transformed. Similarly for edges.- Specified by:
transformin interfaceAppearanceController- Parameters:
function- function to transform
-
getModelClass
public Class<AppearanceModelImpl> getModelClass()
- Specified by:
getModelClassin interfaceorg.gephi.project.spi.Controller<AppearanceModelImpl>
-
getModel
public AppearanceModelImpl getModel()
Description copied from interface:AppearanceControllerReturns the appearance model for the current workspace.- Specified by:
getModelin interfaceAppearanceController- Specified by:
getModelin interfaceorg.gephi.project.spi.Controller<AppearanceModelImpl>- Returns:
- appearance model
-
getModel
public AppearanceModelImpl getModel(org.gephi.project.api.Workspace workspace)
Description copied from interface:AppearanceControllerReturns the appearance model for the given workspace.- Specified by:
getModelin interfaceAppearanceController- Specified by:
getModelin interfaceorg.gephi.project.spi.Controller<AppearanceModelImpl>- Parameters:
workspace- workspace- Returns:
- appearance model
-
getTransformer
public Transformer getTransformer(TransformerUI ui)
Description copied from interface:AppearanceControllerReturns the transformer associated with the given transformer UI.- Specified by:
getTransformerin interfaceAppearanceController- Parameters:
ui- user interface instance- Returns:
- transformer instance or null if not found
-
setUseRankingLocalScale
public void setUseRankingLocalScale(boolean useLocalScale)
Description copied from interface:AppearanceControllerSets whether rankings use a local or a global scale. When calculating the minimum and maximum value (i.e. the scale) rankings can use the complete graph or only the currently visible graph. When using the visible graph it is called the local scale.- Specified by:
setUseRankingLocalScalein interfaceAppearanceController- Parameters:
useLocalScale-truefor local,falsefor global
-
setUsePartitionLocalScale
public void setUsePartitionLocalScale(boolean useLocalScale)
Description copied from interface:AppearanceControllerSets whether partitions use a local or a global scale. When calculating the partitions it can use the complete graph or only the currently visible graph. When using the visible graph it is called the local scale.- Specified by:
setUsePartitionLocalScalein interfaceAppearanceController- Parameters:
useLocalScale-truefor local,falsefor global
-
setTransformNullValues
public void setTransformNullValues(boolean transformNullValues)
Description copied from interface:AppearanceControllerSets whether elements withnullvalues are also transformed. Default value isfalse/- Specified by:
setTransformNullValuesin interfaceAppearanceController- Parameters:
transformNullValues-trueto transform also null values,falseto ignore
-
-