/[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 111 by alfonx, Tue May 12 23:33:14 2009 UTC revision 127 by mojays, Sat May 30 14:29:58 2009 UTC
# Line 15  import javax.swing.JButton; Line 15  import javax.swing.JButton;
15  import javax.swing.JComponent;  import javax.swing.JComponent;
16  import javax.swing.JToggleButton;  import javax.swing.JToggleButton;
17  import javax.swing.JToolBar;  import javax.swing.JToolBar;
 import javax.swing.JToolBar.Separator;  
   
 import jj2000.j2k.NotImplementedError;  
18    
19  import org.apache.log4j.Logger;  import org.apache.log4j.Logger;
20    
# Line 209  public class MapPaneToolBar extends JToo Line 206  public class MapPaneToolBar extends JToo
206            new ImageIcon(MapView.class.getResource("resource/icons/info.png"))            new ImageIcon(MapView.class.getResource("resource/icons/info.png"))
207        ), false );        ), false );
208                
209        // Set Selection  //      // Set Selection
210        addTool( new MapPaneToolBarAction(  //      addTool( new MapPaneToolBarAction(
211            TOOL_SELECTION_SET,  //          TOOL_SELECTION_SET,
212            this,  //          this,
213            "",  //          "",
214            new ImageIcon(MapView.class.getResource("resource/icons/selection_set.png"))  //          new ImageIcon(MapView.class.getResource("resource/icons/selection_set.png"))
215        ), false );  //      ), false );
216    //
217        // Add Selection  //      // Add Selection
218        addTool( new MapPaneToolBarAction(  //      addTool( new MapPaneToolBarAction(
219                    TOOL_SELECTION_ADD,  //                TOOL_SELECTION_ADD,
220                    this,  //                this,
221                    "",  //                "",
222                    new ImageIcon(MapView.class.getResource("resource/icons/selection_add.png"))  //                new ImageIcon(MapView.class.getResource("resource/icons/selection_add.png"))
223        ), false );  //      ), false );
224    //
225        // Remove Selection  //      // Remove Selection
226        addTool( new MapPaneToolBarAction(  //      addTool( new MapPaneToolBarAction(
227                    TOOL_SELECTION_REMOVE,  //                TOOL_SELECTION_REMOVE,
228                    this,  //                this,
229                    "",  //                "",
230                    new ImageIcon(MapView.class.getResource("resource/icons/selection_remove.png"))  //                new ImageIcon(MapView.class.getResource("resource/icons/selection_remove.png"))
231        ), false );  //      ), false );
232          //      
233        // ResetSelection  //      // ResetSelection
234        addAction( new MapPaneToolBarAction(  //      addAction( new MapPaneToolBarAction(
235                    TOOL_SELECTION_CLEAR,  //                TOOL_SELECTION_CLEAR,
236                    this,  //                this,
237                    "",  //                "",
238                    new ImageIcon(MapView.class.getResource("resource/icons/selection_clear.png"))  //                new ImageIcon(MapView.class.getResource("resource/icons/selection_clear.png"))
239        ), false );  //      ), false );
240                
241        // Zoom in        // Zoom in
242        addTool( new MapPaneToolBarAction(        addTool( new MapPaneToolBarAction(
# Line 401  public class MapPaneToolBar extends JToo Line 398  public class MapPaneToolBar extends JToo
398            mapPane.refresh();            mapPane.refresh();
399          }          }
400        }        }
401          
402          /**
403           * Clear the selection by calling the selection model
404           */
405          if (action == TOOL_SELECTION_CLEAR) {
406              // TODO
407          }
408          }          }
409                    
410                    

Legend:
Removed from v.111  
changed lines
  Added in v.127

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26