yext.graphml.compat
Class ReadPortLayoutHandler

java.lang.Object
  extended byyext.graphml.compat.ReadPortLayoutHandler
All Implemented Interfaces:
DOMInputHandler

public class ReadPortLayoutHandler
extends Object
implements DOMInputHandler

Reads the geometry data for ports in .NET graphml format


Constructor Summary
ReadPortLayoutHandler()
           
 
Method Summary
 boolean acceptKey(NamedNodeMap attributes, int scopeType)
          This method defines whether a specific key/data pair is handled by the input handler.
 void applyDefault(DOMGraphMLParseContext context)
          This method is invoked when no data tag is defined, and the default value should be applied.
 void parseData(DOMGraphMLParseContext context, boolean defaultMode, Node node)
          This method is invoked, each time a data element with matching key is processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadPortLayoutHandler

public ReadPortLayoutHandler()
Method Detail

acceptKey

public boolean acceptKey(NamedNodeMap attributes,
                         int scopeType)
Description copied from interface: DOMInputHandler
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.

Specified by:
acceptKey in interface DOMInputHandler
Parameters:
attributes - the attributes of the key tag.
scopeType - the scope for which the key is defined. One of GraphMLConstants.SCOPE_ALL, GraphMLConstants.SCOPE_EDGE, GraphMLConstants.SCOPE_ENDPOINT, GraphMLConstants.SCOPE_GRAPH, GraphMLConstants.SCOPE_NODE, GraphMLConstants.SCOPE_PORT, GraphMLConstants.SCOPE_HYPEREDGE.

parseData

public void parseData(DOMGraphMLParseContext context,
                      boolean defaultMode,
                      Node node)
Description copied from interface: DOMInputHandler
This method is invoked, each time a data element with matching key is processed.

Specified by:
parseData in interface DOMInputHandler
Parameters:
context - the current parse context.
defaultMode - true when the default value, which is included in the key element, is processed, false otherwise.
node - the DOM node representing the data element.

applyDefault

public void applyDefault(DOMGraphMLParseContext context)
Description copied from interface: DOMInputHandler
This method is invoked when no data tag is defined, and the default value should be applied.

Specified by:
applyDefault in interface DOMInputHandler
Parameters:
context - the current parse context.


Copyright ©2000-2008, yWorks GmbH. All rights reserved.