Search this API

y.layout
Interface LabelLayoutConstants

All Known Subinterfaces:
EdgeLabelLayout
All Known Implementing Classes:
EdgeLabel, EdgeLabelLayoutImpl, LabelLayoutData, PreferredPlacementDescriptor

public interface LabelLayoutConstants

This interface defines constants relevant for the automatic labeling process.

The specifiers PLACE_AT_SOURCE, PLACE_AT_TARGET and PLACE_AT_CENTER express at what approximate location along an edge path a label should be placed by a labeling algorithm.

The specifiers PLACE_ON_EDGE, PLACE_LEFT_OF_EDGE, or PLACE_RIGHT_OF_EDGE express on which side of the edge path a label should be placed by a labeling algorithm.

The specifier PLACE_ANYWHERE expresses that the label can be placed anywhere along the edge or on any side of the edge.

ORed combinations of edge label layout constants like (PLACE_AT_SOURCE | PLACE_RIGHT_OF_EDGE) can be used as preferred placement hints.

See Also:
EdgeLabelLayout.getPreferredPlacementDescriptor()

Field Summary
static byte PLACE_ANYWHERE
          Preferred placement specifier for edge labels.
static byte PLACE_AT_CENTER
          Preferred placement specifier for edge labels.
static byte PLACE_AT_SOURCE
          Preferred placement specifier for edge labels.
static byte PLACE_AT_TARGET
          Preferred placement specifier for edge labels.
static byte PLACE_LEFT_OF_EDGE
          Preferred placement specifier for edge labels.
static byte PLACE_ON_EDGE
          Preferred placement specifier for edge labels.
static byte PLACE_RIGHT_OF_EDGE
          Preferred placement specifier for edge labels.
static byte PLACEMENT_ALONG_EDGE_MASK
          Placement specifier mask.
static byte PLACEMENT_ON_SIDE_OF_EDGE_MASK
          Placement specifier mask.
 

Field Detail

PLACE_AT_SOURCE

static final byte PLACE_AT_SOURCE
Preferred placement specifier for edge labels. Expresses that the label should be placed near the source node of an edge.

See Also:
Constant Field Values

PLACE_AT_TARGET

static final byte PLACE_AT_TARGET
Preferred placement specifier for edge labels. Expresses that the label should be placed near the target node of an edge.

See Also:
Constant Field Values

PLACE_AT_CENTER

static final byte PLACE_AT_CENTER
Preferred placement specifier for edge labels. Expresses that the label should be placed near the center of the edge path.

See Also:
Constant Field Values

PLACEMENT_ALONG_EDGE_MASK

static final byte PLACEMENT_ALONG_EDGE_MASK
Placement specifier mask. Masks all placement specifiers that are not one of PLACE_AT_TARGET, PLACE_AT_SOURCE, or PLACE_AT_CENTER.

See Also:
Constant Field Values

PLACE_ON_EDGE

static final byte PLACE_ON_EDGE
Preferred placement specifier for edge labels. Expresses that the label should be placed on the path of the edge.

See Also:
Constant Field Values

PLACE_LEFT_OF_EDGE

static final byte PLACE_LEFT_OF_EDGE
Preferred placement specifier for edge labels. Expresses that the label should be placed on the left hand side of the edge path if looking from the source node into the direction of the target node.

See Also:
Constant Field Values

PLACE_RIGHT_OF_EDGE

static final byte PLACE_RIGHT_OF_EDGE
Preferred placement specifier for edge labels. Expresses that the label should be placed on the right hand side of the edge path if looking from the source node into the direction of the target node.

See Also:
Constant Field Values

PLACEMENT_ON_SIDE_OF_EDGE_MASK

static final byte PLACEMENT_ON_SIDE_OF_EDGE_MASK
Placement specifier mask. Masks all placement specifiers that are not one of PLACE_ON_EDGE, PLACE_LEFT_OF_EDGE, or PLACE_RIGHT_OF_EDGE.

See Also:
Constant Field Values

PLACE_ANYWHERE

static final byte PLACE_ANYWHERE
Preferred placement specifier for edge labels. Expresses that the label can be placed anywhere along the edge or on any side of the edge.

See Also:
Constant Field Values

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