Mercurial > dive4elements > river
changeset 2083:b52012d538af
Fixed issue432 (legenditem-size ignored for area legend items).
flys-artifacts/trunk@3599 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 05 Jan 2012 14:32:44 +0000 |
parents | 007a8f5ed9f1 |
children | a5f327849b85 |
files | flys-artifacts/ChangeLog flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java |
diffstat | 2 files changed, 11 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/flys-artifacts/ChangeLog Thu Jan 05 14:29:54 2012 +0000 +++ b/flys-artifacts/ChangeLog Thu Jan 05 14:32:44 2012 +0000 @@ -1,3 +1,12 @@ +2011-01-05 Felix Wolfsteller <felix.wolfsteller@intevation.de> + + flys/issue432 (Diagrammeigenschaften/Flächenrenderer: + Legenden-schriftgröße für Flächenthemen wird ignoriert) + + * src/main/java/de/intevation/flys/exports/XYChartGenerator.java: + Respect legend item size when generating legend items for + area dataseries. + 2011-12-09 Raimund Renkert <raimund.renkert@intevation.de> Implemented new module "new map".
--- a/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Thu Jan 05 14:29:54 2012 +0000 +++ b/flys-artifacts/src/main/java/de/intevation/flys/exports/XYChartGenerator.java Thu Jan 05 14:32:44 2012 +0000 @@ -743,6 +743,7 @@ } + /** Creates Font (Family and size) to use when creating Legend Items. */ protected Font createLegendLabelFont() { return new Font( DEFAULT_FONT_NAME, @@ -999,7 +1000,6 @@ renderer.addAnnotation(ta); } } - } // (Re-)Add prior legend entries. @@ -1160,6 +1160,7 @@ LegendItem legendItem = dRenderer.getLegendItem(idx, 0); if (legendItem != null) { + legendItem.setLabelFont(legendFont); lic.add(legendItem); } else {