org.graphdrawing.graphml.attr
Interface AttributeFactory
- All Superinterfaces:
- AttributeConstants
- All Known Implementing Classes:
- AttrDataAcceptorInputHandler.DataAcceptorAttributeFactory, YGraphElementFactory
- public interface AttributeFactory
- extends AttributeConstants
This interface defines how attributes are store in the graph structure.
defineAttribute
public void defineAttribute(String name,
int contentType,
int scopeType)
- This method is called when an attribute definition is encountered.
- Parameters:
name - the name of the attributecontentType - one of AttributeConstants.TYPE_INT,
AttributeConstants.TYPE_LONG,
AttributeConstants.TYPE_FLOAT,
AttributeConstants.TYPE_DOUBLE,
AttributeConstants.TYPE_STRING,
AttributeConstants.TYPE_BOOLEAN.
createAttribute
public void createAttribute(GraphMLParseContext context,
String name,
String value)
- This method is called when an attribute value is encountered.
- Parameters:
context - the context in which the parser is.name - the name of the attribute.value - the value of the attribute.
Copyright ©2000-2008, yWorks GmbH. All rights reserved.