y.io.graphml.graph2d
Class NodePortGraphicsWriter
java.lang.Object
y.io.graphml.output.AbstractOutputHandler
y.io.graphml.graph2d.AbstractWriteNodePortHandler
y.io.graphml.graph2d.NodePortGraphicsWriter
- All Implemented Interfaces:
- EventListener, OutputHandler, OutputHandlerProvider
public class NodePortGraphicsWriter
- extends AbstractWriteNodePortHandler
Output handler that writes data related to the visual representation
of a NodePort
.
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 |
NodePortGraphicsWriter
public NodePortGraphicsWriter()
getKey
protected 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.