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 |
/** |
/** |
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); |