[Schmitzm-commits] r1974 - trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Wed May 2 13:00:34 CEST 2012


Author: alfonx
Date: 2012-05-02 13:00:34 +0200 (Wed, 02 May 2012)
New Revision: 1974

Modified:
   trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledLayerUtil.java
Log:
Vorbereitung f?\195?\188r https://trac.wikisquare.de/gp/ticket/79

Modified: trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledLayerUtil.java
===================================================================
--- trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledLayerUtil.java	2012-04-26 16:43:59 UTC (rev 1973)
+++ trunk/schmitzm-gt/src/main/java/de/schmitzm/geotools/styling/StyledLayerUtil.java	2012-05-02 11:00:34 UTC (rev 1974)
@@ -1092,12 +1092,11 @@
 						Symbolizer fixSymbolizer = ChartGraphic
 								.getFixDataLegendSymbolizer(pointSymbolizer);
 
-						Double maxValue = new ChartGraphic(
-								pointSymbolizer.getGraphic()).getMaxValue();
+						Double maxValue = cg.getMaxValue();
 
 						// TODO https://trac.wikisquare.de/gp/ticket/79
-						fixSymbolizer = ChartGraphic.addLegendLabels(
-								fixSymbolizer, maxValue);
+						// fixSymbolizer = ChartGraphic.addLegendLabels(
+						// fixSymbolizer, maxValue);
 
 						SimpleFeatureType ftpoint = FeatureUtil
 								.createFeatureType(Point.class);
@@ -1108,9 +1107,28 @@
 								.getInstance().createImageForSymbolizer(
 										fixSymbolizer,
 										ftpoint,
-										new Dimension(chartLegendIconSize + 20,
+										new Dimension(chartLegendIconSize,
 												chartLegendIconSize));
 
+//						// HIER
+//						// WENN horiz-chart
+//						int dX = 50;
+//						BufferedImage newimage = new BufferedImage(
+//								chartImage.getWidth() + dX,
+//								chartImage.getHeight(),
+//								BufferedImage.TYPE_4BYTE_ABGR);
+//						Graphics2D g2 = newimage.createGraphics();
+//
+//						int stringWidth = g2.getFontMetrics().stringWidth("sdsd");
+//												
+//						g2.drawString("Helklo Word", 5, 5);
+//						g2.drawString("" + maxValue, 5, 5);
+//						g2.drawString("" + 0, 5, 5);
+//						g2.drawImage(chartImage, 0, 0, null);
+//						g2.dispose();
+
+//						final JLabel iconLabel = new JLabel(new ImageIcon(
+//								newimage));
 						final JLabel iconLabel = new JLabel(new ImageIcon(
 								chartImage));
 



More information about the Schmitzm-commits mailing list