|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.yworks.yfiles.server.graphml.flexio.data.RotatedSideSliderEdgeLabelModel
A yFiles FLEX client rotated side slider edge label model data object
Nested Class Summary | |
static class |
RotatedSideSliderEdgeLabelModel.ModelParameter
Model parameter for the rotated side slider edge label model. |
Constructor Summary | |
RotatedSideSliderEdgeLabelModel()
|
|
RotatedSideSliderEdgeLabelModel(double distance,
double angle,
boolean distanceRelativeToEdge,
boolean autoRotationEnabled)
|
Method Summary | |
ILabelModelParameter |
createDefaultParameter()
Creates a default parameter that can be used for this model. |
MarkupExtension |
createMarkupExtension(Lookup lookup)
Creates a markup extension that can be used instead of the original class. |
ILabelModelParameter |
createParameterFromSource(int segmentIndex,
double segmentRatio,
boolean rightOfEdge)
Creates a parameter that measures the provided segment index from the source side of the edge path. |
ILabelModelParameter |
createParameterFromTarget(int segmentIndex,
double segmentRatio,
boolean rightOfEdge)
Creates a parameter that measures the provided segment index from the target side of the edge path. |
double |
getAngle()
The angle the labels are rotated about. |
double |
getDistance()
The distance between the label and the edge's path. |
boolean |
isAutoRotationEnabled()
Whether edge labels are automatically rotated according to the angle of the corresponding reference edge segment. |
boolean |
isDistanceRelativeToEdge()
Whether distance to the edge is interpreted relatively to the edge's path. |
void |
setAngle(double angle)
The angle the labels are rotated about. |
void |
setAutoRotationEnabled(boolean autoRotationEnabled)
Whether edge labels are automatically rotated according to the angle of the corresponding reference edge segment. |
void |
setDistance(double distance)
The distance between the label and the edge's path. |
void |
setDistanceRelativeToEdge(boolean distanceRelativeToEdge)
Whether distance to the edge is interpreted relatively to the edge's path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RotatedSideSliderEdgeLabelModel()
public RotatedSideSliderEdgeLabelModel(double distance, double angle, boolean distanceRelativeToEdge, boolean autoRotationEnabled)
Method Detail |
public double getAngle()
public void setAngle(double angle)
public double getDistance()
0
will make the label's appear centered on the edge's path.
public void setDistance(double distance)
0
will make the label's appear centered on the edge's path.
public boolean isDistanceRelativeToEdge()
false
,
positive distance
values will make the label appear above the edge, otherwise they will appear left of
the edge.
public void setDistanceRelativeToEdge(boolean distanceRelativeToEdge)
false
,
positive distance
values will make the label appear above the edge, otherwise they will appear left of
the edge.
public boolean isAutoRotationEnabled()
public void setAutoRotationEnabled(boolean autoRotationEnabled)
public ILabelModelParameter createDefaultParameter()
ILabelModel
createDefaultParameter
in interface ILabelModel
public ILabelModelParameter createParameterFromSource(int segmentIndex, double segmentRatio, boolean rightOfEdge)
segmentIndex
- The zero-based index of the segment beginning from the source side.segmentRatio
- The ratio at which to place the label at the segment. A ratio of
0.0 will place the label at the source side of the segment, a ratio of 1.0 at the target
side. Ratios < 0.0 or > 1.0 will be interpreted as absolute values in world coordinates.rightOfEdge
- Determines whether the label should be placed right or left of the edge.
public ILabelModelParameter createParameterFromTarget(int segmentIndex, double segmentRatio, boolean rightOfEdge)
segmentIndex
- The zero-based index of the segment beginning from the target side.segmentRatio
- The ratio at which to place the label at the segment. A ratio of
0.0 will place the label at the target side of the segment, a ratio of 1.0 at the source
side. Ratios < 0.0 or > 1.0 will be interpreted as absolute values in world coordinates.rightOfEdge
- Determines whether the label should be placed right or left of the edge.
public MarkupExtension createMarkupExtension(Lookup lookup)
createMarkupExtension
in interface IMarkupExtensionFactory
lookup
- The lookup that shall be considered when creating the markup extension.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |