public class TopoOverlayCache extends Object
UiTopoOverlay's that were registered
at the time the UI connection was established.| Constructor and Description |
|---|
TopoOverlayCache() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(org.onosproject.ui.UiTopoOverlay overlay)
Adds a topology overlay to the cache.
|
org.onosproject.ui.UiTopoOverlay |
currentOverlay()
Returns the current overlay instance.
|
void |
destroy()
Invoked when the cache is no longer needed.
|
boolean |
isActive(String overlayId)
Returns true if the identifier of the currently active overlay
matches the given parameter.
|
int |
size()
Returns the number of overlays in the cache.
|
void |
switchOverlay(String deact,
String act)
Switching currently selected overlay.
|
public void add(org.onosproject.ui.UiTopoOverlay overlay)
overlay - a topology overlaypublic void destroy()
public void switchOverlay(String deact, String act)
deact - identity of overlay to deactivateact - identity of overlay to activatepublic org.onosproject.ui.UiTopoOverlay currentOverlay()
public int size()
public boolean isActive(String overlayId)
overlayId - overlay identifierCopyright © 2015. All rights reserved.