Search this API

y.io.graphml.graph2d
Class NodePortGraphicsWriter

java.lang.Object
  extended by y.io.graphml.output.AbstractOutputHandler
      extended by y.io.graphml.graph2d.AbstractWriteNodePortHandler
          extended by y.io.graphml.graph2d.NodePortGraphicsWriter
All Implemented Interfaces:
java.util.EventListener, OutputHandler, OutputHandlerProvider

public class NodePortGraphicsWriter
extends AbstractWriteNodePortHandler

Output handler that writes data related to the visual representation of a NodePort.

 
Your browser does not support SVG content.

Constructor Summary
NodePortGraphicsWriter()
           
 
Method Summary
protected  java.lang.String getKey()
          Returns "portgraphics".
protected  void writePort(NodePort port, XmlWriter writer, GraphMLWriteContext context)
          Serializes port data to the specified writer.
 
Methods inherited from class y.io.graphml.graph2d.AbstractWriteNodePortHandler
getKeyDefinitionAttributes, getValue, writeValueCore
 
Methods inherited from class y.io.graphml.output.AbstractOutputHandler
addNameToKeyDefinition, addScopeToKeyDefinition, addTypeToKeyDefinition, addUriToKeyDefinition, getDataTagAttributes, getDefaultValue, 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

NodePortGraphicsWriter

public NodePortGraphicsWriter()
Method Detail

getKey

protected java.lang.String getKey()
Returns "portgraphics".

Specified by:
getKey in class AbstractWriteNodePortHandler
Returns:
"portgraphics".

writePort

protected void writePort(NodePort port,
                         XmlWriter writer,
                         GraphMLWriteContext context)
Description copied from class: AbstractWriteNodePortHandler
Serializes port data to the specified writer.

Specified by:
writePort in class AbstractWriteNodePortHandler
Parameters:
port - the port instance whose data has to be serialized.
writer - the writer used for writing the port data.
context - miscellaneous context information.

© Copyright 2000-2022,
yWorks GmbH.
All rights reserved.