Package | Description |
---|---|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Field and Description |
---|---|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.CENTER
Position specifier that describes a label placement near the middle of the edge, directly on the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.CENTERED
Position mask that constrains the allowed positions to the
CENTER of the edge's path. |
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.HEAD
Position specifier that describes a label placement near the middle of the edge, left/above the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.SIX_POS
Position mask that constrains the allowed positions to a set of six positions beside the edge path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.SOURCE_CENTER
Position specifier that describes a label placement near the source, directly on the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.SOURCE_HEAD
Position specifier that describes a label placement near the source, left/above the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.SOURCE_TAIL
Position specifier that describes a label placement near the source, right/below the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.TAIL
Position specifier that describes a label placement near the middle of the edge, right/below the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.TARGET_CENTER
Position specifier that describes a label placement near the target, directly on the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.TARGET_HEAD
Position specifier that describes a label placement near the target, left/above the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.TARGET_TAIL
Position specifier that describes a label placement near the target, right/below the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.THREE_CENTER
Position mask that constrains the allowed positions to a set of three positions directly on the edge's path.
|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.TWO_POS
Position mask that constrains the allowed positions to the two locations near the middle of the edge beside the edge's
path.
|
Modifier and Type | Method and Description |
---|---|
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.fromName(String name) |
static DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.fromOrdinal(int value) |
protected DiscreteEdgeLabelPositions |
DiscreteEdgeLabelPositions.fromOrdinalImpl(int ordinal) |
DiscreteEdgeLabelPositions |
DiscreteEdgeLabelLayoutModel.getCandidateMask()
Gets the candidate mask which specifies the valid positions for edge labels.
|
protected DiscreteEdgeLabelPositions[] |
DiscreteEdgeLabelPositions.getItems() |
Modifier and Type | Method and Description |
---|---|
protected YOrientedRectangle |
DiscreteEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout,
DiscreteEdgeLabelPositions position)
Returns the oriented box of the label for the given label position.
|
Constructor and Description |
---|
DiscreteEdgeLabelLayoutModel(DiscreteEdgeLabelPositions candidateMask)
Creates a new instance of
DiscreteEdgeLabelLayoutModel using the given candidate mask. |