|
||||||||||
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.RotatingEdgeLabelModel
Data object for the yFiles FLEX client's rotating edge label model
Nested Class Summary | |
static class |
RotatingEdgeLabelModel.ModelParameter
|
Constructor Summary | |
RotatingEdgeLabelModel()
|
Method Summary | |
ILabelModelParameter |
createDefaultParameter()
Creates a default parameter that can be used for this model. |
double |
getAngle()
The angle of the label relative to the edge's path. |
double |
getDistance()
Gets or sets a property that determines the distance between the label's center and the anchor point on the edge's path. |
boolean |
isEdgeRelativeDistance()
A property that determines how the distance value should be interpreted.
|
void |
setAngle(double angle)
The angle of the label relative to the edge's path. |
void |
setDistance(double distance)
Gets or sets a property that determines the distance between the label's center and the anchor point on the edge's path. |
void |
setEdgeRelativeDistance(boolean edgeRelativeDistance)
A property that determines how the distance value should be interpreted.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RotatingEdgeLabelModel()
Method Detail |
public ILabelModelParameter createDefaultParameter()
ILabelModel
createDefaultParameter
in interface ILabelModel
public double getAngle()
public void setAngle(double angle)
public double getDistance()
0
makes the label appear centered on the edge's path. Depending on the value of the
edgeRelativeDistance
property, the distance is interpreted differently: If the distance is interpreted
relatively, a positive distance makes the label appear at the left hand of the edge. If the distance is interpreted
absolutely, positive values make the label appear on top of the edge's path, while negative values make it appear
below the path.
#edgeRelativeDistance
public void setDistance(double distance)
0
makes the label appear centered on the edge's path. Depending on the value of the
edgeRelativeDistance
property, the distance is interpreted differently: If the distance is interpreted
relatively, a positive distance makes the label appear at the left hand of the edge. If the distance is interpreted
absolutely, positive values make the label appear on top of the edge's path, while negative values make it appear
below the path.
setEdgeRelativeDistance(boolean)
public boolean isEdgeRelativeDistance()
distance
value should be interpreted.
If the distance is interpreted relatively, a positive distance makes the label appear at the left hand of the edge.
If the distance is interpreted absolutely, positive values make the label appear on top of the edge's path, while
negative values make it appear below the path.
getDistance()
public void setEdgeRelativeDistance(boolean edgeRelativeDistance)
distance
value should be interpreted.
If the distance is interpreted relatively, a positive distance makes the label appear at the left hand of the edge.
If the distance is interpreted absolutely, positive values make the label appear on top of the edge's path, while
negative values make it appear below the path.
getDistance()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |