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; |
44 |
// GeoMapPane(null,null,null,null, new StreamingRenderer()); |
// GeoMapPane(null,null,null,null, new StreamingRenderer()); |
45 |
// New Code uses Streaming renderer. |
// New Code uses Streaming renderer. |
46 |
protected final GeoMapPane geoMapPane = new GeoMapPane(null, null, null, |
protected final GeoMapPane geoMapPane = new GeoMapPane(null, null, null, |
47 |
null, new StreamingRenderer()); |
null, new TransitionShapefileRenderer()); |
48 |
|
|
49 |
private MapPaneToolBar jToolBar; |
private MapPaneToolBar jToolBar; |
50 |
|
|
53 |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
54 |
* some buttons floating over the {@link JMapPane} |
* some buttons floating over the {@link JMapPane} |
55 |
*/ |
*/ |
56 |
public MapView(Window parentGui, MapPaneToolBar toolBar) { |
public MapView(Component parentGui, MapPaneToolBar toolBar) { |
57 |
super(new BorderLayout()); |
super(new BorderLayout()); |
58 |
// Call initialize() by yourself afterwards. |
// Call initialize() by yourself afterwards. |
59 |
// Needed because variables for the overwritten methods |
// Needed because variables for the overwritten methods |
69 |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
* {@link GeoMapPane}, a {@link MapContextManagerInterface} on the left, and |
70 |
* some buttons floating over the {@link JMapPane} |
* some buttons floating over the {@link JMapPane} |
71 |
*/ |
*/ |
72 |
public MapView(Window parentGui) { |
public MapView(Component parentGui) { |
73 |
this(parentGui, null); |
this(parentGui, null); |
74 |
} |
} |
75 |
|
|