T - the type of the granularitiespublic abstract class AbstractZoomPolicy<T extends IGranularity> extends AbstractPolicy implements IZoomPolicy<T>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractZoomPolicy(T[] granularities)
Constructs a new zoom policy.
|
| 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.
|
void |
setGranularities(T[] granularities)
Sets the list of supported granularities.
|
assertClassprotected AbstractZoomPolicy(T[] granularities)
granularities - the granularities that are supported by the zoom policypublic void setGranularities(T[] granularities)
granularities - the list of supported granularities (granularities that will
be shown in the dateline)public T getGranularity(int index)
IZoomPolicygetGranularity in interface IZoomPolicy<T extends IGranularity>index - the index for which to return a granularitypublic int getGranularityCount()
IZoomPolicygetGranularityCount in interface IZoomPolicy<T extends IGranularity>public int getGranularityIndex(T granularity)
IZoomPolicygetGranularityIndex in interface IZoomPolicy<T extends IGranularity>granularity - the granularity for which to return an indexCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.