Changeset 6147 in josm for trunk/src/org/openstreetmap/josm/gui/util/AdjustmentSynchronizer.java
- Timestamp:
- 2013-08-14T03:24:08+02:00 (13 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/util/AdjustmentSynchronizer.java
r6145 r6147 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui. history;2 package org.openstreetmap.josm.gui.util; 3 3 4 4 import static org.openstreetmap.josm.tools.I18n.tr; … … 19 19 20 20 /** 21 * Synchronizes scrollbar adjustments between a set of 22 * {@link Adjustable}s. Whenever the adjustment of one of 23 * the registerd Adjustables is updated the adjustment of 24 * the other registered Adjustables is adjusted too. 25 * 21 * Synchronizes scrollbar adjustments between a set of {@link Adjustable}s. 22 * Whenever the adjustment of one of the registered Adjustables is updated 23 * the adjustment of the other registered Adjustables is adjusted too. 24 * @since 6147 26 25 */ 27 26 public class AdjustmentSynchronizer implements AdjustmentListener { … … 32 31 private final Observable observable; 33 32 33 /** 34 * Constructs a new {@code AdjustmentSynchronizer} 35 */ 34 36 public AdjustmentSynchronizer() { 35 37 synchronizedAdjustables = new ArrayList<Adjustable>(); … … 39 41 40 42 /** 41 * registers an {@link Adjustable} for participation in synchronized 42 * scrolling. 43 * Registers an {@link Adjustable} for participation in synchronized scrolling. 43 44 * 44 45 * @param adjustable the adjustable … … 55 56 56 57 /** 57 * event handler for {@link AdjustmentEvent}s 58 * 58 * Event handler for {@link AdjustmentEvent}s 59 59 */ 60 60 @Override … … 70 70 71 71 /** 72 * sets whether adjustable participates in adjustment synchronization 73 * or not 72 * Sets whether adjustable participates in adjustment synchronization or not 74 73 * 75 74 * @param adjustable the adjustable … … 85 84 86 85 /** 87 * returns true if an adjustable is participating in synchronized scrolling86 * Returns true if an adjustable is participating in synchronized scrolling 88 87 * 89 88 * @param adjustable the adjustable … … 99 98 100 99 /** 101 * wires a {@link JCheckBox} to the adjustment synchronizer, in such a waythat:100 * Wires a {@link JCheckBox} to the adjustment synchronizer, in such a way that: 102 101 * <li> 103 102 * <ol>state changes in the checkbox control whether the adjustable participates … … 107 106 * </li> 108 107 * 109 * 110 * @param view the checkbox to control whether an adjustable participates in synchronized 111 * adjustment 108 * @param view the checkbox to control whether an adjustable participates in synchronized adjustment 112 109 * @param adjustable the adjustable 113 110 * @exception IllegalArgumentException thrown, if view is null 114 111 * @exception IllegalArgumentException thrown, if adjustable is null 115 112 */ 116 p rotectedvoid adapt(final JCheckBox view, final Adjustable adjustable)throws IllegalStateException{113 public void adapt(final JCheckBox view, final Adjustable adjustable) { 117 114 CheckParameterUtil.ensureParameterNotNull(adjustable, "adjustable"); 118 115 CheckParameterUtil.ensureParameterNotNull(view, "view");
Note:
See TracChangeset
for help on using the changeset viewer.
