Package | Description |
---|---|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
Modifier and Type | Field and Description |
---|---|
static EdgeSides |
EdgeSides.ABOVE_EDGE
The label should be placed above the edge (in geometric sense).
|
static EdgeSides |
EdgeSides.BELOW_EDGE
The label should be placed below the edge (in geometric sense).
|
static EdgeSides |
EdgeSides.LEFT_OF_EDGE
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.
|
static EdgeSides |
EdgeSides.ON_EDGE
The label should be placed on the path of the edge.
|
static EdgeSides |
EdgeSides.RIGHT_OF_EDGE
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.
|
Modifier and Type | Method and Description |
---|---|
static EdgeSides |
EdgeSides.fromName(String name) |
static EdgeSides |
EdgeSides.fromOrdinal(int value) |
protected EdgeSides |
EdgeSides.fromOrdinalImpl(int ordinal) |
protected EdgeSides[] |
EdgeSides.getItems() |
EdgeSides |
EdgeSegmentLabelModel.getSideOfEdge()
Gets the side placement specifiers for edge labels.
|
EdgeSides |
EdgePathLabelModel.getSideOfEdge()
Gets the side placement specifiers for edge labels.
|
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromCenter(double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter where the label is attached to the edge segment that contains the edge's midpoint.
|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromSource(int segmentIndex,
double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter that measures the provided segment index from the source side of the edge path.
|
ILabelModelParameter |
EdgeSegmentLabelModel.createParameterFromTarget(int segmentIndex,
double segmentRatio,
EdgeSides sideOfEdge)
Creates a parameter that measures the provided segment index from the target side of the edge path.
|
ILabelModelParameter |
EdgePathLabelModel.createRatioParameter(double edgePathRatio,
EdgeSides sideOfEdge)
Creates a parameter at the provided edge path ratio.
|
void |
EdgeSegmentLabelModel.setSideOfEdge(EdgeSides value)
Sets the side placement specifiers for edge labels.
|
void |
EdgePathLabelModel.setSideOfEdge(EdgeSides value)
Sets the side placement specifiers for edge labels.
|
Constructor and Description |
---|
EdgePathLabelModel(double distance,
double offset,
double angle,
boolean autoRotationEnabled,
EdgeSides sideOfEdge)
Initializes a new instance of the
EdgePathLabelModel class. |
EdgeSegmentLabelModel(double distance,
double offset,
double angle,
boolean autoRotationEnabled,
EdgeSides sideOfEdge)
Initializes a new instance of the
EdgeSegmentLabelModel class. |