Search this API

y.layout
Interface LabelLayoutKeys

All Known Implementing Classes:
LabelLayoutData

public interface LabelLayoutKeys

LabelLayoutKeys are used for associating DataProviders that contain label-specific information for edge and node labels.

Label-aware layout algorithms like IncrementalHierarchicLayouter may look for such DataProviders that contain LabelLayoutData for each edge.

Instead of setting up LabelLayoutData and DataProviders one can also use LabelLayoutTranslator to automatically translate information provided by the standard label layout classes EdgeLabelLayout and NodeLabelLayout to layout data accessible through the keys defined below.

 

Field Summary
static java.lang.Object EDGE_LABEL_LAYOUT_KEY
          A DataProvider key for accessing label information of each edge in the input graph
static java.lang.Object IGNORE_LABEL_KEY
          A DataProvider key for marking labels that should be ignored by the layout algorithm A label is ignored if there is a DataProvider registered with this key which returns true for the given LabelLayout.
static java.lang.Object NODE_LABEL_LAYOUT_KEY
          A DataProvider key for accessing label information of each node in the input graph
 

Field Detail

EDGE_LABEL_LAYOUT_KEY

static final java.lang.Object EDGE_LABEL_LAYOUT_KEY
A DataProvider key for accessing label information of each edge in the input graph


NODE_LABEL_LAYOUT_KEY

static final java.lang.Object NODE_LABEL_LAYOUT_KEY
A DataProvider key for accessing label information of each node in the input graph


IGNORE_LABEL_KEY

static final java.lang.Object IGNORE_LABEL_KEY
A DataProvider key for marking labels that should be ignored by the layout algorithm

A label is ignored if there is a DataProvider registered with this key which returns true for the given LabelLayout.

The LabelLayoutTranslator only translates labels that should not be ignored.


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