yext.graphml.writer
Class AttrDataProviderOutputHandler

java.lang.Object
  extended byorg.graphdrawing.graphml.attr.AttributeOutputHandler
      extended byyext.graphml.writer.AttrDataProviderOutputHandler
All Implemented Interfaces:
AttributeConstants, OutputHandler

public class AttrDataProviderOutputHandler
extends AttributeOutputHandler

Implementation of AttributeOutputHandler which access the attributes with the help of DataProvider.


Field Summary
 
Fields inherited from interface org.graphdrawing.graphml.attr.AttributeConstants
TYPE_BOOLEAN, TYPE_COMPLEX, TYPE_DOUBLE, TYPE_FLOAT, TYPE_INT, TYPE_LONG, TYPE_STRING
 
Constructor Summary
AttrDataProviderOutputHandler(String name, DataProvider dp, int scopeType, int contentType)
          Creates new instance.
AttrDataProviderOutputHandler(String name, EdgeMap edgeMap, int contentType)
          Creates new instance for attributes defined for edges.
AttrDataProviderOutputHandler(String name, NodeMap nodeMap, int contentType)
          Creates new instance for attributes defined for nodes.
 
Methods inherited from class org.graphdrawing.graphml.attr.AttributeOutputHandler
getAttributeProvider, printDataAttributes, printDataOutput, printKeyAttributes, printKeyOutput
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttrDataProviderOutputHandler

public AttrDataProviderOutputHandler(String name,
                                     DataProvider dp,
                                     int scopeType,
                                     int contentType)
Creates new instance.

Parameters:
name - the name of the attribute.
dp - the data provider which contains attribute data.
scopeType - defines for which type of graph elements the atttributes are defined.
contentType - defines the type of the attribute (int, double, String,..).

AttrDataProviderOutputHandler

public AttrDataProviderOutputHandler(String name,
                                     EdgeMap edgeMap,
                                     int contentType)
Creates new instance for attributes defined for edges.

Parameters:
name - the name of the attribute.
edgeMap - the EdgeMap which contains attribute data.
contentType - defines the type of the attribute (int, doubel, String,..).

AttrDataProviderOutputHandler

public AttrDataProviderOutputHandler(String name,
                                     NodeMap nodeMap,
                                     int contentType)
Creates new instance for attributes defined for nodes.

Parameters:
name - the name of the attribute.
nodeMap - the NodeMap which contains attribute data.
contentType - defines the type of the attribute (int, doubel, String,..).


Copyright ©2000-2008, yWorks GmbH. All rights reserved.