Changeset 562 in josm for trunk/src/org
- Timestamp:
- 2008-02-25T12:41:43+01:00 (17 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r478 r562 103 103 104 104 public ShowHideMarkerText(Layer layer) { 105 super(tr("Show/Hide Text "), ImageProvider.get("dialogs", "showhide"));106 putValue(SHORT_DESCRIPTION, tr("Toggle visible state of the marker text ."));105 super(tr("Show/Hide Text/Icons"), ImageProvider.get("dialogs", "showhide")); 106 putValue(SHORT_DESCRIPTION, tr("Toggle visible state of the marker text and icons.")); 107 107 putValue("help", "Dialog/LayerList/ShowHideMarkerText"); 108 108 this.layer = layer; -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/ButtonMarker.java
r553 r562 25 25 26 26 private Rectangle buttonRectangle; 27 protected Graphics graphicsContext = null;28 27 29 28 public ButtonMarker(LatLon ll, String buttonImage, MarkerLayer parentLayer, double time, double offset) { … … 44 43 45 44 @Override public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { 46 graphicsContext = g; 45 if (! show.equalsIgnoreCase("show")) { 46 super.paint(g, mv, mousePressed, show); 47 return; 48 } 47 49 Point screen = mv.getPoint(eastNorth); 48 50 buttonRectangle.setLocation(screen.x+4, screen.y+2); -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/Marker.java
r553 r562 169 169 public void paint(Graphics g, MapView mv, boolean mousePressed, String show) { 170 170 Point screen = mv.getPoint(eastNorth); 171 if (symbol != null ) {171 if (symbol != null && show.equalsIgnoreCase("show")) { 172 172 symbol.paintIcon(mv, g, screen.x-symbol.getIconWidth()/2, screen.y-symbol.getIconHeight()/2); 173 173 } else {
Note:
See TracChangeset
for help on using the changeset viewer.