| 
 | 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.EdgeLabelDeserializer
public class EdgeLabelDeserializer
Implementation of DeserializationHandler that can read
 EdgeLabel elements.
| Nested Class Summary | |
|---|---|
| static interface | EdgeLabelDeserializer.ConfigurationFactoryInterface for dynamic creation and registration of configurations for EdgeLabel. | 
| static class | EdgeLabelDeserializer.PreferredPlacementDescriptorDeserializerHandles deserialization of PreferredPlacementDescriptorinstances. | 
| static class | EdgeLabelDeserializer.RotatedDiscreteEdgeLabelModelDeserializerHandles deserialization of RotatedDiscreteEdgeLabelModelinstances and their model parameters. | 
| static class | EdgeLabelDeserializer.RotatedSliderEdgeLabelModelDeserializerHandles deserialization of RotatedSliderEdgeLabelModelinstances and their model parameters. | 
| static class | EdgeLabelDeserializer.SmartEdgeLabelModelDeserializerHandles deserialization of SmartEdgeLabelModelinstances and their model parameters. | 
| Constructor Summary | |
|---|---|
| EdgeLabelDeserializer() | |
| Method Summary | |
|---|---|
| protected  EdgeLabel | createLabel(GraphMLParseContext context,
            org.w3c.dom.Node root)Create a new label instance from the data in root. | 
|  void | onHandleDeserialization(DeserializationEvent event)Callback method to handle the deserialization of the data contained in event. | 
| protected  void | parseEdgeLabel(GraphMLParseContext context,
               org.w3c.dom.Node root,
               EdgeLabel label)Configure an existing label with the data in root. | 
| protected  void | parseIconAttribute(GraphMLParseContext context,
                   org.w3c.dom.Node root,
                   EdgeLabel label)Parses the attribute that references the label's icon resource. | 
| protected  void | parseLabelModel(GraphMLParseContext context,
                org.w3c.dom.Node root,
                EdgeLabel label)Configure the label model of an existing label with the data in root. | 
| protected  void | parsePreferredPlacementDescriptor(GraphMLParseContext context,
                                  org.w3c.dom.Node root,
                                  EdgeLabel label) | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public EdgeLabelDeserializer()
| Method Detail | 
|---|
protected void parseEdgeLabel(GraphMLParseContext context,
                              org.w3c.dom.Node root,
                              EdgeLabel label)
                       throws GraphMLParseException
root.
context - The current parse context.root - The DOM node to parse.label - The label instance to configure.
GraphMLParseException
protected void parseIconAttribute(GraphMLParseContext context,
                                  org.w3c.dom.Node root,
                                  EdgeLabel label)
                           throws GraphMLParseException
context - The current parse context.root - The DOM node to parse.label - The label instance to configure.
GraphMLParseException
protected void parsePreferredPlacementDescriptor(GraphMLParseContext context,
                                                 org.w3c.dom.Node root,
                                                 EdgeLabel label)
                                          throws GraphMLParseException
GraphMLParseException
protected void parseLabelModel(GraphMLParseContext context,
                               org.w3c.dom.Node root,
                               EdgeLabel label)
                        throws GraphMLParseException
root.
context - The current parse context.root - The DOM node to parse that contains the label model data.label - The label instance to configure.
GraphMLParseException
protected EdgeLabel createLabel(GraphMLParseContext context,
                                org.w3c.dom.Node root)
root.
context - The current parse context.root - The DOM node to parse that contains the label model data.
public void onHandleDeserialization(DeserializationEvent event)
                             throws GraphMLParseException
DeserializationHandlerevent.
 
 If this callback could deserialize the data in event, it should assign the deserialization result to the event's
 DeserializationEvent.setResult(Object) property.
 
onHandleDeserialization in interface DeserializationHandlerevent - Event that contains all data that is needed for deserialization.
GraphMLParseException| 
 | © Copyright 2000-2025, yWorks GmbH. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||