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

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

public class NodeExpandedOutputHandler
extends AbstractOutputHandler

Output handler that writes the expansion state of nodes in folded graph.


Constructor Summary
NodeExpandedOutputHandler()
          Create a new output handler using scope KeyScope.NODE, type KeyType.BOOLEAN and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/expansionstate'.
 
Method Summary
protected  java.lang.Object getValue(GraphMLWriteContext context, java.lang.Object key)
           
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

NodeExpandedOutputHandler

public NodeExpandedOutputHandler()
Create a new output handler using scope KeyScope.NODE, type KeyType.BOOLEAN and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/expansionstate'.

true is used as default value.

See Also:
KeyScope, KeyType
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


Copyright © 2000-2013 yWorks GmbH. All rights reserved