MetaDone
|
Public Member Functions | |
CurvedConnectionWidget (Scene scene) | |
Protected Member Functions | |
void | paintWidget () |
Shape | drawablePath (ArrayList< Point > points) |
Private Member Functions | |
ArrayList< Point > | addToPath (ArrayList< Point > path, int x, int y) |
double | getSourceAnchorShapeRotation_copy () |
A connection widget that will draw a curve instead of a straight line between the defined control points.
metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.CurvedConnectionWidget | ( | Scene | scene | ) |
Initializes this connection.
scene | The scene |
ArrayList<Point> metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.addToPath | ( | ArrayList< Point > | path, |
int | x, | ||
int | y | ||
) | [private] |
Shape metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.drawablePath | ( | ArrayList< Point > | points | ) | [protected] |
Creates a path for the given points.
points | The points |
References metadone.util.PointUtil.middle(), metadone.util.PointUtil.minus(), and metadone.util.PointUtil.plus().
Referenced by metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.paintWidget().
double metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.getSourceAnchorShapeRotation_copy | ( | ) | [private] |
void metadone.client.grasyla2.visuallibrary.widgets.CurvedConnectionWidget.paintWidget | ( | ) | [protected] |