public class EdgeTypePartitionImpl extends PartitionImpl
| Constructor and Description |
|---|
EdgeTypePartitionImpl(org.gephi.graph.api.Graph graph) |
| Modifier and Type | Method and Description |
|---|---|
int |
count(Object value)
Returns the number of elements for the given value.
|
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.
|
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 EdgeTypePartitionImpl(org.gephi.graph.api.Graph graph)
public Collection getValues()
Partitionpublic 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 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.