|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.dateline.AbstractZoomPolicy<T>
T
- the type of the granularitiespublic abstract class AbstractZoomPolicy<T extends IGranularity>
An abstract zoom policy implementation, which allows to specify a list of supported granularities. The type of the granularities gets specified by the subclasses.
Constructor Summary | |
---|---|
protected |
AbstractZoomPolicy(T[] granularities)
Constructs a new zoom policy. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AbstractZoomPolicy(T[] granularities)
granularities
- the granularities that are supported by the zoom policyMethod Detail |
---|
public void setGranularities(T[] granularities)
granularities
- the list of supported granularities (granularities that will
be shown in the dateline)public T getGranularity(int index)
IZoomPolicy
getGranularity
in interface IZoomPolicy<T extends IGranularity>
index
- the index for which to return a granularity
public int getGranularityCount()
IZoomPolicy
getGranularityCount
in interface IZoomPolicy<T extends IGranularity>
public int getGranularityIndex(T granularity)
IZoomPolicy
getGranularityIndex
in interface IZoomPolicy<T extends IGranularity>
granularity
- the granularity for which to return an index
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |