public class HistoryBrowserDialogManager extends Object implements MapView.LayerChangeListener
Modifier and Type | Field and Description |
---|---|
private Map<Long,HistoryBrowserDialog> |
dialogs |
private static HistoryBrowserDialogManager |
instance |
private Predicate<PrimitiveId> |
notNewPredicate |
private Predicate<PrimitiveId> |
unloadedHistoryPredicate |
Modifier | Constructor and Description |
---|---|
protected |
HistoryBrowserDialogManager() |
Modifier and Type | Method and Description |
---|---|
void |
activeLayerChange(Layer oldLayer,
Layer newLayer)
Notifies this listener that the active layer has changed.
|
boolean |
existsDialog(long id) |
static HistoryBrowserDialogManager |
getInstance() |
protected boolean |
hasDialogWithCloseUpperLeftCorner(Point p) |
void |
hide(HistoryBrowserDialog dialog) |
void |
hideAll()
Hides and destroys all currently visible history browser dialogs
|
void |
layerAdded(Layer newLayer)
Notifies this listener that a layer has been added.
|
void |
layerRemoved(Layer oldLayer)
Notifies this listener that a layer has been removed.
|
void |
placeOnScreen(HistoryBrowserDialog dialog) |
void |
show(History h) |
void |
show(long id) |
void |
show(long id,
HistoryBrowserDialog dialog) |
void |
showHistory(Collection<? extends PrimitiveId> primitives) |
private static HistoryBrowserDialogManager instance
private Map<Long,HistoryBrowserDialog> dialogs
private final Predicate<PrimitiveId> unloadedHistoryPredicate
private final Predicate<PrimitiveId> notNewPredicate
protected HistoryBrowserDialogManager()
public static HistoryBrowserDialogManager getInstance()
public boolean existsDialog(long id)
public void show(long id, HistoryBrowserDialog dialog)
public void show(long id)
protected boolean hasDialogWithCloseUpperLeftCorner(Point p)
public void placeOnScreen(HistoryBrowserDialog dialog)
public void hide(HistoryBrowserDialog dialog)
public void hideAll()
public void activeLayerChange(Layer oldLayer, Layer newLayer)
MapView.LayerChangeListener
activeLayerChange
in interface MapView.LayerChangeListener
oldLayer
- The previous active layernewLayer
- The new activer layerpublic void layerAdded(Layer newLayer)
MapView.LayerChangeListener
layerAdded
in interface MapView.LayerChangeListener
newLayer
- The new added layerpublic void layerRemoved(Layer oldLayer)
MapView.LayerChangeListener
layerRemoved
in interface MapView.LayerChangeListener
oldLayer
- The old removed layerpublic void showHistory(Collection<? extends PrimitiveId> primitives)