|
||||||||||
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.layer.AbstractGridPolicy<T>
T
- the type of the grid granularitypublic abstract class AbstractGridPolicy<T extends IGranularity>
An abstract implementation of IGridPolicy
, which deals with storing
the list of supported granularities.
Constructor Summary | |
---|---|
protected |
AbstractGridPolicy(boolean adjustingStartTimes,
boolean adjustingEndTimes,
T... granularities)
Constructs a new grid policy. |
protected |
AbstractGridPolicy(T... granularities)
Constructs a new grid policy, which adjusts start and end times. |
Method Summary | |
---|---|
T[] |
getGridGranularities()
Returns the granularities that will be available for the grid. |
boolean |
isAdjustingEndTimes()
Determines whether the policy will round end times based on a given granularity. |
boolean |
isAdjustingStartTimes()
Determines whether the policy will round start times based on a given granularity. |
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 |
Methods inherited from interface com.dlsc.flexgantt.policy.layer.IGridPolicy |
---|
getGridAdjustedEndTime, getGridAdjustedStartTime, getGridAdjustedTimeSpan |
Constructor Detail |
---|
protected AbstractGridPolicy(boolean adjustingStartTimes, boolean adjustingEndTimes, T... granularities)
adjustingStartTimes
- if TRUE the start times will be rounded based on the given
grid granularityadjustingEndTimes
- if TRUE the end times will be rounded based on the given grid
granularitygranularities
- the supported grid granularitiesprotected AbstractGridPolicy(T... granularities)
granularities
- the supported grid granularitiesMethod Detail |
---|
public T[] getGridGranularities()
IGridPolicy
getGridGranularities
in interface IGridPolicy<T extends IGranularity>
public boolean isAdjustingStartTimes()
public boolean isAdjustingEndTimes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |