1 /* 2 * Copyright 2003-2004, Franz-Josef Elmer, All rights reserved 3 * 4 * This library is free software; you can redistribute it and/or modify 5 * it under the terms of the GNU Lesser General Public License as published by 6 * the Free Software Foundation; either version 2.1 of the License, or 7 * (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU Lesser General Public License for more details 13 * (http://www.gnu.org/copyleft/lesser.html). 14 * 15 * You should have received a copy of the GNU Lesser General Public License 16 * along with this library; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 */ 19 package jcckit.plot; 20 21 import jcckit.graphic.GraphicalElement; 22 import jcckit.graphic.ClippingShape; 23 import jcckit.transformation.Transformation; 24 25 /** 26 * Interface for all generators of coordinate systems. A 27 * <tt>CoordinateSystem</tt> creates a 28 * {@link jcckit.graphic.GraphicalComposite} which contains all the 29 * {@link GraphicalElement GraphicalElements} defining axes, labels, grid, etc. 30 * 31 * @author Franz-Josef Elmer 32 */ 33 public interface CoordinateSystem { 34 /** 35 * Returns the graphical representation of a coordinate 36 * system. Different invocations of this method may return 37 * different coordinate systems, e.g., due to changes in the 38 * transformation or clipping shapes. 39 */ 40 public GraphicalElement getView(); 41 42 /** 43 * Returns the clipping chape of {@link Curve Curves} drawn on top 44 * of the coordinates system. Different invocations of 45 * this method may return different clipping shapes. 46 */ 47 public ClippingShape getClippingShape(); 48 49 /** 50 * Returns the transformation between data coordinates and 51 * device-independent graphcial coordinates. Different invocations 52 * of this method may return different transformations. 53 */ 54 public Transformation getTransformation(); 55 } 56