Ignore:
Timestamp:
2013-03-22T22:18:26+01:00 (13 years ago)
Author:
zverik
Message:

ImageryID refactoring and javadocs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java

    r29382 r29384  
    1010
    1111/**
    12  * Download a list of imagery offsets for the current position, let user choose which one to use.
     12 * Display an information box for an offset.
    1313 *
    14  * @author zverik
     14 * @author Zverik
     15 * @license WTFPL
    1516 */
    1617public class OffsetInfoAction extends AbstractAction {
    17     public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd");
     18    public static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd MMMM yyyy");
    1819
    1920    private Object info;
    2021   
     22    /**
     23     * Initializes the action with an offset object.
     24     * Calls {@link #getInformationObject(iodb.ImageryOffsetBase)}.
     25     */
    2126    public OffsetInfoAction( ImageryOffsetBase offset ) {
    2227        super(tr("Offset Information"));
     
    2732    }
    2833
     34    /**
     35     * Shows a dialog with the pre-constructed message.
     36     */
    2937    public void actionPerformed(ActionEvent e) {
    3038        JOptionPane.showMessageDialog(Main.parent, info, ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE);
    3139    }
    3240
     41    /**
     42     * Constructs a string with all information about the given offset.
     43     */
    3344    public static Object getInformationObject( ImageryOffsetBase offset ) {
    3445        StringBuilder sb = new StringBuilder();
     
    6172    }
    6273
     74    /**
     75     * Explains a calibration object geometry type: whether is's a point,
     76     * a path or a polygon.
     77     */
    6378    public static String getGeometryType( CalibrationObject obj ) {
    6479        if( obj.getGeometry() == null )
Note: See TracChangeset for help on using the changeset viewer.