| 
 | Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.input.AbstractInputHandler
y.io.graphml.layout.NodeLayoutInputHandler
public class NodeLayoutInputHandler
Input handler for node layout information in GraphML.
| Constructor Summary | |
|---|---|
| NodeLayoutInputHandler()Initializes a new NodeLayoutInputHandlerinstance. | |
| Method Summary | |
|---|---|
|  boolean | acceptKey(org.w3c.dom.Element keyDefinition)Accepts keys with attribute yfiles.type="nodegraphics". | 
|  void | applyDefault(GraphMLParseContext context)Does nothing. | 
| protected  java.lang.Object | parseDataCore(GraphMLParseContext context,
              org.w3c.dom.Node node)Calls context.deserialize(context, n, NodeLayout.class)for the first child elementnof 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 NodeLayoutInputHandler()
NodeLayoutInputHandler instance.
| Method Detail | 
|---|
public boolean acceptKey(org.w3c.dom.Element keyDefinition)
yfiles.type="nodegraphics".
keyDefinition - the XML data key element to check.
true if the specified element has a
 yfiles.type="nodegraphics" attribute;
 false otherwise.
protected java.lang.Object parseDataCore(GraphMLParseContext context,
                                         org.w3c.dom.Node node)
                                  throws GraphMLParseException
context.deserialize(context, n, NodeLayout.class)
 for the first child element n of the given XML node.
parseDataCore in class AbstractInputHandlercontext - the current parse context.node - the XML node that contains the data.
 This is either the GraphML data element or the
 default element.
NodeLayout 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
 NodeLayout instances.
setValue in class AbstractInputHandlercontext - The context.key - The key.data - The data.public void applyDefault(GraphMLParseContext context)
applyDefault in interface InputHandlerapplyDefault in class AbstractInputHandlercontext - the current parse context.| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||