|
Zest 1.5.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IConnectionStyleBezierExtension
An extension to the IConnectinStyleProvider that allows styling specific to bezier curves. Bezier curves are defined by a set of four points: two point in the layout (start and end), and two related control points (also start and end). The control points are defined relative to their corresponding layout point. This definition includes an angle between the layout point and the line between the two layout points, as well as a ratio distance from the corresponding layout point. The ratio distance is defined as a fraction between 0 and 1 of the distance between the two layout points. Using this definition allows bezier curves to have a consistant look regardless of the actual positions of the nodes in the layouts.
Method Summary | |
---|---|
double |
getEndAngle(java.lang.Object rel)
Gets the angle between the end point, and the line between the start and end, which will define the position of the end control point. |
double |
getEndDistance(java.lang.Object rel)
Gets the distance between the end point and the end control point, as a fraction of the distance between the start point and end point. |
double |
getStartAngle(java.lang.Object rel)
Gets the angle between the start point, and the line between the start and end, which will define the position of the start control point. |
double |
getStartDistance(java.lang.Object rel)
Gets the distance between the start point and the start control point, as a fraction of the distance between the start point and end point. |
Method Detail |
---|
double getStartAngle(java.lang.Object rel)
rel
- the relationship to base on.
Double.NaN
for defaults.double getEndAngle(java.lang.Object rel)
rel
- the relationship to base on.
Double.NaN
for defaults.double getStartDistance(java.lang.Object rel)
rel
- the relationship to base on.
Double.NaN
for defaults.double getEndDistance(java.lang.Object rel)
rel
- the relationship to base on.
Double.NaN
for defaults.
|
Zest 1.5.0.201305060205 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |