[Schmitzm-commits] r1903 - trunk/schmitzm-jfree/src/main/java/de/schmitzm/jfree

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Thu Mar 15 11:57:18 CET 2012


Author: mojays
Date: 2012-03-15 11:57:18 +0100 (Thu, 15 Mar 2012)
New Revision: 1903

Modified:
   trunk/schmitzm-jfree/src/main/java/de/schmitzm/jfree/JFreeChartUtil.java
Log:
JFreeChartUtil: constants for dummy shape and stroke

Modified: trunk/schmitzm-jfree/src/main/java/de/schmitzm/jfree/JFreeChartUtil.java
===================================================================
--- trunk/schmitzm-jfree/src/main/java/de/schmitzm/jfree/JFreeChartUtil.java	2012-03-14 20:58:37 UTC (rev 1902)
+++ trunk/schmitzm-jfree/src/main/java/de/schmitzm/jfree/JFreeChartUtil.java	2012-03-15 10:57:18 UTC (rev 1903)
@@ -32,7 +32,9 @@
 import java.awt.BasicStroke;
 import java.awt.Color;
 import java.awt.Font;
+import java.awt.Shape;
 import java.awt.Stroke;
+import java.awt.geom.Line2D;
 import java.text.DecimalFormat;
 import java.util.HashMap;
 import java.util.List;
@@ -161,7 +163,11 @@
 	 *  */
 	public static final String DUMMY_SERIES_PREFIX = "DUMMY_"; 
 	
-
+	/** Dummy {@link Shape} in case you do not need it, but must specify some. */
+	public static final Shape UNUSED_SHAPE = new Line2D.Float();
+	/** Dummy {@link Stroke} in case you do not need it, but must specify some. */
+	public static final Stroke UNUSED_STROKE = new BasicStroke(0.0f);
+	
 	/**
 	 * Sets all chart legends (in)visible.
 	 * 



More information about the Schmitzm-commits mailing list