1 /*
2 * Copyright (c) 2005, the JUNG Project and the Regents of the University of
3 * California All rights reserved.
4 *
5 * This software is open-source under the BSD license; see either "license.txt"
6 * or http://jung.sourceforge.net/license.txt for a description.
7 *
8 * Created on Apr 16, 2005
9 */
10
11 package edu.uci.ics.jung.visualization.transform.shape;
12
13 import java.awt.Shape;
14
15 /**
16 * Provides methods to map points from one coordinate system to
17 * another: graph to screen and screen to graph.
18 * The flatness parameter is used to break a curved shape into
19 * smaller segments in order to perform a more detailed
20 * transformation.
21 *
22 * @author Tom Nelson
23 */
24 public interface ShapeFlatnessTransformer extends ShapeTransformer {
25
26 /**
27 * map a shape from graph coordinate system to the
28 * screen coordinate system
29 * @param shape
30 * @param flatness used to break the supplied shape into segments
31 * @return a GeneralPath (Shape) representing the screen points of the shape
32 */
33 Shape transform(Shape shape, float flatness);
34
35 }