/[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 315 by mojays, Wed Aug 26 11:03:27 2009 UTC revision 336 by alfonx, Thu Aug 27 09:10:10 2009 UTC
# Line 359  public class MapPaneToolBar extends JToo Line 359  public class MapPaneToolBar extends JToo
359                          // Set the mouse tool to "Panning"                          // Set the mouse tool to "Panning"
360                          mapPane.setWindowSelectionState(JMapPane.NONE);                          mapPane.setWindowSelectionState(JMapPane.NONE);
361                          mapPane.setState(JMapPane.PAN);                          mapPane.setState(JMapPane.PAN);
                         mapPane.setHighlight(false);  
362                          mapPane.setNormalCursor(SwingUtil.PAN_CURSOR);                          mapPane.setNormalCursor(SwingUtil.PAN_CURSOR);
363                          break;                          break;
364                  case TOOL_INFO:                  case TOOL_INFO:
# Line 367  public class MapPaneToolBar extends JToo Line 366  public class MapPaneToolBar extends JToo
366                          mapPane.setWindowSelectionState(JMapPane.NONE);                          mapPane.setWindowSelectionState(JMapPane.NONE);
367                          mapPane.setState(JMapPane.SELECT_TOP); // Why not:                          mapPane.setState(JMapPane.SELECT_TOP); // Why not:
368                          // JMapPane.SELECT_TOP_ONEONLY                          // JMapPane.SELECT_TOP_ONEONLY
                         mapPane.setHighlight(false);// SK: Was true, but since it not works  
369                          // properly removed it to save                          // properly removed it to save
370                          // performance                          // performance
371                          mapPane.setNormalCursor(SwingUtil.CROSSHAIR_CURSOR);                          mapPane.setNormalCursor(SwingUtil.CROSSHAIR_CURSOR);
# Line 376  public class MapPaneToolBar extends JToo Line 374  public class MapPaneToolBar extends JToo
374                          // Set the mouse tool to "Zoom in"                          // Set the mouse tool to "Zoom in"
375                          mapPane.setWindowSelectionState(JMapPane.ZOOM_IN);                          mapPane.setWindowSelectionState(JMapPane.ZOOM_IN);
376                          mapPane.setState(JMapPane.ZOOM_IN);                          mapPane.setState(JMapPane.ZOOM_IN);
                         mapPane.setHighlight(false);  
377                          mapPane.setNormalCursor(SwingUtil.ZOOMIN_CURSOR);                          mapPane.setNormalCursor(SwingUtil.ZOOMIN_CURSOR);
378                          break;                          break;
379                  case TOOL_ZOOMOUT:                  case TOOL_ZOOMOUT:
380                          // Set the mouse tool to "Zoom out"                          // Set the mouse tool to "Zoom out"
381                          mapPane.setWindowSelectionState(JMapPane.NONE);                          mapPane.setWindowSelectionState(JMapPane.NONE);
382                          mapPane.setState(JMapPane.ZOOM_OUT);                          mapPane.setState(JMapPane.ZOOM_OUT);
                         mapPane.setHighlight(false);  
383                          mapPane.setNormalCursor(SwingUtil.ZOOMOUT_CURSOR);                          mapPane.setNormalCursor(SwingUtil.ZOOMOUT_CURSOR);
384                          break;                          break;
385                  default:                  default:
386                          // Set map actions to default                          // Set map actions to default
387                          mapPane.setWindowSelectionState(JMapPane.NONE);                          mapPane.setWindowSelectionState(JMapPane.NONE);
388                          mapPane.setState(JMapPane.NONE);                          mapPane.setState(JMapPane.NONE);
                         mapPane.setHighlight(false);  
389                          mapPane.setNormalCursor(null);                          mapPane.setNormalCursor(null);
390                          break;                          break;
391                  }                  }

Legend:
Removed from v.315  
changed lines
  Added in v.336

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26