Search this API

y.view
Interface GenericEdgeRealizer.LabelFactory

Enclosing class:
GenericEdgeRealizer

public static interface GenericEdgeRealizer.LabelFactory

This interface is used by GenericEdgeRealizer to delegate the work of the GenericEdgeRealizer.createEdgeLabel() method to. Classes implementing this interface should query the given context EdgeRealizer for the necessary information each time the method is called since the implementation instances will be shared among multiple GenericEdgeRealizer instances.

 
Your browser does not support SVG content.

Method Summary
 EdgeLabel createEdgeLabel(EdgeRealizer context)
          Used as a callback for the GenericEdgeRealizer.createEdgeLabel() method to create new edge labels for the specified realizer.
 

Method Detail

createEdgeLabel

EdgeLabel createEdgeLabel(EdgeRealizer context)
Used as a callback for the GenericEdgeRealizer.createEdgeLabel() method to create new edge labels for the specified realizer.

Note: This method should return labels that are not yet bound to any realizer.

Parameters:
context - the EdgeRealizer for which a new edge label has to be created.
Returns:
a new EdgeLabel instance.

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