|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectyext.graphml.writer.AbstractOutputHandler
yext.graphml.graph2D.PortConstraintOutputHandler
Output handler responsible for writing PortConstraint data.
Port contraint data includes source and target port constraints,
as well as source group and target group IDs. Port constraint data
must be provided by data providers that are registered with the graph using
the following standard look-up keys for port contraints:
PortConstraintKeys.SOURCE_PORT_CONSTRAINT_KEYPortConstraintKeys.TARGET_PORT_CONSTRAINT_KEYPortConstraintKeys.SOURCE_GROUPID_KEYPortConstraintKeys.TARGET_GROUPID_KEY
| Constructor Summary | |
PortConstraintOutputHandler()
|
|
| Method Summary | |
static ObjectStringConverter |
getEdgeGroupIDConverter(ObjectStringConverter c)
Returns the converter that is responsible for converting the source or target group ID to a string representation. |
void |
printDataOutput(GraphMLWriteContext context,
Graph graph,
Object nodeedge,
XmlWriter writer)
Writes the data out. |
void |
printKeyAttributes(GraphMLWriteContext context,
XmlWriter writer)
Returns yfiles.type="portconstraints" |
void |
printKeyOutput(GraphMLWriteContext context,
XmlWriter ips)
Write the element content of the key tag for this graphml attribute |
static void |
setEdgeGroupIDConverter(ObjectStringConverter c)
Sets the converter that is responsible for converting the source or target group ID to a string representation. |
| Methods inherited from class yext.graphml.writer.AbstractOutputHandler |
getKeyAttributes, printDataAttributes, printDataOutput |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PortConstraintOutputHandler()
| Method Detail |
public static void setEdgeGroupIDConverter(ObjectStringConverter c)
toString() of the ID object will be used.
public static ObjectStringConverter getEdgeGroupIDConverter(ObjectStringConverter c)
toString() of the ID object will be used.
public void printKeyAttributes(GraphMLWriteContext context,
XmlWriter writer)
yfiles.type="portconstraints"
context - the current write contextwriter - XMLWriter instance that writes the result
public void printDataOutput(GraphMLWriteContext context,
Graph graph,
Object nodeedge,
XmlWriter writer)
AbstractOutputHandler
printDataOutput in class AbstractOutputHandlercontext - the current writeContext.graph - the current graph in the context.nodeedge - the current node/edge in the context.writer - the output-stream.
public void printKeyOutput(GraphMLWriteContext context,
XmlWriter ips)
OutputHandlerkey tag for this graphml attribute
context - the current write contextips - XMLWriter instance that writes the result
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||