private class MapView.LayerInvalidatedListener extends java.lang.Object implements MapViewPaintable.PaintableInvalidationListener
Modifier and Type | Field and Description |
---|---|
private boolean |
ignoreRepaint |
private java.util.Set<MapViewPaintable> |
invalidatedLayers |
Modifier | Constructor and Description |
---|---|
private |
LayerInvalidatedListener() |
Modifier and Type | Method and Description |
---|---|
void |
addTo(MapViewPaintable p)
Temporary until all
MapViewPaintable s support this. |
protected java.util.Set<MapViewPaintable> |
collectInvalidatedLayers()
Retrieves a set of all layers that have been marked as invalid since the last call to this method.
|
void |
invalidate(MapViewPaintable mapViewPaintable)
Invalidate contents and repaint map view
|
void |
paintableInvalidated(MapViewPaintable.PaintableInvalidationEvent event)
Called whenever a
MapViewPaintable.PaintableInvalidationEvent is fired. |
void |
removeFrom(MapViewPaintable p)
Temporary until all
MapViewPaintable s support this. |
protected void |
traceRandomRepaint()
Attempts to trace repaints that did not originate from this listener.
|
private boolean ignoreRepaint
private final java.util.Set<MapViewPaintable> invalidatedLayers
private LayerInvalidatedListener()
public void paintableInvalidated(MapViewPaintable.PaintableInvalidationEvent event)
MapViewPaintable.PaintableInvalidationListener
MapViewPaintable.PaintableInvalidationEvent
is fired. This might be called from any thread.paintableInvalidated
in interface MapViewPaintable.PaintableInvalidationListener
event
- The eventpublic void invalidate(MapViewPaintable mapViewPaintable)
mapViewPaintable
- invalidated layerpublic void addTo(MapViewPaintable p)
MapViewPaintable
s support this.p
- The paintable.public void removeFrom(MapViewPaintable p)
MapViewPaintable
s support this.p
- The paintable.protected void traceRandomRepaint()
MapView.repaint()
s in code.protected java.util.Set<MapViewPaintable> collectInvalidatedLayers()