[Schmitzm-commits] r502 - branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/renderer
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Oct 27 11:24:18 CET 2009
Author: mojays
Date: 2009-10-27 11:24:18 +0100 (Tue, 27 Oct 2009)
New Revision: 502
Modified:
branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java
Log:
Modified: branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java
===================================================================
--- branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java 2009-10-27 10:19:08 UTC (rev 501)
+++ branches/1.0-gt2-2.6/src/schmitzm/jfree/chart/renderer/SelectionXYLineAndShapeRenderer.java 2009-10-27 10:24:18 UTC (rev 502)
@@ -267,6 +267,7 @@
// Save the normal rendering color
Paint origPaint = getSeriesPaint(series);
+ Paint origOutlinePaint = getSeriesOutlinePaint(series);
// if selection model and color is set and the item is selected
// the highlighting selection color is (temporary) set for the
@@ -275,10 +276,15 @@
Paint selPaint = getSelectionPaint(series);
if ( selPaint != null ) {
Comparable seriesKey = dataset.getSeriesKey(series);
- if ( selectionModel.isItemSelected(seriesKey, item) )
+ if ( selectionModel.isItemSelected(seriesKey, item) ) {
setSeriesPaint( series, selPaint, false );
- else
+ if (getSelectionOutlinePaint() != null)
+ setSeriesOutlinePaint(series, selectionOutlinePaint, false );
+
+ } else {
setSeriesPaint( series, origPaint, false );
+ setSeriesOutlinePaint(series, origOutlinePaint, false );
+ }
} else
LOGGER.warn("No selection paint set for series "+series+". Series is rendererd normally.");
} else
More information about the Schmitzm-commits
mailing list