/[schmitzm]/branches/2.4.x/src/skrueger/geotools/LegendIconFeatureRenderer.java
ViewVC logotype

Diff of /branches/2.4.x/src/skrueger/geotools/LegendIconFeatureRenderer.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1270 by alfonx, Sun Nov 14 00:25:52 2010 UTC revision 1276 by alfonx, Tue Nov 16 11:51:41 2010 UTC
# Line 101  public class LegendIconFeatureRenderer { Line 101  public class LegendIconFeatureRenderer {
101          private LegendIconFeatureRenderer() {          private LegendIconFeatureRenderer() {
102          }          }
103    
104          final static LegendIconFeatureRenderer instance = new LegendIconFeatureRenderer();          /**
105             * We have to return new instances here. Otherwise the sample features are
106             * not recreated and the sizes of the previews are locaked to the size of
107             * the first request.
108             */
109          public static LegendIconFeatureRenderer getInstance() {          public static LegendIconFeatureRenderer getInstance() {
110                  return instance;                  return new LegendIconFeatureRenderer();
111          }          }
112    
113          /**          /**
# Line 307  public class LegendIconFeatureRenderer { Line 310  public class LegendIconFeatureRenderer {
310           * Define Java2D and other Hints           * Define Java2D and other Hints
311           *           *
312           * @param hints           * @param hints
313           * @author <a href="mailto:[email protected]">Stefan Alfons Tzeggai</a>           * @author <a href="mailto:[email protected]">Stefan Alfons Tzeggai</a>
314           */           */
315          public void setHints(Hints hints) {          public void setHints(Hints hints) {
316                  getHints().add(hints);                  getHints().add(hints);

Legend:
Removed from v.1270  
changed lines
  Added in v.1276

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26