org.graphdrawing.graphml.writer
Interface Precedence


public interface Precedence

Interface that can be used to assign a invokation precedence to output handlers. For each scope output handlers will be invoked in the order of their precedence. Output handlers that have different precedences will effect multi-pass writing on the output scope.

GraphML handlers for GraphML elements like graph, node and edge have default precedence GRAPHML_PRECEDENCE. Output handlers with smaller precedence will be invoked before and output handlers with bigger precedence will be invoked after the standard GraphML elements are written.


Field Summary
static int GRAPHML_PRECEDENCE
          Symbolic constant for the default handler precedence.
 
Method Summary
 int getPrecedence()
          Get the precedence value of the output handler.
 

Field Detail

GRAPHML_PRECEDENCE

public static final int GRAPHML_PRECEDENCE
Symbolic constant for the default handler precedence. Note: output handlers with a lower precedence will be called before any "normal" (i.e. not data) child elements of the current graph element are written.

See Also:
Constant Field Values
Method Detail

getPrecedence

public int getPrecedence()
Get the precedence value of the output handler.

Note: The values Integer.MIN_VALUE and Integer.MAX_VALUE are reserved for internal use

Returns:
the precedence value of the handler


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