Search this API

y.view
Interface GenericNodeRealizer.LabelFactory

Enclosing class:
GenericNodeRealizer

public static interface GenericNodeRealizer.LabelFactory

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

 

Method Summary
 NodeLabel createNodeLabel(NodeRealizer context)
          Used as a callback for the GenericNodeRealizer.createNodeLabel() method to create new node labels for the specified realizer.
 

Method Detail

createNodeLabel

NodeLabel createNodeLabel(NodeRealizer context)
Used as a callback for the GenericNodeRealizer.createNodeLabel() method to create new node labels for the specified realizer.

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

Parameters:
context - the NodeRealizer for which a new node label has to be created.
Returns:
a new NodeLabel instance.

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