|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- the type of granularity supported by the policypublic interface IGridPolicy<T extends IGranularity>
A policy for dealing with a virtual grid. The policy translates coordinates to new coordinates that snap to grid locations.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 dateline
long 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 dateline
ITimeSpan 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 dateline
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |