Search this API

y.io.graphml.graph2d
Interface GenericEdgeRealizerSerializer.ConfigurationFactory

Enclosing class:
GenericEdgeRealizerSerializer

public static interface GenericEdgeRealizerSerializer.ConfigurationFactory

Interface for dynamic creation and registration of configurations for GenericEdgeRealizer.

If an instance of this interface is present in Lookup.lookup(Class), createConfiguration(org.w3c.dom.Node,y.view.GenericEdgeRealizer,y.io.graphml.input.GraphMLParseContext) will be called if a configuration does not exist in GenericEdgeRealizer.Factory.

A default implementation that registers a default configuration under the given name is provided by Graph2DGraphMLHandler.configureLookup(y.base.Graph,y.io.graphml.input.GraphMLParser) .

 
Your browser does not support SVG content.

Method Summary
 void createConfiguration(org.w3c.dom.Node domNode, GenericEdgeRealizer ger, GraphMLParseContext context)
          Fallback method that is called by GenericEdgeRealizerSerializer.parse(y.view.EdgeRealizer,org.w3c.dom.Node,y.io.graphml.input.GraphMLParseContext) if the specified configuration is not registered.
 

Method Detail

createConfiguration

void createConfiguration(org.w3c.dom.Node domNode,
                         GenericEdgeRealizer ger,
                         GraphMLParseContext context)
Fallback method that is called by GenericEdgeRealizerSerializer.parse(y.view.EdgeRealizer,org.w3c.dom.Node,y.io.graphml.input.GraphMLParseContext) if the specified configuration is not registered.

Implementations should provide some fallback behaviour, and set a configuration on ger if applicable.

A default implementation that registers a default configuration under the given name is provided by Graph2DGraphMLHandler.configureLookup(y.base.Graph,y.io.graphml.input.GraphMLParser) .

Parameters:
domNode - The toplevel DOM node that represents the realizer
ger - The realizer to configure
context - The current parse context

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