com.yworks.yfiles.server.graphml.folding
Class NodeViewStateOutputHandler

java.lang.Object
  extended byy.io.graphml.output.AbstractOutputHandler
      extended bycom.yworks.yfiles.server.graphml.folding.NodeViewStateOutputHandler
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider

public class NodeViewStateOutputHandler
extends AbstractOutputHandler

Output handler that writes the NodeViewState instances of a folded graph.


Constructor Summary
NodeViewStateOutputHandler()
          Initializes a new instance that uses scope KeyScope.NODE, type KeyType.COMPLEX and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/nodeviewstates'.
 
Method Summary
protected  java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key)
           
protected  java.lang.String getViewId(GraphMLWriteContext context)
          The id of the view.
protected  void writeValueCore(GraphMLWriteContext context, java.lang.Object data)
           
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, getKeyDefinitionAttributes, getPrecedence, getScope, getValidScopes, hasDefaultValueAssigned, isDefaultValue, isValidScope, isWriteKeyDefault, onQueryOutputHandler, setDefaultValue, setDefaultValueAssigned, setPrecedence, setScope, setValidScopes, setWriteKeyDefault, writeKeyDefinitionContent, writeValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeViewStateOutputHandler

public NodeViewStateOutputHandler()
Initializes a new instance that uses scope KeyScope.NODE, type KeyType.COMPLEX and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/nodeviewstates'.

Method Detail

getValue

protected java.lang.Object getValue(GraphMLWriteContext context,
                                    java.lang.Object key)
                             throws GraphMLWriteException
Throws:
GraphMLWriteException

writeValueCore

protected void writeValueCore(GraphMLWriteContext context,
                              java.lang.Object data)
                       throws GraphMLWriteException
Throws:
GraphMLWriteException

getViewId

protected java.lang.String getViewId(GraphMLWriteContext context)
The id of the view.

Parameters:
context - The write context.
Returns:
'view'


Copyright © 2000-2013 yWorks GmbH. All rights reserved