Changeset 8426 in josm for trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
- Timestamp:
- 2015-05-26T01:37:50+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/MapPaintDialog.java
r8379 r8426 99 99 protected JCheckBox cbWireframe; 100 100 101 /** 102 * Action that opens the map paint preferences. 103 */ 101 104 public static final JosmAction PREFERENCE_ACTION = PreferencesAction.forPreferenceSubTab( 102 105 tr("Map paint preferences"), null, MapPaintPreference.class, /* ICON */ "dialogs/mappaintpreference"); … … 118 121 JLabel wfLabel = new JLabel(tr("Wireframe View"), ImageProvider.get("dialogs/mappaint", "wireframe_small"), JLabel.HORIZONTAL); 119 122 wfLabel.setFont(wfLabel.getFont().deriveFont(Font.PLAIN)); 123 wfLabel.setLabelFor(cbWireframe); 120 124 121 125 cbWireframe.setModel(new DefaultButtonModel() { … … 208 212 protected class StylesModel extends AbstractTableModel implements MapPaintSylesUpdateListener { 209 213 214 private final Class<?>[] columnClasses = {Boolean.class, StyleSource.class}; 215 210 216 private transient List<StyleSource> data = new ArrayList<>(); 211 217 218 /** 219 * Constructs a new {@code StylesModel}. 220 */ 212 221 public StylesModel() { 213 222 data = new ArrayList<>(MapPaintStyles.getStyles().getStyleSources()); … … 240 249 return column == 0; 241 250 } 242 243 private Class<?>[] columnClasses = {Boolean.class, StyleSource.class};244 251 245 252 @Override … … 286 293 private class MyCheckBoxRenderer extends JCheckBox implements TableCellRenderer { 287 294 295 /** 296 * Constructs a new {@code MyCheckBoxRenderer}. 297 */ 288 298 public MyCheckBoxRenderer() { 289 299 setHorizontalAlignment(SwingConstants.CENTER); … … 318 328 319 329 protected class OnOffAction extends AbstractAction implements ListSelectionListener { 330 /** 331 * Constructs a new {@code OnOffAction}. 332 */ 320 333 public OnOffAction() { 321 334 putValue(NAME, tr("On/Off")); … … 352 365 private final int increment; 353 366 367 /** 368 * Constructs a new {@code MoveUpDownAction}. 369 * @param isDown {@code true} to move the entry down, {@code false} to move it up 370 */ 354 371 public MoveUpDownAction(boolean isDown) { 355 372 increment = isDown ? 1 : -1; … … 384 401 385 402 protected class ReloadAction extends AbstractAction implements ListSelectionListener { 403 /** 404 * Constructs a new {@code ReloadAction}. 405 */ 386 406 public ReloadAction() { 387 407 putValue(NAME, tr("Reload from file")); … … 425 445 } 426 446 }); 427 428 447 } 429 448 }); … … 433 452 protected class SaveAsAction extends AbstractAction { 434 453 454 /** 455 * Constructs a new {@code SaveAsAction}. 456 */ 435 457 public SaveAsAction() { 436 458 putValue(NAME, tr("Save as...")); … … 523 545 } 524 546 547 /** 548 * Displays information about selected paint style in a new dialog. 549 */ 525 550 protected class InfoAction extends AbstractAction { 526 551 … … 528 553 private boolean sourceTabLoaded; 529 554 555 /** 556 * Constructs a new {@code InfoAction}. 557 */ 530 558 public InfoAction() { 531 559 putValue(NAME, tr("Info"));
Note:
See TracChangeset
for help on using the changeset viewer.