| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
package org.locationtech.jts.awt; |
| 13 |
|
| 14 |
import java.awt.geom.Point2D; |
| 15 |
|
| 16 |
import org.locationtech.jts.geom.Coordinate; |
| 17 |
import org.locationtech.jts.geom.Point; |
| 18 |
|
| 19 |
/** |
| 20 |
* Transforms a geometry {@link Coordinate} into a Java2D {@link Point}, |
| 21 |
* possibly with a mathematical transformation of the ordinate values. |
| 22 |
* Transformation from a model coordinate system to a view coordinate system |
| 23 |
* can be efficiently performed by supplying an appropriate transformation. |
| 24 |
* |
| 25 |
* @author Martin Davis |
| 26 |
*/ |
| 27 |
public interface PointTransformation { |
| 28 |
/** |
| 29 |
* Transforms a {@link Coordinate} into a Java2D {@link Point}. |
| 30 |
* |
| 31 |
* @param src the source Coordinate |
| 32 |
* @param dest the destination Point |
| 33 |
*/ |
| 34 |
public void transform(Coordinate src, Point2D dest); |
| 35 |
} |
| 36 |
|