|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.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_KEY
PortConstraintKeys.TARGET_PORT_CONSTRAINT_KEY
PortConstraintKeys.SOURCE_GROUPID_KEY
PortConstraintKeys.TARGET_GROUPID_KEY
Constructor Summary | |
---|---|
PortConstraintInputHandler()
|
Method Summary | |
---|---|
boolean |
acceptKey(org.w3c.dom.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,
java.lang.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,
org.w3c.dom.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(org.w3c.dom.Element keyDefinition)
yfiles.type
has the value portconstraints
.
protected DataAcceptor getDataAcceptor(Graph graph, java.lang.Object dpKey)
public ParsePrecedence getPrecedence()
InputHandler
getPrecedence
in interface InputHandler
public void parseData(GraphMLParseContext context, org.w3c.dom.Node node) throws GraphMLParseException
InputHandler
parseData
in interface InputHandler
context
- the current parse context.node
- the DOM node representing the data element.
GraphMLParseException
public void applyDefault(GraphMLParseContext context) throws GraphMLParseException
InputHandler
applyDefault
in interface InputHandler
context
- the current parse context.
GraphMLParseException
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |