# HG changeset patch # User Ingo Weinzierl # Date 1264439161 0 # Node ID f598702b2a10a2c18bf10fc7269105aa3d89d5c5 # Parent 4cbcc130cffca5af4e77622676b53b929cf73f61 Fixed issue157: Verticalcrosssection charts have a white background as all other chart types have. gnv-artifacts/trunk@623 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 4cbcc130cffc -r f598702b2a10 gnv-artifacts/ChangeLog --- a/gnv-artifacts/ChangeLog Mon Jan 25 16:15:31 2010 +0000 +++ b/gnv-artifacts/ChangeLog Mon Jan 25 17:06:01 2010 +0000 @@ -1,3 +1,13 @@ +2010-01-25 Ingo Weinzierl + + Issue157 + + * src/main/java/de/intevation/gnv/chart/VerticalCrossSectionChart.java: + Added method to adjust background color of this chart. + + * src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java: + Set white background as all other charts have. + 2010-01-25 Ingo Weinzierl Issue160 diff -r 4cbcc130cffc -r f598702b2a10 gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalCrossSectionChart.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalCrossSectionChart.java Mon Jan 25 16:15:31 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalCrossSectionChart.java Mon Jan 25 17:06:01 2010 +0000 @@ -210,7 +210,12 @@ if (chart == null) { chart = createChart(); } + return chart; } + + public void setBackgroundPaint(Paint paint) { + chart.setBackgroundPaint(paint); + } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : diff -r 4cbcc130cffc -r f598702b2a10 gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java --- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java Mon Jan 25 16:15:31 2010 +0000 +++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java Mon Jan 25 17:06:01 2010 +0000 @@ -59,6 +59,7 @@ import de.intevation.gnv.utils.StringUtils; import de.intevation.gnv.utils.WKTUtils; +import java.awt.Color; import java.awt.Dimension; import java.awt.Paint; @@ -574,6 +575,7 @@ chartLables); chart.generateChart(); + ((VerticalCrossSectionChart)chart).setBackgroundPaint(Color.WHITE); if (CACHE_CHART) { log.info("Put chart into cache.");