[Schmitzm-commits] r282 - in trunk/src/schmitzm/jfree: . chart/renderer

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Sat Aug 1 23:27:39 CEST 2009


Author: mojays
Date: 2009-08-01 23:27:39 +0200 (Sat, 01 Aug 2009)
New Revision: 282

Modified:
   trunk/src/schmitzm/jfree/JFreeChartUtil.java
   trunk/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java
Log:
JFreeChartUtil.createXYRenderer(..): XYLineAndShapeRenderer replaced with SelectionXYLineAndShapeRenderer
SelectionXYLineAndShapeRenderer: removed some unused code

Modified: trunk/src/schmitzm/jfree/JFreeChartUtil.java
===================================================================
--- trunk/src/schmitzm/jfree/JFreeChartUtil.java	2009-08-01 21:17:56 UTC (rev 281)
+++ trunk/src/schmitzm/jfree/JFreeChartUtil.java	2009-08-01 21:27:39 UTC (rev 282)
@@ -164,7 +164,7 @@
                  if ( stepped )
                    return new XYStepRenderer();
                  // normal line renderer
-                 return new XYLineAndShapeRenderer(true, false);
+                 return new SelectionXYLineAndShapeRenderer(true, false);
       case AREA: // Apply stacked
                  if ( stacked ) {
                    // "stacked" and "stepped" can not be applied the same time

Modified: trunk/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java
===================================================================
--- trunk/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java	2009-08-01 21:17:56 UTC (rev 281)
+++ trunk/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java	2009-08-01 21:27:39 UTC (rev 282)
@@ -215,15 +215,11 @@
     Paint origPaint = getSeriesPaint(series);
 
     // if selection model and color is set and the item is selected
-    // the hightlighting selection color is (temporary) set for the
+    // the highlighting selection color is (temporary) set for the
     // rendering process
     if ( getSelectionModel() != null ) {
       Paint selPaint  = getSelectionPaint(series);
       if ( selPaint != null ) {
-        if ( item == 80 ) {
-          item ++;
-          item --;
-        }
         Comparable seriesKey = dataset.getSeriesKey(series);
         if ( selectionModel.isItemSelected(seriesKey, item) )
           setSeriesPaint( series, selPaint, false );



More information about the Schmitzm-commits mailing list