public class AttributePartitionImpl extends PartitionImpl
| Constructor and Description |
|---|
AttributePartitionImpl(org.gephi.graph.api.Column column,
org.gephi.graph.api.Graph graph) |
AttributePartitionImpl(org.gephi.graph.api.Column column,
org.gephi.graph.api.Index index) |
| Modifier and Type | Method and Description |
|---|---|
int |
count(Object value)
Returns the number of elements for the given value.
|
boolean |
equals(Object obj) |
org.gephi.graph.api.Column |
getColumn()
Returns the column associated with this partition.
|
int |
getElementCount()
Returns the number of elements that have a value in this partition.
|
Object |
getValue(org.gephi.graph.api.Element element,
org.gephi.graph.api.Graph gr)
Returns the element's value for this partition.
|
Collection |
getValues()
Returns the collection of values this partition represents.
|
int |
hashCode() |
float |
percentage(Object value)
Returns the percentage of elements with the given value.
|
int |
size()
Returns the number of values this partition represents.
|
getColor, getSortedValues, setColor, setColorspublic AttributePartitionImpl(org.gephi.graph.api.Column column,
org.gephi.graph.api.Index index)
public AttributePartitionImpl(org.gephi.graph.api.Column column,
org.gephi.graph.api.Graph graph)
public Object getValue(org.gephi.graph.api.Element element, org.gephi.graph.api.Graph gr)
Partitionelement - element to get the value forgr - graph this element belongs topublic Collection getValues()
Partitionpublic int getElementCount()
Partitionpublic int count(Object value)
Partitionvalue - valuepublic float percentage(Object value)
Partitionvalue - valuepublic int size()
Partitionpublic org.gephi.graph.api.Column getColumn()
PartitionCopyright © 2007–2017. All rights reserved.