com.yworks.yfiles.server.graphml.flexio
Class LabelOutputHandler

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

public class LabelOutputHandler
extends AbstractOutputHandler

This class manages the serialization of label instances.

To serialize a custom style or custom model parameters, corresponding serializer instances have to be registered as their serialization is delegated to the write context.


Constructor Summary
LabelOutputHandler(java.lang.Object labelsDpKey, KeyScope scope)
          Creates a new instance of this output handler.
 
Method Summary
 WritePrecedence getPrecedence()
          The handler shall be called before its children.
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, 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

LabelOutputHandler

public LabelOutputHandler(java.lang.Object labelsDpKey,
                          KeyScope scope)
Creates a new instance of this output handler.

Parameters:
labelsDpKey - The data provider key that is used to retrieve the data provider that stores the list of labels.
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

getPrecedence

public WritePrecedence getPrecedence()
The handler shall be called before its children.

Returns:
WritePrecedence.BEFORE_CHILDREN


Copyright © 2000-2013 yWorks GmbH. All rights reserved