Changeset 29384 in osm for applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java
- Timestamp:
- 2013-03-22T22:18:26+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/imagery_offset_db/src/iodb/OffsetInfoAction.java
r29382 r29384 10 10 11 11 /** 12 * D ownload a list of imageryoffsets for the current position, let user choose which one to use.12 * Display an information box for an offset. 13 13 * 14 * @author zverik 14 * @author Zverik 15 * @license WTFPL 15 16 */ 16 17 public 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"); 18 19 19 20 private Object info; 20 21 22 /** 23 * Initializes the action with an offset object. 24 * Calls {@link #getInformationObject(iodb.ImageryOffsetBase)}. 25 */ 21 26 public OffsetInfoAction( ImageryOffsetBase offset ) { 22 27 super(tr("Offset Information")); … … 27 32 } 28 33 34 /** 35 * Shows a dialog with the pre-constructed message. 36 */ 29 37 public void actionPerformed(ActionEvent e) { 30 38 JOptionPane.showMessageDialog(Main.parent, info, ImageryOffsetTools.DIALOG_TITLE, JOptionPane.PLAIN_MESSAGE); 31 39 } 32 40 41 /** 42 * Constructs a string with all information about the given offset. 43 */ 33 44 public static Object getInformationObject( ImageryOffsetBase offset ) { 34 45 StringBuilder sb = new StringBuilder(); … … 61 72 } 62 73 74 /** 75 * Explains a calibration object geometry type: whether is's a point, 76 * a path or a polygon. 77 */ 63 78 public static String getGeometryType( CalibrationObject obj ) { 64 79 if( obj.getGeometry() == null )
Note:
See TracChangeset
for help on using the changeset viewer.
