public interface Function
This interface has sub-interfaces specific to the type of function.
Modifier and Type | Method and Description |
---|---|
Class<? extends Element> |
getElementClass()
Returns the element class this function will be applied to.
|
Graph |
getGraph()
Returns the graph this function is based on.
|
<T extends Transformer> |
getTransformer()
Returns the transformer associated with this function.
|
TransformerUI |
getUI()
Returns the transformer user interface associated with this function.
|
boolean |
isAttribute()
Returns true if this function is based on attribute column.
|
boolean |
isPartition()
Returns true if this function is a partition function.
|
boolean |
isRanking()
Returns true if this function is a ranking function.
|
boolean |
isSimple()
Returns true if this function is a simple function.
|
void |
transform(Element element,
Graph graph)
Transforms the given element.
|
void transform(Element element, Graph graph)
element
- element to transformgraph
- the graph this element belongs to<T extends Transformer> T getTransformer()
T
- transformer classTransformerUI getUI()
boolean isSimple()
If true, this instance can be casted to SimpleFunction
.
boolean isAttribute()
If true, this instance can be casted to AttributeFunction
.
boolean isRanking()
If true, this instance can be casted to RankingFunction
.
boolean isPartition()
If true, this instance can be casted to PartitionFunction
.
Graph getGraph()
Copyright © 2007–2017 Gephi Consortium. All rights reserved.