Class TagMerger.AdjustmentSynchronizer
- java.lang.Object
-
- org.openstreetmap.josm.gui.conflict.pair.tags.TagMerger.AdjustmentSynchronizer
-
- All Implemented Interfaces:
AdjustmentListener
,EventListener
- Enclosing class:
- TagMerger
static class TagMerger.AdjustmentSynchronizer extends Object implements AdjustmentListener
Synchronizes scrollbar adjustments between a set ofAdjustable
s. Whenever the adjustment of one of the registered Adjustables is updated the adjustment of the other registered Adjustables is adjusted too.
-
-
Field Summary
Fields Modifier and Type Field Description private Set<Adjustable>
synchronizedAdjustables
-
Constructor Summary
Constructors Constructor Description AdjustmentSynchronizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
adjustmentValueChanged(AdjustmentEvent e)
void
synchronizeAdjustment(Adjustable adjustable)
-
-
-
Field Detail
-
synchronizedAdjustables
private final Set<Adjustable> synchronizedAdjustables
-
-
Constructor Detail
-
AdjustmentSynchronizer
AdjustmentSynchronizer()
-
-
Method Detail
-
synchronizeAdjustment
public void synchronizeAdjustment(Adjustable adjustable)
-
adjustmentValueChanged
public void adjustmentValueChanged(AdjustmentEvent e)
- Specified by:
adjustmentValueChanged
in interfaceAdjustmentListener
-
-