org.graffiti.attributes
Interface AttributeConsumer


public interface AttributeConsumer

Interfaces an object, which depends on the presence of a set of attributes. An attribute consumer specifies, which attributes should be available in a node, edge and graph object. Each time, a node or an edge is created, the specified attributes will be created by the graph instance. E.g.: a 2D view depends on some graphics attributes ("graphics") in every node and edge object. It implements this interface and returns a CollectionAttribute of these attributes and their default values:

 public CollectionAttribute getNodeAttribute() {
     return new NodeGraphicAttribute();
 }
 
 public CollectionAttribute getEdgeAttribute() {
     return new EdgeGraphicAttribute();
 }
 
Every time, a new node- or edge-object is created, it will contain (deep-)copies of these collection attributes.

Version:
$Revision: 5767 $

Method Summary
 CollectionAttribute getDirectedEdgeAttribute()
          Returns the attribute, which should be available in a directed edge object.
 CollectionAttribute getGraphAttribute()
          Returns the attribute, which should be available in a graph object.
 CollectionAttribute getNodeAttribute()
          Returns the attribute, which should be available in a node object.
 CollectionAttribute getUndirectedEdgeAttribute()
          Returns the attribute, which should be available in an undirected edge object.
 

Method Detail

getUndirectedEdgeAttribute

CollectionAttribute getUndirectedEdgeAttribute()
Returns the attribute, which should be available in an undirected edge object. May return null.

Returns:
DOCUMENT ME!

getDirectedEdgeAttribute

CollectionAttribute getDirectedEdgeAttribute()
Returns the attribute, which should be available in a directed edge object. May return null.

Returns:
DOCUMENT ME!

getGraphAttribute

CollectionAttribute getGraphAttribute()
Returns the attribute, which should be available in a graph object. May return null.

Returns:
DOCUMENT ME!

getNodeAttribute

CollectionAttribute getNodeAttribute()
Returns the attribute, which should be available in a node object. May return null.

Returns:
DOCUMENT ME!


Generated at 2012-05-30 11:00:14 PM CEST