T
- the type of granularity supported by the policypublic interface IGridPolicy<T extends IGranularity> extends IPolicy
Modifier and Type | Method and Description |
---|---|
long |
getGridAdjustedEndTime(T granularity,
long unadjustedEndTime,
IDatelineModel<T> datelineModel,
boolean autoGrid)
Returns a grid adjusted time point for the given unadjusted end time.
|
long |
getGridAdjustedStartTime(T granularity,
long unadjustedStartTime,
IDatelineModel<T> datelineModel,
boolean autoGrid)
Returns a grid adjusted time point for the given unadjusted start time.
|
ITimeSpan |
getGridAdjustedTimeSpan(T granularity,
ITimeSpan unadjustedTimeSpan,
IDatelineModel<T> datelineModel,
boolean autoGrid)
Returns a grid adjusted time span for the given unadjusted time span.
|
T[] |
getGridGranularities()
Returns the granularities that will be available for the grid.
|
T[] getGridGranularities()
long getGridAdjustedStartTime(T granularity, long unadjustedStartTime, IDatelineModel<T> datelineModel, boolean autoGrid)
granularity
- the granularity for which to return an adjusted time pointunadjustedStartTime
- the original time that needs adjustmentdatelineModel
- the model used by the dateline (needed for the auto grid
feature)autoGrid
- if TRUE the grid calculations will be based on the minor
granularity shown by the datelinelong getGridAdjustedEndTime(T granularity, long unadjustedEndTime, IDatelineModel<T> datelineModel, boolean autoGrid)
granularity
- the granularity for which to return an adjusted time pointunadjustedEndTime
- the original time that needs adjustmentdatelineModel
- the model used by the dateline (needed for the auto grid
feature)autoGrid
- if TRUE the grid calculations will be based on the minor
granularity shown by the datelineITimeSpan getGridAdjustedTimeSpan(T granularity, ITimeSpan unadjustedTimeSpan, IDatelineModel<T> datelineModel, boolean autoGrid)
granularity
- the granularity for which to return an adjusted time pointunadjustedTimeSpan
- the original time span that needs adjustmentdatelineModel
- the model used by the dateline (needed for the auto grid
feature)autoGrid
- if TRUE the grid calculations will be based on the minor
granularity shown by the datelineCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.