|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecty.io.graphml.input.AbstractDeserializer
com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer
com.yworks.yfiles.server.graphml.flexio.LabelDeserializer
This class manages the deserialization of labels in the graphml input.
The input handler will parse the xml element that represents the list of labels for a graph item and store the
List of deserialized Label instances in
a data provider registered with the graph.
To deserialize a custom style or custom model parameter, corresponding deserializer instances can be registered. These deserializers will be used automatically by this handler.
| Constructor Summary | |
LabelDeserializer()
|
|
| Method Summary | |
boolean |
canHandle(DeserializationEvent e)
Returns true if DeserializationEvent.getXmlNode() satisfies the properties of this class. |
protected Label |
createLabel(java.lang.String labelText,
ILabelModelParameter parameter,
YDimension preferredSize,
ILabelStyle style)
Create a label instance |
java.lang.Object |
deserializeNode(org.w3c.dom.Node xmlNode,
GraphMLParseContext context)
|
java.lang.String |
getElementName(GraphMLParseContext context)
The local name that the node must satisfy if it should be deserialized. |
| Methods inherited from class com.yworks.yfiles.server.graphml.flexio.deserializer.AbstractDeserializer |
getXmlNamespaceURI, onHandleDeserialization |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public LabelDeserializer()
| Method Detail |
public boolean canHandle(DeserializationEvent e)
DeserializationEvent.getXmlNode() satisfies the properties of this class.
canHandle in class AbstractDeserializere - The event data.
trueAbstractDeserializer.getElementName(y.io.graphml.input.GraphMLParseContext)public java.lang.String getElementName(GraphMLParseContext context)
canHandle(y.io.graphml.input.DeserializationEvent).
getElementName in class AbstractDeserializercontext - The parse context.
public java.lang.Object deserializeNode(org.w3c.dom.Node xmlNode,
GraphMLParseContext context)
throws GraphMLParseException
GraphMLParseException
protected Label createLabel(java.lang.String labelText,
ILabelModelParameter parameter,
YDimension preferredSize,
ILabelStyle style)
labelText - The label textparameter - The model parameter that determine the label's placementpreferredSize - The preferred size of the labelstyle - The style that determines the visual representation of the label
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||