|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.FreeEdgeLabelModel.ModelParameter
public static class FreeEdgeLabelModel.ModelParameter
The model parameters for the FreeEdgeLabelModel
.
Constructor Summary | |
---|---|
FreeEdgeLabelModel.ModelParameter()
Creates a new instance of FreeEdgeLabelModel.ModelParameter with radius 50
and angle 0 . |
|
FreeEdgeLabelModel.ModelParameter(double radius,
double theta)
Creates a new instance of FreeEdgeLabelModel.ModelParameter with given radius and angle. |
|
FreeEdgeLabelModel.ModelParameter(double radius,
double theta,
double angle)
Creates a new instance of FreeEdgeLabelModel.ModelParameter with given radius and angle. |
Method Summary | |
---|---|
double |
getAngle()
Returns the rotation angle of the label defined by this label position. |
YPoint |
getPoint()
Returns a point whose x-coordinate corresponds to the radius associated with this class and whose y-coordinate corresponds to the angle associated with this class. |
void |
setAngle(double angle)
Specifies the rotation angle of the label defined by this label position. |
void |
setPoint(double radius,
double theta)
Sets angle and radius for this class. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FreeEdgeLabelModel.ModelParameter()
FreeEdgeLabelModel.ModelParameter
with radius 50
and angle 0
.
public FreeEdgeLabelModel.ModelParameter(double radius, double theta)
FreeEdgeLabelModel.ModelParameter
with given radius and angle.
radius
- the distance of the label from the source node of the underlying edgetheta
- the angle between the first segment of the underlying edge and the imaginary line to the center of
the label. the angle is measured in radian.public FreeEdgeLabelModel.ModelParameter(double radius, double theta, double angle)
FreeEdgeLabelModel.ModelParameter
with given radius and angle.
radius
- the distance of the label from the source node of the underlying edgetheta
- the angle between the first segment of the underlying edge and the
imaginary line to the center of the label. the angle is measured in radian.angle
- the rotation angle of the label.Method Detail |
---|
public double getAngle()
public void setAngle(double angle)
public YPoint getPoint()
public void setPoint(double radius, double theta)
public String toString()
toString
in class Object
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |