T
- the type of the granularity (e.g. TimeGranularity,
SimpleGranularity)public interface IZoomPolicy<T extends IGranularity> extends IPolicy
Dateline
. The model
uses the policy to determine which time granularities will be available for
the user for zoom in and zoom out operations.Modifier and Type | Method and Description |
---|---|
T |
getGranularity(int index)
Returns the granularity with the given index.
|
int |
getGranularityCount()
Returns the number of supported granularities.
|
int |
getGranularityIndex(T granularity)
Returns the index of the given granularity.
|
int getGranularityCount()
T getGranularity(int index)
index
- the index for which to return a granularityint getGranularityIndex(T granularity)
granularity
- the granularity for which to return an indexCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.