Changeset 2512 in josm for trunk/src/org/openstreetmap/josm/gui/history
- Timestamp:
- 2009-11-24T10:45:04+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/gui/history
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/AdjustmentSynchronizer.java
r2181 r2512 15 15 16 16 import javax.swing.JCheckBox; 17 18 17 19 18 /** … … 36 35 observable = new Observable(); 37 36 } 38 39 37 40 38 /** -
trunk/src/org/openstreetmap/josm/gui/history/CoordinateInfoViewer.java
r2245 r2512 87 87 88 88 /** 89 * 89 * 90 90 * @param model the model. Must not be null. 91 91 * @throws IllegalArgumentException thrown if model is null … … 131 131 /** 132 132 * Sets the model for this viewer 133 * 133 * 134 134 * @param model the model. 135 135 */ … … 147 147 * A UI widgets which displays the Lan/Lon-coordinates of a 148 148 * {@see HistoryNode}. 149 * 149 * 150 150 */ 151 151 private static class LatLonViewer extends JPanel implements Observer{ … … 210 210 lblLon.setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); 211 211 212 213 212 // fill the remaining space 214 213 gc.gridx = 0; … … 222 221 223 222 /** 224 * 223 * 225 224 * @param model a model 226 225 * @param role the role for this viewer. -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowser.java
r2416 r2512 30 30 private CoordinateInfoViewer coordinateInfoViewer; 31 31 private JTabbedPane tpViewers; 32 33 32 34 33 /** -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialog.java
r2448 r2512 30 30 * This is non-modal dialog, always showing on top, which displays history information 31 31 * about a given {@see OsmPrimitive}. 32 * 32 * 33 33 */ 34 34 public class HistoryBrowserDialog extends JDialog implements HistoryDataSetListener{ … … 40 40 /** 41 41 * displays the title for this dialog 42 * 42 * 43 43 * @param h the current history 44 44 */ … … 58 58 /** 59 59 * builds the GUI 60 * 60 * 61 61 */ 62 62 protected void build() { … … 88 88 /** 89 89 * constructor 90 * 90 * 91 91 * @param history the history to be displayed 92 92 */ -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserDialogManager.java
r2448 r2512 88 88 /** 89 89 * Hides and destroys all currently visible history browser dialogs 90 * 90 * 91 91 */ 92 92 public void hideAll() { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryBrowserModel.java
r2497 r2512 103 103 /** 104 104 * Creates a new history browser model for a given history. 105 * 105 * 106 106 * @param history the history. Must not be null. 107 107 * @throws IllegalArgumentException thrown if history is null … … 117 117 * Replies the current edit layer; null, if there isn't a current edit layer 118 118 * of type {@see OsmDataLayer}. 119 * 119 * 120 120 * @return the current edit layer 121 121 */ … … 258 258 * Sets the {@see HistoryOsmPrimitive} which plays the role of a reference point 259 259 * in time (see {@see PointInTimeType}). 260 * 260 * 261 261 * @param reference the reference history primitive. Must not be null. 262 262 * @throws IllegalArgumentException thrown if reference is null 263 263 * @throws IllegalStateException thrown if this model isn't a assigned a history yet 264 264 * @throws IllegalArgumentException if reference isn't an history primitive for the history managed by this mode 265 * 265 * 266 266 * @see #setHistory(History) 267 267 * @see PointInTimeType … … 289 289 * Sets the {@see HistoryOsmPrimitive} which plays the role of the current point 290 290 * in time (see {@see PointInTimeType}). 291 * 291 * 292 292 * @param reference the reference history primitive. Must not be null. 293 293 * @throws IllegalArgumentException thrown if reference is null 294 294 * @throws IllegalStateException thrown if this model isn't a assigned a history yet 295 295 * @throws IllegalArgumentException if reference isn't an history primitive for the history managed by this mode 296 * 296 * 297 297 * @see #setHistory(History) 298 298 * @see PointInTimeType … … 357 357 * representing the version currently edited in the current data 358 358 * layer. 359 * 359 * 360 360 * @param primitive the primitive to check 361 361 * @return true if <code>primitive</code> is the latest primitive … … 452 452 } 453 453 } 454 455 454 456 455 /** … … 767 766 * Removes this model as listener for data change and layer change 768 767 * events. 769 * 768 * 770 769 */ 771 770 public void unlinkAsListener() { … … 875 874 /** 876 875 * Creates a {@see HistoryOsmPrimitive} from a {@see OsmPrimitive} 877 * 876 * 878 877 */ 879 878 class HistoryPrimitiveBuilder extends AbstractVisitor { -
trunk/src/org/openstreetmap/josm/gui/history/HistoryLoadTask.java
r2448 r2512 28 28 * 29 29 * It provides a fluent API for configuration. 30 * 30 * 31 31 * Sample usage: 32 * 32 * 33 33 * <pre> 34 34 * HistoryLoadTask task = new HistoryLoadTask() … … 37 37 * .add(37234, OsmPrimitveType.RELATION) 38 38 * .add(aHistoryItem); 39 * 39 * 40 40 * Main.worker.execute(task); 41 * 41 * 42 42 * </pre> 43 43 */ … … 56 56 /** 57 57 * Adds an object whose history is to be loaded. 58 * 58 * 59 59 * @param id the object id 60 60 * @param type the object type … … 73 73 /** 74 74 * Adds an object whose history is to be loaded. 75 * 75 * 76 76 * @param pid the primitive id. Must not be null. Id > 0 required. 77 77 * @return this task … … 88 88 /** 89 89 * Adds an object to be loaded, the object is specified by a history item. 90 * 90 * 91 91 * @param primitive the history item 92 92 * @return this task … … 102 102 /** 103 103 * Adds an object to be loaded, the object is specified by an already loaded object history. 104 * 104 * 105 105 * @param history the history. Must not be null. 106 106 * @return this task … … 116 116 /** 117 117 * Adds an object to be loaded, the object is specified by an OSM primitive. 118 * 118 * 119 119 * @param primitive the OSM primitive. Must not be null. primitive.getId() > 0 required. 120 120 * @return this task … … 133 133 /** 134 134 * Adds a collection of objects to loaded, specified by a collection of OSM primitives. 135 * 135 * 136 136 * @param primitive the OSM primitive. Must not be null. primitive.getId() > 0 required. 137 137 * @return this task -
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java
r1709 r2512 16 16 /** 17 17 * The {@see TableCellRenderer} for a list of nodes in [@see HistoryBrower} 18 * 18 * 19 19 * 20 20 */ -
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableColumnModel.java
r1709 r2512 9 9 /** 10 10 * The {@see TableColumnModel} for the table with the list of nodes. 11 * 11 * 12 12 * 13 13 */ -
trunk/src/org/openstreetmap/josm/gui/history/NodeListViewer.java
r2448 r2512 32 32 * NodeListViewer is a UI component which displays the node list of two 33 33 * version of a {@see OsmPrimitive} in a {@see History}. 34 * 34 * 35 35 * <ul> 36 36 * <li>on the left, it displays the node list for the version at {@see PointInTimeType#REFERENCE_POINT_IN_TIME}</li> … … 168 168 } 169 169 } 170 171 170 172 171 class NodeListPopupMenu extends JPopupMenu { -
trunk/src/org/openstreetmap/josm/gui/history/PointInTimeType.java
r1750 r2512 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.gui.history; 3 4 3 5 4 /** -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListTableCellRenderer.java
r2017 r2512 17 17 import org.openstreetmap.josm.tools.ImageProvider; 18 18 19 20 19 /** 21 20 * The {@see TableCellRenderer} for a list of relation members in {@see HistoryBrower} 22 * 21 * 23 22 * 24 23 */ … … 39 38 icons.put(OsmPrimitiveType.RELATION, ImageProvider.get("data", "relation")); 40 39 } 41 42 40 43 41 protected void renderIcon(RelationMember member) { … … 94 92 } 95 93 96 97 94 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 98 95 int row, int column) { -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberListViewer.java
r2017 r2512 13 13 * RelationMemberListViewer is a UI component which displays the list of relation members of two 14 14 * version of a {@see Relation} in a {@see History}. 15 * 15 * 16 16 * <ul> 17 17 * <li>on the left, it displays the list of relation members for the version at {@see PointInTimeType#REFERENCE_POINT_IN_TIME}</li> -
trunk/src/org/openstreetmap/josm/gui/history/RelationMemberTableColumnModel.java
r2017 r2512 9 9 /** 10 10 * The {@see TableColumnModel} for the table with the list of relation members. 11 * 11 * 12 12 */ 13 13 public class RelationMemberTableColumnModel extends DefaultTableColumnModel { -
trunk/src/org/openstreetmap/josm/gui/history/TagTableCellRenderer.java
r2448 r2512 16 16 /** 17 17 * The {@see TableCellRenderer} for a list of tagsin {@see HistoryBrower} 18 * 18 * 19 19 */ 20 20 public class TagTableCellRenderer extends JLabel implements TableCellRenderer { -
trunk/src/org/openstreetmap/josm/gui/history/TagTableColumnModel.java
r2017 r2512 9 9 /** 10 10 * The {@see TableColumnModel} for the table with the list of tags 11 * 11 * 12 12 */ 13 13 public class TagTableColumnModel extends DefaultTableColumnModel{ -
trunk/src/org/openstreetmap/josm/gui/history/VersionInfoPanel.java
r2448 r2512 28 28 * VersionInfoPanel is an UI component which displays the basic properties of a version 29 29 * of a {@see OsmPrimitive}. 30 * 30 * 31 31 */ 32 32 public class VersionInfoPanel extends JPanel implements Observer{ … … 110 110 /** 111 111 * constructor 112 * 112 * 113 113 * @param model the model (must not be null) 114 114 * @param pointInTimeType the point in time this panel visualizes (must not be null) -
trunk/src/org/openstreetmap/josm/gui/history/VersionTable.java
r2044 r2512 24 24 /** 25 25 * VersionTable shows a list of version in a {@see History} of an {@see OsmPrimitive}. 26 * 26 * 27 27 * 28 28 */ -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableCellRenderer.java
r2448 r2512 24 24 /** 25 25 * The {@see TableCellRenderer} for a list of versions in {@see HistoryBrower} 26 * 26 * 27 27 */ 28 28 public class VersionTableCellRenderer extends JLabel implements TableCellRenderer { -
trunk/src/org/openstreetmap/josm/gui/history/VersionTableColumnModel.java
r2017 r2512 9 9 /** 10 10 * The {@see TableColumnModel} for the table with the list of versions 11 * 11 * 12 12 */ 13 13 public class VersionTableColumnModel extends DefaultTableColumnModel {
Note:
See TracChangeset
for help on using the changeset viewer.