Search this API

y.layout
Class FreeEdgeLabelModel.ModelParameter

java.lang.Object
  extended by y.layout.FreeEdgeLabelModel.ModelParameter
Enclosing class:
FreeEdgeLabelModel

public static class FreeEdgeLabelModel.ModelParameter
extends Object

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

FreeEdgeLabelModel.ModelParameter

public FreeEdgeLabelModel.ModelParameter()
Creates a new instance of FreeEdgeLabelModel.ModelParameter with radius 50 and angle 0.


FreeEdgeLabelModel.ModelParameter

public FreeEdgeLabelModel.ModelParameter(double radius,
                                         double theta)
Creates a new instance of FreeEdgeLabelModel.ModelParameter with given radius and angle.

Parameters:
radius - the distance of the label from the source node of the underlying edge
theta - 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.

FreeEdgeLabelModel.ModelParameter

public FreeEdgeLabelModel.ModelParameter(double radius,
                                         double theta,
                                         double angle)
Creates a new instance of FreeEdgeLabelModel.ModelParameter with given radius and angle.

Parameters:
radius - the distance of the label from the source node of the underlying edge
theta - 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

getAngle

public double getAngle()
Returns the rotation angle of the label defined by this label position.


setAngle

public void setAngle(double angle)
Specifies the rotation angle of the label defined by this label position.


getPoint

public 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.


setPoint

public void setPoint(double radius,
                     double theta)
Sets angle and radius for this class. The x-coordinate of the given point holds the radius, the y-coordinate the angle.


toString

public String toString()
Overrides:
toString in class Object

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.