1 |
package skrueger.geotools; |
package skrueger.geotools; |
2 |
|
|
3 |
import java.awt.BorderLayout; |
import java.awt.BorderLayout; |
4 |
import java.awt.Window; |
import java.awt.Component; |
5 |
|
|
6 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
7 |
import javax.swing.JComponent; |
import javax.swing.JComponent; |
10 |
|
|
11 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
12 |
import org.geotools.renderer.lite.StreamingRenderer; |
import org.geotools.renderer.lite.StreamingRenderer; |
13 |
|
import org.geotools.renderer.shape.TransitionShapefileRenderer; |
14 |
|
|
15 |
import schmitzm.geotools.gui.GeoMapPane; |
import schmitzm.geotools.gui.GeoMapPane; |
16 |
import schmitzm.geotools.gui.JMapPane; |
import schmitzm.geotools.gui.JMapPane; |
35 |
* dargestellt werden. |
* dargestellt werden. |
36 |
*/ |
*/ |
37 |
|
|
38 |
/** |
protected final GeoMapPane geoMapPane = new GeoMapPane(); |
|
* SK: 21.6.09: ShapeFileRenderer is supposed to be about 5x faster on |
|
|
* ShapeFiles. The ShapeFileRenderer falls back to the StreamingRenderer. |
|
|
*/ |
|
|
// Old code: |
|
|
// protected final GeoMapPane geoMapPane = new |
|
|
// GeoMapPane(null,null,null,null, new StreamingRenderer()); |
|
|
// New Code uses Streaming renderer. |
|
|
protected final GeoMapPane geoMapPane = new GeoMapPane(null, null, null, |
|
|
null, new StreamingRenderer()); |
|
39 |
|
|
40 |
private MapPaneToolBar jToolBar; |
private MapPaneToolBar jToolBar; |
41 |
|
|
44 |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
45 |
* some buttons floating over the {@link JMapPane} |
* some buttons floating over the {@link JMapPane} |
46 |
*/ |
*/ |
47 |
public MapView(Window parentGui, MapPaneToolBar toolBar) { |
public MapView(Component parentGui, MapPaneToolBar toolBar) { |
48 |
super(new BorderLayout()); |
super(new BorderLayout()); |
49 |
// Call initialize() by yourself afterwards. |
// Call initialize() by yourself afterwards. |
50 |
// Needed because variables for the overwritten methods |
// Needed because variables for the overwritten methods |
60 |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
61 |
* some buttons floating over the {@link JMapPane} |
* some buttons floating over the {@link JMapPane} |
62 |
*/ |
*/ |
63 |
public MapView(Window parentGui) { |
public MapView(Component parentGui) { |
64 |
this(parentGui, null); |
this(parentGui, null); |
65 |
} |
} |
66 |
|
|