public abstract class IconOverlayTracker
extends java.lang.Object
Utility class for node overlay clients, tracking node visibility for an overlay cache.
Constructor and Description |
---|
IconOverlayTracker() |
IconOverlayTracker(java.lang.String infoTypeId,
IconOverlayCache cache)
Deprecated.
replaced by declarative registration through icon-overlay-hook
(derivative classes must implement a default constructor).
|
IconOverlayTracker(java.lang.String infoTypeId,
IconOverlayCache cache,
int batchSize)
Deprecated.
replaced by declarative registration through icon-overlay-hook
(derivative classes must implement a default constructor).
|
Modifier and Type | Method and Description |
---|---|
protected void |
configure()
Configures the
IconOverlayTracker instance. |
java.lang.String |
getExtensionID() |
java.lang.String |
getInfoTypeID() |
IconOverlayCache |
getOverlayCache()
Gets the icon overlay cache for this overlay tracker instance.
|
protected abstract IconOverlay[] |
getOverlays(Element[] elements)
Gets the displayable overlay information for the given elements.
|
protected Element[] |
getValidElements() |
protected abstract boolean |
isControlled(Element e)
Asks whether the given element is controlled by the overlay client.
|
void |
repaintOverlays()
Repaints all visible consumer nodes after state changes.
|
protected void |
startTracking()
Deprecated.
replaced by
startTrackingImpl() . |
protected void |
startTrackingImpl() |
void |
stopTracking()
Deprecated.
replaced by
IconOverlayCoordinator.dispose() for callers
and stopTrackingImpl() for overrides. |
protected void |
stopTrackingImpl() |
void |
validateOverlay(Element e)
Validates the given element within the overlay cache.
|
void |
validateOverlays()
Validates all elements within the overlay cache.
|
public IconOverlayTracker()
@Deprecated public IconOverlayTracker(java.lang.String infoTypeId, IconOverlayCache cache)
infoTypeId
- the unique identifier for the type of information this
tracker tracks.cache
- the cache.@Deprecated public IconOverlayTracker(java.lang.String infoTypeId, IconOverlayCache cache, int batchSize)
infoTypeId
- the unique identifier for the type of information this
tracker tracks.cache
- the cache.batchSize
- the overlay request batch size.public IconOverlayCache getOverlayCache()
IconOverlayCache
of the tracker.protected void configure()
IconOverlayTracker
instance. Override this method
to perform additional initialization after construction and configuration
by the associated IconOverlayCoordinator
.public final java.lang.String getExtensionID()
public final java.lang.String getInfoTypeID()
protected abstract boolean isControlled(Element e)
e
- the element.protected abstract IconOverlay[] getOverlays(Element[] elements)
elements
- the collection of elements.protected Element[] getValidElements()
public void validateOverlay(Element e)
e
- the element.public void validateOverlays()
public void repaintOverlays()
@Deprecated protected void startTracking()
startTrackingImpl()
.@Deprecated public void stopTracking()
IconOverlayCoordinator.dispose()
for callers
and stopTrackingImpl()
for overrides.protected void startTrackingImpl()
protected void stopTrackingImpl()