View Javadoc

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  import edu.uci.ics.jung.visualization.transform.BidirectionalTransformer;
16  
17  /**
18   * Provides methods to map points from one coordinate system to
19   * another: graph to screen and screen to graph.
20   * 
21   * @author Tom Nelson 
22   */
23  public interface  ShapeTransformer extends BidirectionalTransformer {
24      
25      /**
26       * map a shape from graph coordinate system to the
27       * screen coordinate system
28       * @param shape
29       * @return a GeneralPath (Shape) representing the screen points of the shape
30       */
31      Shape transform(Shape shape);
32      
33      Shape inverseTransform(Shape shape);
34  }