|
||||||||||
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.DefaultGridLinePolicy com.dlsc.flexgantt.policy.layer.TimeGranularityGridLinePolicy
public class TimeGranularityGridLinePolicy
A specialization of the default grid line policy for situations where the
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 IDragAndDropPolicy
.
Constructor Summary | |
---|---|
TimeGranularityGridLinePolicy()
|
Method Summary | |
---|---|
boolean |
isMajorGridLinesVisible(IDatelineModel datelineModel,
GridLineMode mode)
Determines whether the grid lines for the major time units will be shown or not. |
Methods inherited from class com.dlsc.flexgantt.policy.layer.DefaultGridLinePolicy |
---|
isMinorGridLinesVisible |
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 |
---|
public TimeGranularityGridLinePolicy()
Method Detail |
---|
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |