Package org.gephi.appearance
Class GraphFunctionImpl
- java.lang.Object
-
- org.gephi.appearance.FunctionImpl
-
- org.gephi.appearance.GraphFunctionImpl
-
- All Implemented Interfaces:
Function,GraphFunction,PartitionFunction,RankingFunction
public class GraphFunctionImpl extends FunctionImpl implements GraphFunction, RankingFunction, PartitionFunction
- Author:
- mbastian
-
-
Field Summary
Fields Modifier and Type Field Description private StringdisplayNameprivate AppearanceModel.GraphFunctiongraphFunction-
Fields inherited from class org.gephi.appearance.FunctionImpl
column, elementClass, lastGraph, lastTransformNullValues, model, name, partition, ranking, transformer, transformerUI, version
-
-
Constructor Summary
Constructors Constructor Description GraphFunctionImpl(AppearanceModelImpl model, AppearanceModel.GraphFunction graphFunction, String name, String displayName, Class<? extends org.gephi.graph.api.Element> elementClass, Transformer transformer, TransformerUI transformerUI, PartitionImpl partition)GraphFunctionImpl(AppearanceModelImpl model, AppearanceModel.GraphFunction graphFunction, String name, String displayName, Class<? extends org.gephi.graph.api.Element> elementClass, Transformer transformer, TransformerUI transformerUI, RankingImpl ranking)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppearanceModel.GraphFunctiongetGraphFunction()InterpolatorgetInterpolator()Returns the interpolator.PartitionImplgetPartition()Returns the partition configuration associated with this function.RankingImplgetRanking()Returns the ranking configuration associated with this function.voidsetInterpolator(Interpolator interpolator)Sets the interpolator for this function.StringtoString()-
Methods inherited from class org.gephi.appearance.FunctionImpl
equals, getElementClass, getGraph, getId, getModel, getTransformer, getUI, hasChanged, hashCode, isAttribute, isPartition, isRanking, isSimple, isValid, transform, transformAll
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gephi.appearance.api.Function
getElementClass, getGraph, getId, getModel, getTransformer, getUI, hasChanged, isAttribute, isPartition, isRanking, isSimple, isValid, transform, transformAll
-
-
-
-
Field Detail
-
displayName
private final String displayName
-
graphFunction
private final AppearanceModel.GraphFunction graphFunction
-
-
Constructor Detail
-
GraphFunctionImpl
public GraphFunctionImpl(AppearanceModelImpl model, AppearanceModel.GraphFunction graphFunction, String name, String displayName, Class<? extends org.gephi.graph.api.Element> elementClass, Transformer transformer, TransformerUI transformerUI, RankingImpl ranking)
-
GraphFunctionImpl
public GraphFunctionImpl(AppearanceModelImpl model, AppearanceModel.GraphFunction graphFunction, String name, String displayName, Class<? extends org.gephi.graph.api.Element> elementClass, Transformer transformer, TransformerUI transformerUI, PartitionImpl partition)
-
-
Method Detail
-
getGraphFunction
public AppearanceModel.GraphFunction getGraphFunction()
- Specified by:
getGraphFunctionin interfaceGraphFunction
-
getInterpolator
public Interpolator getInterpolator()
Description copied from interface:RankingFunctionReturns the interpolator.By default, a
Interpolator.LINEARis used so no transformation is operated.- Specified by:
getInterpolatorin interfaceRankingFunction- Returns:
- interpolator
-
setInterpolator
public void setInterpolator(Interpolator interpolator)
Description copied from interface:RankingFunctionSets the interpolator for this function.- Specified by:
setInterpolatorin interfaceRankingFunction- Parameters:
interpolator- interpolator
-
getPartition
public PartitionImpl getPartition()
Description copied from interface:PartitionFunctionReturns the partition configuration associated with this function.- Specified by:
getPartitionin interfacePartitionFunction- Returns:
- partition
-
getRanking
public RankingImpl getRanking()
Description copied from interface:RankingFunctionReturns the ranking configuration associated with this function.- Specified by:
getRankingin interfaceRankingFunction- Returns:
- ranking
-
toString
public String toString()
- Overrides:
toStringin classFunctionImpl
-
-