/[schmitzm]/trunk/src/skrueger/geotools/MapPaneToolBar.java
ViewVC logotype

Diff of /trunk/src/skrueger/geotools/MapPaneToolBar.java

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

revision 47 by mojays, Tue Feb 24 22:43:52 2009 UTC revision 48 by alfonx, Fri Apr 17 12:49:33 2009 UTC
# Line 1  Line 1 
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    
# Line 68  public class MapPaneToolBar extends JToo Line 55  public class MapPaneToolBar extends JToo
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;
# Line 236  public class MapPaneToolBar extends JToo Line 225  public class MapPaneToolBar extends JToo
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      /**      /**
# Line 621  public class MapPaneToolBar extends JToo Line 611  public class MapPaneToolBar extends JToo
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)}

Legend:
Removed from v.47  
changed lines
  Added in v.48

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26