Skip to content
Snippets Groups Projects
Commit 11be7c8a authored by Klaus Becker's avatar Klaus Becker
Browse files

SimpleTrafficLight Example generation brings gross layout currently

refs 373
parent 838853db
No related branches found
No related tags found
No related merge requests found
......@@ -58,6 +58,21 @@ public final class EllipseLayoutUtils {
return p.toCartesian().translate(ellipseSize.getScaled(.5));
}
/**
* returns a degree value for a given radian value
*
* @param rad
* (0-2pi)
* @return the degree (0-360)
*/
public static double getDegreeFromRadian(double rad) {
if (rad >= 0 && rad <= Math.PI * 2) {
return (180 / Math.PI) * rad;
}
// else
return 0.0;
}
/** Layouts the given connector within the surrounding ellipse. */
public static void layoutConnectorInEllipse(ILayoutedModelElement layouted,
ILayoutedModelElement container, Point location) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment