Changeset 15960 in osm for applications/editors/josm/plugins/wmsplugin/src
- Timestamp:
- 2009-06-17T09:01:52+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/wmsplugin/src/wmsplugin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/Help_WMSmenuAction.java
r13497 r15960 12 12 13 13 /** 14 * 14 * 15 15 */ 16 16 17 17 18 18 public Help_WMSmenuAction() { 19 19 //super("Help / About"); 20 20 super(tr("help"), "help", tr("Help / About"), null, false); 21 21 22 22 } 23 23 24 24 public void actionPerformed(ActionEvent e) { 25 //todo - put this into a txt file? 26 String helptext = 25 //todo - put this into a txt file? 26 String helptext = 27 27 tr("You can add, edit and delete WMS entries in the WMSplugin Preference Tab - " + 28 28 "these will then show up in the WMS menu.\n\n"+ 29 29 30 30 "You can also do this manually in the Advanced Preferences, using the following schema:\n"+ 31 31 "wmsplugin.url.1.name=Landsat\n"+ 32 32 "wmsplugin.url.1.url=http://onearth.jpl.nasa.gov....\n"+ 33 33 "wmsplugin.url.2.name=NPE Maps... etc\n\n"+ 34 34 35 35 "Full WMS URL input format example (landsat)\n"+ 36 36 "http://onearth.jpl.nasa.gov/wms.cgi?request=GetMap&\n"+ 37 "layers=global_mosaic&styles=&srs=EPSG:4326&\n"+ 38 "format=image/jpeg \n\n"+ 39 37 "layers=global_mosaic&styles=&srs=EPSG:4326&format=image/jpeg\n\n"+ 38 40 39 "For Metacarta's Map Rectifier http://labs.metacarta.com/rectifier/ , you only need to input the relevant 'id'.\n" + 41 "To add a Metacarta Map Rectifier menu item, manually create the URL like in this example, " +42 "replacing 73 with your image id: 40 "To add a Metacarta Map Rectifier menu item, manually create the URL like in this example, " + 41 "replacing 73 with your image id:\n" + 43 42 "http://labs.metacarta.com/rectifier/wms.cgi?id=73\n" + 44 "&srs=EPSG:4326&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png\n " +45 " \n" + 43 "&srs=EPSG:4326&Service=WMS&Version=1.1.0&Request=GetMap&format=image/png\n\n" + 44 46 45 "Note: Make sure the image is suitable, copyright-wise, if in doubt, don't use."); 47 46 48 47 JTextPane tp = new JTextPane(); 49 48 JScrollPane js = new JScrollPane(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, 50 49 JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS); 51 52 50 51 53 52 js.getViewport().add(tp); 54 53 JFrame jf = new JFrame(tr("WMS Plugin Help")); … … 56 55 jf.pack(); 57 56 jf.setSize(400,500); 58 jf.setVisible(true); 57 jf.setVisible(true); 59 58 tp.setText(helptext); 60 59 } -
applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSAdjustAction.java
r13584 r15960 1 package wmsplugin; 1 package wmsplugin; 2 2 3 3 import static org.openstreetmap.josm.tools.I18n.tr; … … 25 25 26 26 public WMSAdjustAction(MapFrame mapFrame) { 27 super(tr("Adjust WMS"), "adjustwms", 28 tr("Adjust the position of the selected WMS layer"), mapFrame, 27 super(tr("Adjust WMS"), "adjustwms", 28 tr("Adjust the position of the selected WMS layer"), mapFrame, 29 29 ImageProvider.getCursor("normal", "move")); 30 30 } … … 45 45 if (e.getButton() != MouseEvent.BUTTON1) 46 46 return; 47 47 48 48 Layer layer=Main.map.mapView.getActiveLayer(); 49 49 if (layer.visible && layer instanceof WMSLayer) { … … 63 63 Main.map.mapView.getEastNorth(e.getX(),e.getY()); 64 64 selectedLayer.displace( 65 eastNorth.east()-prevEastNorth.east(), 65 eastNorth.east()-prevEastNorth.east(), 66 66 eastNorth.north()-prevEastNorth.north() 67 67 ); … … 74 74 Main.map.mapView.repaint(); 75 75 Main.map.mapView.setCursor(Cursor.getDefaultCursor()); 76 selectedImage = null; 76 selectedImage = null; 77 77 prevEastNorth = null; 78 78 selectedLayer = null; … … 88 88 @Override public void mouseClicked(MouseEvent e) { 89 89 } 90 90 91 91 // This only makes the buttons look disabled, but since no keyboard shortcut is 92 92 // provided there aren't any other means to activate this tool
Note:
See TracChangeset
for help on using the changeset viewer.