Gephi Toolkit Javadoc

org.gephi.preview.plugin.builders
Class EdgeLabelBuilder

java.lang.Object
  extended by org.gephi.preview.plugin.builders.EdgeLabelBuilder
All Implemented Interfaces:
ItemBuilder

public class EdgeLabelBuilder
extends java.lang.Object
implements ItemBuilder

Author:
Mathieu Bastian

Field Summary
 
Fields inherited from interface org.gephi.preview.spi.ItemBuilder
EDGE_BUILDER, EDGE_LABEL_BUILDER, NODE_BUILDER, NODE_LABEL_BUILDER
 
Constructor Summary
EdgeLabelBuilder()
           
 
Method Summary
 Item[] getItems(Graph graph, AttributeModel attributeModel)
          Build items from the graph and attributeModel.
 java.lang.String getType()
          Returns the type of this builder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeLabelBuilder

public EdgeLabelBuilder()
Method Detail

getItems

public Item[] getItems(Graph graph,
                       AttributeModel attributeModel)
Description copied from interface: ItemBuilder
Build items from the graph and attributeModel.

Specified by:
getItems in interface ItemBuilder
Parameters:
graph - the graph to build items from
attributeModel - the attribute model associated to the graph
Returns:
an array of new items, from the same type returned by ItemBuilder.getType()

getType

public java.lang.String getType()
Description copied from interface: ItemBuilder
Returns the type of this builder.

The type should always match the type of Item the builder is building. For instance if the builder is building Item.Node type, this method should return Item.Node.

Specified by:
getType in interface ItemBuilder
Returns:
the builder item type.

Gephi Toolkit Javadoc