Source code: com/arranger/jarl/util/IWidgetTransform.java
1 package com.arranger.jarl.util;
2
3 import java.awt.geom.Point2D;
4
5 /**
6 * IWidgetTransform created on Mar 2, 2003
7 */
8 public interface IWidgetTransform {
9
10 /**
11 * Initialize the transform, returning the offset if needed
12 *
13 * @param shapePoints the original shape points
14 * @return the offset into the array of points. return 0 for no offset
15 */
16 public double initializeTransform(Point2D[] shapePoints);
17
18 /**
19 * Generate a series of points that will be used to transform
20 * other lines
21 *
22 * @param distance the total x requested (pt[N].x - pt[0].x == x)
23 * @param offset an offset into the internal algortihm
24 * @param precision how frequent to get points
25 * @return an arry of points of the form: x1, y1, x2, y2, .... xN, yN
26 */
27 public double[] getPoints(double distance, double offset, double precision);
28
29 /**
30 * Whether or not to reverse through the points
31 * @return true for reversing, false for normal
32 */
33 public boolean isReverse();
34 }