|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.graph2d.PortConstraintInputHandler
public class PortConstraintInputHandler
Input handler responsible for parsing PortConstraint data.
Port constraint data includes source and target port constraints,
as well as source group and target group IDs. These data will be
attached to the edges of the graph by registering data providers
using the following standard look-up keys for port constraints:
PortConstraintKeys.SOURCE_PORT_CONSTRAINT_KEYPortConstraintKeys.TARGET_PORT_CONSTRAINT_KEYPortConstraintKeys.SOURCE_GROUPID_KEYPortConstraintKeys.TARGET_GROUPID_KEY
| Constructor Summary | |
|---|---|
PortConstraintInputHandler()
|
|
| Method Summary | |
|---|---|
boolean |
acceptKey(Element keyDefinition)
Accepts keys at edge scope whose attribute yfiles.type has the value portconstraints. |
void |
applyDefault(GraphMLParseContext context)
This method is invoked when no data tag is defined, and the default value should be applied. |
protected DataAcceptor |
getDataAcceptor(Graph graph,
Object dpKey)
|
static ObjectStringConverter |
getEdgeGroupIDConverter(ObjectStringConverter c)
Returns the converter that is responsible for converting the string representation of a source or target group id to an object. |
ParsePrecedence |
getPrecedence()
Gets the parse precedence that is associated with this instance. |
void |
parseData(GraphMLParseContext context,
Node node)
This method is invoked each time a data element with matching key is processed. |
static void |
setEdgeGroupIDConverter(ObjectStringConverter c)
Sets the converter that is responsible for converting the string representation of a source or target group id to an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PortConstraintInputHandler()
| Method Detail |
|---|
public static void setEdgeGroupIDConverter(ObjectStringConverter c)
public static ObjectStringConverter getEdgeGroupIDConverter(ObjectStringConverter c)
public boolean acceptKey(Element keyDefinition)
yfiles.type has the value portconstraints.
protected DataAcceptor getDataAcceptor(Graph graph,
Object dpKey)
public ParsePrecedence getPrecedence()
InputHandler
getPrecedence in interface InputHandler
public void parseData(GraphMLParseContext context,
Node node)
throws GraphMLParseException
InputHandler
parseData in interface InputHandlerGraphMLParseExceptioncontext - the current parse context.node - the DOM node representing the data element.
public void applyDefault(GraphMLParseContext context)
throws GraphMLParseException
InputHandler
applyDefault in interface InputHandlerGraphMLParseExceptioncontext - the current parse context.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||