Mercurial > dive4elements > gnv-client
changeset 527:f598702b2a10
Fixed issue157: Verticalcrosssection charts have a white background as all other chart types have.
gnv-artifacts/trunk@623 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 25 Jan 2010 17:06:01 +0000 |
parents | 4cbcc130cffc |
children | 44415ae01ddb |
files | gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/chart/VerticalCrossSectionChart.java gnv-artifacts/src/main/java/de/intevation/gnv/state/profile/verticalcrosssection/VerticalCrossSectionOutputState.java |
diffstat | 3 files changed, 17 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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 <ingo.weinzierl@intevation.de> + + 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 <ingo.weinzierl@intevation.de> Issue160
--- 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 :
--- 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.");