Package org.gephi.appearance.api
Interface AppearanceModel
-
public interface AppearanceModelEntry point to access the appearance functions.One model exists for each workspace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAppearanceModel.GraphFunctionIdentifies the non-column-based functions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FunctiongetEdgeFunction(Column column, Class<? extends Transformer> transformer)Returns the edge function for the given column and transformer.Function[]getEdgeFunctions()Returns all edge functions for the given graph.PartitiongetEdgePartition(Column column)Returns the edge partition for this column.GraphModelgetGraphModel()Returns the graph model this model is associated with.FunctiongetNodeFunction(Column column, Class<? extends Transformer> transformer)Returns the node function for the given column and transformer.Function[]getNodeFunctions()Returns all node functions for the given graph.PartitiongetNodePartition(Column column)Returns the node partition for thid column.WorkspacegetWorkspace()Return the workspace this model is associated withbooleanisPartitionLocalScale()Returnstrueif partitions are using the currently visible graph as a source.booleanisRankingLocalScale()Returnstrueif rankings are using the currently visible graph as a scale.booleanisTransformNullValues()Returnstrueif null values are considered in functions.
-
-
-
Method Detail
-
getWorkspace
Workspace getWorkspace()
Return the workspace this model is associated with- Returns:
- the workspace of this model
-
isRankingLocalScale
boolean isRankingLocalScale()
Returnstrueif rankings are using the currently visible graph as a scale. Iffalsethe complete graph is used to determine minimum and maximum values.- Returns:
trueif using a local scale,falseif global scale
-
isPartitionLocalScale
boolean isPartitionLocalScale()
Returnstrueif partitions are using the currently visible graph as a source. Iffalsethe complete graph is used to determine partitions.- Returns:
trueif using a local scale,falseif global scale
-
isTransformNullValues
boolean isTransformNullValues()
Returnstrueif null values are considered in functions. Iffalseelements with null values will be transformed as well. Default value isfalse.When using a ranking function, null values will receive the lowest normalised value.
- Returns:
trueif null values are transformed,falseotherwise
-
getNodePartition
Partition getNodePartition(Column column)
Returns the node partition for thid column.- Parameters:
column- column- Returns:
- node partition of null if it doesn't exist
-
getEdgePartition
Partition getEdgePartition(Column column)
Returns the edge partition for this column.- Parameters:
column- column- Returns:
- edge partition of null if it doesn't exist
-
getNodeFunctions
Function[] getNodeFunctions()
Returns all node functions for the given graph.- Returns:
- all node functions
-
getNodeFunction
Function getNodeFunction(Column column, Class<? extends Transformer> transformer)
Returns the node function for the given column and transformer.- Parameters:
column- columntransformer- transformer- Returns:
- node function or null if not found
-
getEdgeFunction
Function getEdgeFunction(Column column, Class<? extends Transformer> transformer)
Returns the edge function for the given column and transformer.- Parameters:
column- columntransformer- transformer- Returns:
- edge function or null if not found
-
getEdgeFunctions
Function[] getEdgeFunctions()
Returns all edge functions for the given graph.- Returns:
- all edge functions
-
getGraphModel
GraphModel getGraphModel()
Returns the graph model this model is associated with.- Returns:
- the graph model
-
-