new TimeSeriesStack(clock)
- Source:
Manages a stack of all the time series layers currently being shown and makes sure the clock provided is always tracking the highest one. When the top-most layer is disabled, the clock will track the next highest in the stack. Provides access to the current top layer so that can be displayed to the user.
Parameters:
Name | Type | Description |
---|---|---|
clock |
The clock that should track the highest layer. |
Methods
addLayerToTop(item)
- Source:
Adds the supplied CatalogItem
to the top of the stack. If the item is already in the stack, it will be moved
rather than added twice.
Parameters:
Name | Type | Description |
---|---|---|
item |
CatalogItem |
promoteLayerToTop(item)
- Source:
Promotes the supplied CatalogItem
to the top of the stack if it is already in the stack. If the item is not
already in the stack it wont be added.
Parameters:
Name | Type | Description |
---|---|---|
item |
CatalogItem |
removeLayer(item;)
- Source:
Removes a layer from the stack, no matter what it's location. If the layer is currently at the top, the value of
TimeSeriesStack#topLayer
will change.
Parameters:
Name | Type | Description |
---|---|---|
item; |
CatalogItem |