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

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

public class PortViewStateOutputHandler
extends AbstractOutputHandler

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


Constructor Summary
PortViewStateOutputHandler()
          Initializes a new instance that uses scope KeyScope.PORT, type KeyType.COMPLEX and name 'http://www.yworks.com/xml/yfiles-graphml/1.0/portviewstates'.
 
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

PortViewStateOutputHandler

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

Method Detail

writeValueCore

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

getValue

protected java.lang.Object getValue(GraphMLWriteContext context,
                                    java.lang.Object key)
                             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