Changeset 12366 in josm for trunk


Ignore:
Timestamp:
2017-06-09T20:02:11+02:00 (7 years ago)
Author:
michael2402
Message:

Javadoc for ZoomToAction

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/ZoomToAction.java

    r11381 r12366  
    2525import org.openstreetmap.josm.tools.CheckParameterUtil;
    2626
     27/**
     28 * An action that zooms to the selected OSM primitive in a table of primitives
     29 */
    2730public class ZoomToAction extends AbstractAction implements LayerChangeListener, ActiveLayerChangeListener, ListSelectionListener {
    2831
     
    3336    private final String descriptionNoSelection;
    3437
     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     */
    3545    public ZoomToAction(OsmPrimitivesTable table, String descriptionNominal, String descriptionInactiveLayer, String descriptionNoSelection) {
    3646        CheckParameterUtil.ensureParameterNotNull(table);
     
    4454    }
    4555
     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     */
    4660    public ZoomToAction(MemberTable table) {
    4761        this(table,
     
    5165    }
    5266
     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     */
    5371    public ZoomToAction(RelationMemberTable table) {
    5472        this(table,
     
    5876    }
    5977
     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     */
    6082    public ZoomToAction(NodeListTable table) {
    6183        this(table,
Note: See TracChangeset for help on using the changeset viewer.