[Schmitzm-commits] r183 - in trunk/src/schmitzm/jfree: . style style/feature

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 3 15:02:27 CEST 2009


Author: mojays
Date: 2009-07-03 15:02:26 +0200 (Fri, 03 Jul 2009)
New Revision: 183

Added:
   trunk/src/schmitzm/jfree/style/
   trunk/src/schmitzm/jfree/style/feature/
   trunk/src/schmitzm/jfree/style/feature/FeatureChartStyle.java
Log:
new FeatureChartStyle interface (not yet final)

Added: trunk/src/schmitzm/jfree/style/feature/FeatureChartStyle.java
===================================================================
--- trunk/src/schmitzm/jfree/style/feature/FeatureChartStyle.java	2009-07-03 12:44:59 UTC (rev 182)
+++ trunk/src/schmitzm/jfree/style/feature/FeatureChartStyle.java	2009-07-03 13:02:26 UTC (rev 183)
@@ -0,0 +1,34 @@
+/** SCHMITZM - This file is part of the java library of Martin O.J. Schmitz (SCHMITZM)
+
+    This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
+    This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+    You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
+
+    Diese Bibliothek ist freie Software; Sie dürfen sie unter den Bedingungen der GNU Lesser General Public License, wie von der Free Software Foundation veröffentlicht, weiterverteilen und/oder modifizieren; entweder gemäß Version 2.1 der Lizenz oder (nach Ihrer Option) jeder späteren Version.
+    Diese Bibliothek wird in der Hoffnung weiterverbreitet, daß sie nützlich sein wird, jedoch OHNE IRGENDEINE GARANTIE, auch ohne die implizierte Garantie der MARKTREIFE oder der VERWENDBARKEIT FÜR EINEN BESTIMMTEN ZWECK. Mehr Details finden Sie in der GNU Lesser General Public License.
+    Sie sollten eine Kopie der GNU Lesser General Public License zusammen mit dieser Bibliothek erhalten haben; falls nicht, schreiben Sie an die Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA.
+ **/
+
+package schmitzm.jfree.style.feature;
+
+import org.geotools.feature.FeatureCollection;
+import org.jfree.chart.JFreeChart;
+
+import schmitzm.jfree.chart.style.ChartStyle;
+
+/**
+ * This interface extends the chart style with several functionalities
+ * used to define a chart on a {@link FeatureCollection}.
+ * @author <a href="mailto:Martin.Schmitz at koeln.de">Martin Schmitz</a>
+ * @version 1.0
+ */
+public interface FeatureChartStyle extends ChartStyle {
+  /**
+   * Creates a chart according to the given 
+   * @param fc  a feature collection
+   * @exception UnsupportedOperationException if the style can not be applied
+   *            to the {@link FeatureCollection} (e.g. the {@link FeatureCollection}
+   *            does not provide the required attributes)
+   */
+  public JFreeChart applyToFeatureCollection(FeatureCollection fc);
+}



More information about the Schmitzm-commits mailing list