public class RankingElementColorTransformer extends Object implements RankingTransformer<org.gephi.graph.api.Element>
| Modifier and Type | Class and Description |
|---|---|
static class |
RankingElementColorTransformer.LinearGradient |
| Constructor and Description |
|---|
RankingElementColorTransformer() |
| Modifier and Type | Method and Description |
|---|---|
float[] |
getColorPositions() |
Color[] |
getColors() |
RankingElementColorTransformer.LinearGradient |
getLinearGradient() |
boolean |
isEdge()
True if this transformer can be applied to edges.
|
boolean |
isNode()
True is this transformer can be applied to nodes.
|
void |
setColorPositions(float[] positions) |
void |
setColors(Color[] colors) |
void |
transform(org.gephi.graph.api.Element element,
Ranking ranking,
Interpolator interpolator,
Number value)
Transforms the given element based on the provided ranking parameters.
|
public void transform(org.gephi.graph.api.Element element,
Ranking ranking,
Interpolator interpolator,
Number value)
RankingTransformer
The ranking object contains the min and max value so the
ranked value can be calculated.
transform in interface RankingTransformer<org.gephi.graph.api.Element>element - element to transformranking - ranking configurationinterpolator - interpolatorvalue - element's value for this rankingpublic boolean isNode()
TransformerisNode in interface Transformerpublic boolean isEdge()
TransformerisEdge in interface Transformerpublic float[] getColorPositions()
public Color[] getColors()
public void setColorPositions(float[] positions)
public void setColors(Color[] colors)
public RankingElementColorTransformer.LinearGradient getLinearGradient()
Copyright © 2007–2017. All rights reserved.