Package org.gephi.appearance
Class PartitionImpl
- java.lang.Object
-
- org.gephi.appearance.PartitionImpl
-
- All Implemented Interfaces:
Partition
- Direct Known Subclasses:
AttributePartitionImpl,EdgeTypePartitionImpl
public abstract class PartitionImpl extends Object implements Partition
- Author:
- mbastian
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedPartitionImpl()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ColorgetColor(Object value)Returns the color for the given value.CollectiongetSortedValues(org.gephi.graph.api.Graph graph)Returns the same collection asPartition.getValues(Graph graph)but sorted descendant in counts.abstract ClassgetValueType()abstract intgetVersion(org.gephi.graph.api.Graph graph)abstract booleanisValid(org.gephi.graph.api.Graph graph)voidsetColor(Object value, Color color)Sets the color for the given value.voidsetColors(org.gephi.graph.api.Graph graph, Color[] colors)Sets the colors for all values.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gephi.appearance.api.Partition
count, getColumn, getElementCount, getValue, getValues, percentage, size
-
-
-
-
Method Detail
-
getColor
public Color getColor(Object value)
Description copied from interface:PartitionReturns the color for the given value.
-
setColor
public void setColor(Object value, Color color)
Description copied from interface:PartitionSets the color for the given value.
-
setColors
public void setColors(org.gephi.graph.api.Graph graph, Color[] colors)Description copied from interface:PartitionSets the colors for all values. It uses the descending value count as order fromgetSortedValues().
-
getSortedValues
public Collection getSortedValues(org.gephi.graph.api.Graph graph)
Description copied from interface:PartitionReturns the same collection asPartition.getValues(Graph graph)but sorted descendant in counts.- Specified by:
getSortedValuesin interfacePartition- Parameters:
graph- graph this partition applies to- Returns:
- sorted values
-
isValid
public abstract boolean isValid(org.gephi.graph.api.Graph graph)
-
getValueType
public abstract Class getValueType()
-
getVersion
public abstract int getVersion(org.gephi.graph.api.Graph graph)
-
-