1 /* 2 JOpenChart Java Charting Library and Toolkit 3 Copyright (C) 2001 Sebastian Müller 4 http://jopenchart.sourceforge.net 5 6 This library is free software; you can redistribute it and/or 7 modify it under the terms of the GNU Lesser General Public 8 License as published by the Free Software Foundation; either 9 version 2.1 of the License, or (at your option) any later version. 10 11 This library is distributed in the hope that it will be useful, 12 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 Lesser General Public License for more details. 15 16 You should have received a copy of the GNU Lesser General Public 17 License along with this library; if not, write to the Free Software 18 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 20 ChartDataModelConstraints.java 21 Created on 30. Juni 2001, 22:20 22 */ 23 24 package de.progra.charting.model; 25 26 /** 27 * This interface is used by the rendering algorithm for a coordinate system. 28 * It defines the range of values. 29 * @author mueller 30 * @version 1.0 31 */ 32 public interface ChartDataModelConstraints { 33 34 /** Returns the minimum value of all datasets. 35 * @return a Number object defining the smallest value. 36 */ 37 public Number getMinimumValue(); 38 39 /** Returns the maximum value of all datasets. 40 * @return a Number object defining the maximum value 41 */ 42 public Number getMaximumValue(); 43 44 /** Returns the minimum column value. 45 * @return In the case of non-numeric x-values this should be 0, in the case 46 * of numeric x-values this should nomen est omen be the smallest 47 * value. 48 */ 49 public double getMinimumColumnValue(); 50 51 /** Returns the maximum column value. 52 * @return In the case of non-numeric x-values this should be the amount of columns - 1, in the case of numeric x-values this should nomen est omen be the smallest value. 53 */ 54 public double getMaximumColumnValue(); 55 } 56 57