1 |
package skrueger.geotools; |
package skrueger.geotools; |
2 |
|
|
|
import java.awt.BorderLayout; |
|
3 |
import java.awt.Dimension; |
import java.awt.Dimension; |
|
import java.awt.Window; |
|
4 |
import java.awt.event.ActionEvent; |
import java.awt.event.ActionEvent; |
5 |
import java.util.ArrayList; |
import java.util.ArrayList; |
|
import java.util.LinkedList; |
|
|
import java.util.Map; |
|
6 |
import java.util.SortedMap; |
import java.util.SortedMap; |
7 |
import java.util.TreeMap; |
import java.util.TreeMap; |
8 |
|
|
9 |
import javax.swing.AbstractAction; |
import javax.swing.AbstractAction; |
10 |
import javax.swing.AbstractButton; |
import javax.swing.AbstractButton; |
|
import javax.swing.Action; |
|
11 |
import javax.swing.BorderFactory; |
import javax.swing.BorderFactory; |
12 |
import javax.swing.Icon; |
import javax.swing.Icon; |
13 |
import javax.swing.ImageIcon; |
import javax.swing.ImageIcon; |
14 |
import javax.swing.JButton; |
import javax.swing.JButton; |
|
import javax.swing.JComponent; |
|
|
import javax.swing.JLabel; |
|
|
import javax.swing.JPanel; |
|
|
import javax.swing.JSplitPane; |
|
15 |
import javax.swing.JToggleButton; |
import javax.swing.JToggleButton; |
16 |
import javax.swing.JToolBar; |
import javax.swing.JToolBar; |
17 |
|
|
18 |
import org.apache.log4j.Logger; |
import org.apache.log4j.Logger; |
19 |
|
|
|
import schmitzm.geotools.gui.GeoMapPane; |
|
20 |
import schmitzm.geotools.gui.JMapPane; |
import schmitzm.geotools.gui.JMapPane; |
|
import schmitzm.geotools.gui.MapContextControlPane; |
|
|
import schmitzm.geotools.gui.MapPaneStatusBar; |
|
21 |
import schmitzm.geotools.map.event.JMapPaneEvent; |
import schmitzm.geotools.map.event.JMapPaneEvent; |
22 |
import schmitzm.geotools.map.event.JMapPaneListener; |
import schmitzm.geotools.map.event.JMapPaneListener; |
23 |
import schmitzm.geotools.map.event.MapAreaChangedEvent; |
import schmitzm.geotools.map.event.MapAreaChangedEvent; |
|
import schmitzm.geotools.styling.ColorMapManager; |
|
24 |
import schmitzm.swing.ButtonGroup; |
import schmitzm.swing.ButtonGroup; |
25 |
import schmitzm.swing.SwingUtil; |
import schmitzm.swing.SwingUtil; |
26 |
|
|
55 |
public static final int ACTION_ZOOM_BACK = 100; |
public static final int ACTION_ZOOM_BACK = 100; |
56 |
/** Constant for the action "Zoom forward" (110). */ |
/** Constant for the action "Zoom forward" (110). */ |
57 |
public static final int ACTION_ZOOM_FORWARD = 110; |
public static final int ACTION_ZOOM_FORWARD = 110; |
58 |
|
/** Constant for the action "Search Labels" (120). */ |
59 |
|
public static final int ACTION_SEARCH = 120; |
60 |
|
|
61 |
/** Holds the action buttons of the bar. */ |
/** Holds the action buttons of the bar. */ |
62 |
protected SortedMap<Integer, JButton> actionButtons = null; |
protected SortedMap<Integer, JButton> actionButtons = null; |
225 |
new ImageIcon(MapView.class.getResource("zoom_forward.png")) |
new ImageIcon(MapView.class.getResource("zoom_forward.png")) |
226 |
), false); |
), false); |
227 |
setButtonEnabled( ACTION_ZOOM_FORWARD, false ); |
setButtonEnabled( ACTION_ZOOM_FORWARD, false ); |
228 |
|
|
229 |
} |
} |
230 |
|
|
231 |
/** |
/** |
611 |
this.id = id; |
this.id = id; |
612 |
this.toolBar = toolBar; |
this.toolBar = toolBar; |
613 |
} |
} |
614 |
|
|
615 |
/** |
/** |
616 |
* Calls {@link MapPaneToolBar#performToolButton(int, ActionEvent)} |
* Calls {@link MapPaneToolBar#performToolButton(int, ActionEvent)} |
617 |
* or {@link MapPaneToolBar#performActionButton(int, ActionEvent)} |
* or {@link MapPaneToolBar#performActionButton(int, ActionEvent)} |