| Package | com.yworks.io.graphml.reader |
| Class | public class ReadNodeLayoutHandler |
| Inheritance | ReadNodeLayoutHandler AbstractInputHandler Object |
| Implements | Precedence |
A shared instance can be retrieved using instance.
| Property | Defined By | ||
|---|---|---|---|
| instance : ReadNodeLayoutHandler [static] [read-only]
The shared instance of this input handler. | ReadNodeLayoutHandler | ||
| Property | Defined By | ||
|---|---|---|---|
| styleDeserializers : Object [static]
Maps the element names of elements that can be parsed by registered style serializers to
the style serializers
| ReadNodeLayoutHandler | ||
| Method | Defined By | ||
|---|---|---|---|
acceptKey(keyElement:XML, scopeType:String):Boolean [override]
This method defines whether a specific key/data pair is
handled by the input handler. | ReadNodeLayoutHandler | ||
![]() | applyDefault(context:GraphMLParseContext, defaultElement:XML, value:Object):void
This method is invoked when no data tag is defined, and the default value
should be applied. | AbstractInputHandler | |
![]() | getAttributeName(keyElement:XML):String [static]
Returns the value of the first attribute with the name GraphMLConstants.ATTR_NAME. | AbstractInputHandler | |
![]() | getAttributeType(keyElement:XML):String [static]
Returns the value of the first attribute with the name GraphMLConstants.ATTR_TYPE. | AbstractInputHandler | |
getPrecedence():int
Node Layout needs to be parsed first (before ports)
| ReadNodeLayoutHandler | ||
![]() | parseData(context:GraphMLParseContext, defaultValue:Boolean, dataElement:XML):void
Forwards to parseItemData
This method is invoked each time a data element with matching key
is processed. | AbstractInputHandler | |
![]() | parseDefaultData(context:GraphMLParseContext, keyElement:XML):Object
This method is invoked when the default value of the key element
for a data element is parsed. | AbstractInputHandler | |
| Method | Defined By | ||
|---|---|---|---|
parseItemData(context:GraphMLParseContext, graph:IGraph, item:Object, defaultMode:Boolean, dataElement:XML):void [override]
Parse the element for the given item. | ReadNodeLayoutHandler | ||
| Constant | Defined By | ||
|---|---|---|---|
| ATTR_NAME : String = geometry [static]
The attr.name for nodes defined in the <key> element for the node <data> element. | ReadNodeLayoutHandler | ||
| instance | property |
instance:ReadNodeLayoutHandler [read-only] The shared instance of this input handler.
public static function get instance():ReadNodeLayoutHandler| styleDeserializers | property |
protected static var styleDeserializers:ObjectMaps the element names of elements that can be parsed by registered style serializers to the style serializers
| acceptKey | () | method |
override public function acceptKey(keyElement:XML, scopeType:String):Boolean
This method defines whether a specific key/data pair is
handled by the input handler.
When it returns true, each occurence of
data elements which match the id of the key element are
forwarded to the input handler.
Parameters
keyElement:XML — the key element
| |
scopeType:String — the scope type for which the key is defined.
One of
|
Boolean — true, if this hanlder can handle the data elements asked for.
|
| getPrecedence | () | method |
public function getPrecedence():intNode Layout needs to be parsed first (before ports)
Returnsint |
| parseItemData | () | method |
override protected function parseItemData(context:GraphMLParseContext, graph:IGraph, item:Object, defaultMode:Boolean, dataElement:XML):voidParse the element for the given item.
Parameters
context:GraphMLParseContext — The parse context
| |
graph:IGraph — The graph to work on
| |
item:Object — The item.
| |
defaultMode:Boolean — true when the default value,
which is included in the key element, is processed,
false otherwise.
| |
dataElement:XML — The data element of the graphml file.
|
| ATTR_NAME | Constant |
public static const ATTR_NAME:String = geometryThe attr.name for nodes defined in the <key> element for the node <data> element.