Package org.gephi.appearance.api
Interface AppearanceModel
-
public interface AppearanceModel
Entry point to access the appearance functions.One model exists for each workspace.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AppearanceModel.GraphFunction
Identifies the non-column-based functions.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Function
getEdgeFunction(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.Partition
getEdgePartition(Column column)
Returns the edge partition for this column.GraphModel
getGraphModel()
Returns the graph model this model is associated with.Function
getNodeFunction(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.Partition
getNodePartition(Column column)
Returns the node partition for thid column.Workspace
getWorkspace()
Return the workspace this model is associated withboolean
isPartitionLocalScale()
Returnstrue
if partitions are using the currently visible graph as a source.boolean
isRankingLocalScale()
Returnstrue
if rankings are using the currently visible graph as a scale.boolean
isTransformNullValues()
Returnstrue
if 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()
Returnstrue
if rankings are using the currently visible graph as a scale. Iffalse
the complete graph is used to determine minimum and maximum values.- Returns:
true
if using a local scale,false
if global scale
-
isPartitionLocalScale
boolean isPartitionLocalScale()
Returnstrue
if partitions are using the currently visible graph as a source. Iffalse
the complete graph is used to determine partitions.- Returns:
true
if using a local scale,false
if global scale
-
isTransformNullValues
boolean isTransformNullValues()
Returnstrue
if null values are considered in functions. Iffalse
elements 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:
true
if null values are transformed,false
otherwise
-
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
-
-