- Timestamp:
- 2017-06-09T20:02:11+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java
r11381 r12366 25 25 import org.openstreetmap.josm.tools.CheckParameterUtil; 26 26 27 /** 28 * An action that zooms to the selected OSM primitive in a table of primitives 29 */ 27 30 public class ZoomToAction extends AbstractAction implements LayerChangeListener, ActiveLayerChangeListener, ListSelectionListener { 28 31 … … 33 36 private final String descriptionNoSelection; 34 37 38 /** 39 * Creates a new, generic zoom to action 40 * @param table The table to get the selected element from 41 * @param descriptionNominal The description to display if zooming is possible 42 * @param descriptionInactiveLayer The description to display if zooming is impossible because the layer is not active 43 * @param descriptionNoSelection The description to display if zooming is impossible because the table selection is empty 44 */ 35 45 public ZoomToAction(OsmPrimitivesTable table, String descriptionNominal, String descriptionInactiveLayer, String descriptionNoSelection) { 36 46 CheckParameterUtil.ensureParameterNotNull(table); … … 44 54 } 45 55 56 /** 57 * Creates a new zoom to action for a {@link MemberTable} using the matching description strings 58 * @param table The table to get the selected element from 59 */ 46 60 public ZoomToAction(MemberTable table) { 47 61 this(table, … … 51 65 } 52 66 67 /** 68 * Creates a new zoom to action for a {@link RelationMemberTable} using the matching description strings 69 * @param table The table to get the selected element from 70 */ 53 71 public ZoomToAction(RelationMemberTable table) { 54 72 this(table, … … 58 76 } 59 77 78 /** 79 * Creates a new zoom to action for a {@link NodeListTable} using the matching description strings 80 * @param table The table to get the selected element from 81 */ 60 82 public ZoomToAction(NodeListTable table) { 61 83 this(table,
Note:
See TracChangeset
for help on using the changeset viewer.