## Uses of Class
com.dlsc.flexgantt.model.dateline.SimpleGranularity

- Packages that use SimpleGranularity
  Package | Description
  --- | ---
  com.dlsc.flexgantt.model.dateline | Provides a model definition and default implementation for a dateline model.
  com.dlsc.flexgantt.model.scheduling | Contains supporting classes for basic scheduling operations and constraint resolutions.
  com.dlsc.flexgantt.policy.dateline | Policies that will be used in the context of a dateline.
  com.dlsc.flexgantt.policy.layer | Policies that will be used in the context of layers.
  com.dlsc.flexgantt.swing.scheduling | Contains components used for supporting scheduling operations built into FlexGantt.
  com.dlsc.flexgantt.swing.timeline | Contains the timeline component, which itself consists of a dateline and an eventline.

- - ### Uses of SimpleGranularity in com.dlsc.flexgantt.model.dateline

    Methods in com.dlsc.flexgantt.model.dateline that return SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `SimpleGranularity` | SimpleGranularity.`next()` Returns the next larger granularity (example: ONE -> TEN -> HUNDRED).
    `SimpleGranularity` | SimpleGranularity.`previous()` Returns the previous smaller granularity (example: HUNDRED -> TEN -> ONE).
    `static SimpleGranularity` | SimpleGranularity.`valueOf(String name)` Returns the enum constant of this type with the specified name.
    `static SimpleGranularity[]` | SimpleGranularity.`values()` Returns an array containing the constants of this enum type, in the order they are declared.

    Methods in com.dlsc.flexgantt.model.dateline with parameters of type SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | SimpleGranularity.`isLarger(SimpleGranularity sg)` Checks whether this granularity is considered to be larger than the given one.
    `boolean` | SimpleGranularity.`isSmaller(SimpleGranularity sg)` Checks whether this granularity is considered to be smaller than the given one.

  - ### Uses of SimpleGranularity in com.dlsc.flexgantt.model.scheduling

    Methods in com.dlsc.flexgantt.model.scheduling with parameters of type SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `protected double` | SimpleGranularityConstraint.`getDelta(long time1, long time2, SimpleGranularity granularity)` Calculates the delta between the two given time points.

  - ### Uses of SimpleGranularity in com.dlsc.flexgantt.policy.dateline

    Constructors in com.dlsc.flexgantt.policy.dateline with parameters of type SimpleGranularity
    Constructor and Description
    `SimpleGranularityZoomPolicy(SimpleGranularity[] granularites)` Constructs a new policy.

  - ### Uses of SimpleGranularity in com.dlsc.flexgantt.policy.layer

    Methods in com.dlsc.flexgantt.policy.layer with parameters of type SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `long` | SimpleGranularityGridPolicy.`getGridAdjustedEndTime(SimpleGranularity sg, long endTime, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`
    `long` | SimpleGranularityGridPolicy.`getGridAdjustedStartTime(SimpleGranularity sg, long startTime, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`
    `ITimeSpan` | SimpleGranularityGridPolicy.`getGridAdjustedTimeSpan(SimpleGranularity sg, ITimeSpan timeSpan, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`

    Method parameters in com.dlsc.flexgantt.policy.layer with type arguments of type SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `long` | SimpleGranularityGridPolicy.`getGridAdjustedEndTime(SimpleGranularity sg, long endTime, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`
    `long` | SimpleGranularityGridPolicy.`getGridAdjustedStartTime(SimpleGranularity sg, long startTime, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`
    `ITimeSpan` | SimpleGranularityGridPolicy.`getGridAdjustedTimeSpan(SimpleGranularity sg, ITimeSpan timeSpan, IDatelineModel<SimpleGranularity> model, boolean autoGrid)`

    Constructors in com.dlsc.flexgantt.policy.layer with parameters of type SimpleGranularity
    Constructor and Description
    `SimpleGranularityGridPolicy(boolean adjustingStartTimes, boolean adjustingEndTimes, SimpleGranularity... granularities)` Constructs a new policy.
    `SimpleGranularityGridPolicy(SimpleGranularity... granularities)` Constructs a new policy, which will round start and end times.

  - ### Uses of SimpleGranularity in com.dlsc.flexgantt.swing.scheduling

    Constructors in com.dlsc.flexgantt.swing.scheduling with parameters of type SimpleGranularity
    Constructor and Description
    `ConstraintSettingsPanel(LayerContainer lc, SimpleGranularity[] bufferGranularities)` Constructs a new panel.

  - ### Uses of SimpleGranularity in com.dlsc.flexgantt.swing.timeline

    Methods in com.dlsc.flexgantt.swing.timeline that return SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `SimpleGranularity` | SimpleGranularityDatelineModel.`getMajorSimpleGranularity()` Returns the currently shown major granularity, which gets determined by invoking `next()` on the current granularity.

    Methods in com.dlsc.flexgantt.swing.timeline with parameters of type SimpleGranularity
    Modifier and Type | Method and Description
    --- | ---
    `String` | SimpleGranularityDatelineModel.`getMajorDateString(SimpleGranularity granularity, long time)` Returns a text representation for the given major time point and granularity.
    `String` | SimpleGranularityDatelineModel.`getMinorDateString(SimpleGranularity granularity, long time)` Returns a text representation for the given minor time point and granularity.

    Constructors in com.dlsc.flexgantt.swing.timeline with parameters of type SimpleGranularity
    Constructor and Description
    `SimpleGranularityDatelineModel(Dateline dateline, ITimeSpan timeSpan, SimpleGranularity sg)` Constructs a new dateline model.
    `SimpleGranularityDatelineModel(Dateline dateline, ITimeSpan timeSpan, SimpleGranularity sg, TimeZone timeZone)` Constructs a new dateline model.
    `SimpleGranularityDatelineModel(Dateline dateline, SimpleGranularity sg)` Constructs a new dateline model.

Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.