|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.io.graphml.graph2d.NodeLabelSerializer
public class NodeLabelSerializer
Implementation of SerializationHandler that can write
NodeLabel elements.
| Nested Class Summary | |
|---|---|
static class |
NodeLabelSerializer.SmartNodeLabelModelSerializer
Handles serialization of SmartNodeLabelModel instances and their model parameters. |
| Constructor Summary | |
|---|---|
NodeLabelSerializer()
|
|
| Method Summary | |
|---|---|
protected String |
getModelName(NodeLabel label,
GraphMLWriteContext context)
Gets the symbolic name of a label model for the modelName attribute of the NodeLabel
element. |
protected String |
getModelPosition(NodeLabel label,
GraphMLWriteContext context)
Gets the symbolic name of a label model for the modelPosition attribute of the EdgeLabel
element. |
void |
onHandleSerialization(SerializationEvent event)
Callback method to handle the serialization of the data contained in event. |
protected void |
serializeContent(NodeLabel label,
XmlWriter writer,
GraphMLWriteContext context)
Write the content of an NodeLabel element. |
protected void |
writeCustomModelElements(NodeLabel label,
XmlWriter writer,
GraphMLWriteContext context)
Write the representation of a custom label model. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeLabelSerializer()
| Method Detail |
|---|
public void onHandleSerialization(SerializationEvent event)
throws GraphMLWriteException
SerializationHandlerevent.
If this callback could serialize the data in event, it should set the SerializationEvent.setHandled(boolean) property to true
to prevent further serialization code from processing this data.
onHandleSerialization in interface SerializationHandlerGraphMLWriteExceptionevent - Event that contains all data that is needed for serialization.
protected void serializeContent(NodeLabel label,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
NodeLabel element.
GraphMLWriteExceptioncontext - The current write context.writer - The writer to use.label - The label to write.
protected void writeCustomModelElements(NodeLabel label,
XmlWriter writer,
GraphMLWriteContext context)
throws GraphMLWriteException
GraphMLWriteExceptioncontext - The current write context.writer - The writer to use.label - The label to write.
protected String getModelName(NodeLabel label,
GraphMLWriteContext context)
modelName attribute of the NodeLabel
element.
label - The label whose model is written.context - The current write context.
protected String getModelPosition(NodeLabel label,
GraphMLWriteContext context)
modelPosition attribute of the EdgeLabel
element.
label - The label whose model is written.context - The current write context.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||