com.yworks.yfiles.server.graphml.support
Class NodeInsetsInputHandler
java.lang.Object
y.io.graphml.input.AbstractInputHandler
com.yworks.yfiles.server.graphml.flexio.AbstractInputHandlerProvider
com.yworks.yfiles.server.graphml.support.NodeInsetsInputHandler
- All Implemented Interfaces:
- java.util.EventListener, InputHandler, InputHandlerProvider
- public class NodeInsetsInputHandler
- extends AbstractInputHandlerProvider
Input handler that parses node insets for group nodes and stores the insets
in the GroupingKeys.GROUP_NODE_INSETS_DPKEY
data provider.
Method Summary |
boolean |
acceptKey(org.w3c.dom.Element attributes)
This method defines whether a specific key/data pair is handled by the input handler. |
protected java.lang.Object |
parseDataCore(GraphMLParseContext context,
org.w3c.dom.Node node)
|
protected void |
setValue(GraphMLParseContext context,
java.lang.Object key,
java.lang.Object data)
|
Methods inherited from class y.io.graphml.input.AbstractInputHandler |
applyDefault, 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 |
NodeInsetsInputHandler
public NodeInsetsInputHandler()
parseDataCore
protected java.lang.Object parseDataCore(GraphMLParseContext context,
org.w3c.dom.Node node)
throws GraphMLParseException
- Throws:
GraphMLParseException
acceptKey
public boolean acceptKey(org.w3c.dom.Element attributes)
- This method defines whether a specific key/data pair is handled by the input handler. When it returns
true
, each occurrence of data elements which match the id of the key element are forwarded to the input
handler.
- Specified by:
acceptKey
in class AbstractInputHandlerProvider
- Parameters:
attributes
- the attributes of the key tag.
- Returns:
true
if the scope matches KeyScope.NODE
and the name matches 'nodeinsets'- See Also:
KeyScope
setValue
protected void setValue(GraphMLParseContext context,
java.lang.Object key,
java.lang.Object data)
throws GraphMLParseException
- Throws:
GraphMLParseException
Copyright © 2000-2013 yWorks GmbH. All
rights reserved