|
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.input.AbstractInputHandler y.io.graphml.layout.EdgeLayoutInputHandler
public class EdgeLayoutInputHandler
Input handler for edge layout information in GraphML.
Constructor Summary | |
---|---|
EdgeLayoutInputHandler()
Initializes a new EdgeLayoutInputHandler instance. |
Method Summary | |
---|---|
boolean |
acceptKey(org.w3c.dom.Element keyDefinition)
Accepts keys with attribute yfiles.type="edgegraphics" . |
void |
applyDefault(GraphMLParseContext context)
Does nothing. |
protected java.lang.Object |
parseDataCore(GraphMLParseContext context,
org.w3c.dom.Node node)
Calls context.deserialize(context, n, EdgeLayout.class)
for the first child element n of the given XML node. |
protected void |
setValue(GraphMLParseContext context,
java.lang.Object key,
java.lang.Object data)
Does nothing. |
Methods inherited from class y.io.graphml.input.AbstractInputHandler |
---|
getDefaultValue, getPrecedence, getValidScopes, initializeFromKeyDefinition, isDefaultExists, isParseDefaultValue, parseData, setDefaultExists, setDefaultValue, setParseDefaultValue, setPrecedence, setValidScopes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EdgeLayoutInputHandler()
EdgeLayoutInputHandler
instance.
Method Detail |
---|
public boolean acceptKey(org.w3c.dom.Element keyDefinition)
yfiles.type="edgegraphics"
.
keyDefinition
- the XML data key element to check.
true
if the specified element has a
yfiles.type="edgegraphics"
attribute;
false
otherwise.protected java.lang.Object parseDataCore(GraphMLParseContext context, org.w3c.dom.Node node) throws GraphMLParseException
context.deserialize(context, n, EdgeLayout.class)
for the first child element n
of the given XML node.
parseDataCore
in class AbstractInputHandler
context
- the current parse context.node
- the XML node that contains the data.
This is either the GraphML data
element or the
default
element.
EdgeLayout
instance or null
if the given XML node has no child elements.
GraphMLParseException
- if a problem occurs during deserialization.protected void setValue(GraphMLParseContext context, java.lang.Object key, java.lang.Object data)
DeserializationHandler
dedicated to
EdgeLayout
instances.
setValue
in class AbstractInputHandler
context
- The context.key
- The key.data
- The data.public void applyDefault(GraphMLParseContext context)
applyDefault
in interface InputHandler
applyDefault
in class AbstractInputHandler
context
- the current parse context.
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |