public class TimeGranularityGridLinePolicy extends DefaultGridLinePolicy
TimeGranularityDatelineModel
gets used by the dateline. This policy
takes into account that depending on the major and the minor time
granularities the major and minor grid lines will not be on top of each other
causing a messy grid line appearance. In these cases the policy will turn off
the major grid lines. For a more general description of this policy please
refer to the policy interface IGridLinePolicy
.Constructor and Description |
---|
TimeGranularityGridLinePolicy() |
Modifier and Type | Method and Description |
---|---|
boolean |
isMajorGridLinesVisible(IDatelineModel datelineModel,
GridLineMode mode)
Determines whether the grid lines for the major time units will be shown
or not.
|
isMinorGridLinesVisible
assertClass
public boolean isMajorGridLinesVisible(IDatelineModel datelineModel, GridLineMode mode)
IGridLinePolicy
isMajorGridLinesVisible
in interface IGridLinePolicy
isMajorGridLinesVisible
in class DefaultGridLinePolicy
datelineModel
- the dateline model currently used by the datelinemode
- the grid mode (show no grid, minor grid, major grid, combined
grid)Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.