|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use TimeGranularity | |
---|---|
com.dlsc.flexgantt.model | A few classes and interfaces that are frequently used throughout the model packages. |
com.dlsc.flexgantt.model.calendar | Contains interfaces and classes for modelling a calendar, which can be used to color time spans differently based on calendar entries (holidays, vacation, milestones, ...). |
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.timeline | Contains the timeline component, which itself consists of a dateline and an eventline. |
Uses of TimeGranularity in com.dlsc.flexgantt.model |
---|
Methods in com.dlsc.flexgantt.model that return TimeGranularity | |
---|---|
static TimeGranularity[] |
TimeGranularity.getRange(TimeGranularity smallest,
TimeGranularity largest)
Returns an array of time granularities. |
static TimeGranularity |
TimeGranularity.getTimeGranularity(java.lang.String name)
A name-based lookup of time granularities. |
static TimeGranularity |
TimeGranularity.valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static TimeGranularity[] |
TimeGranularity.values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods in com.dlsc.flexgantt.model with parameters of type TimeGranularity | |
---|---|
static TimeGranularity[] |
TimeGranularity.getRange(TimeGranularity smallest,
TimeGranularity largest)
Returns an array of time granularities. |
boolean |
TimeGranularity.isInside(TimeGranularity lower,
TimeGranularity upper)
Checks whether a time granularity is 'inside' two other granularities. |
boolean |
TimeGranularity.isLarger(TimeGranularity tg)
Performs a check to see whether the time granularity is 'larger' than the given granularity. |
boolean |
TimeGranularity.isSmaller(TimeGranularity tg)
Performs a check to see whether the time granularity is 'smaller' than the given granularity. |
Uses of TimeGranularity in com.dlsc.flexgantt.model.calendar |
---|
Methods in com.dlsc.flexgantt.model.calendar with parameters of type TimeGranularity | |
---|---|
protected boolean |
TimeGranularityCalendarModel.isGranularityShowingCalendarEntries(TimeGranularity tg)
Determines whether the given time granularity is suitable for displaying calendar entries. |
Uses of TimeGranularity in com.dlsc.flexgantt.policy.dateline |
---|
Constructors in com.dlsc.flexgantt.policy.dateline with parameters of type TimeGranularity | |
---|---|
TimeGranularityZoomPolicy(TimeGranularity[] granularities)
Constructs a new policy. |
Uses of TimeGranularity in com.dlsc.flexgantt.policy.layer |
---|
Methods in com.dlsc.flexgantt.policy.layer with parameters of type TimeGranularity | |
---|---|
long |
TimeGranularityGridPolicy.getGridAdjustedEndTime(TimeGranularity tg,
long endTime,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
long |
TimeGranularityGridPolicy.getGridAdjustedStartTime(TimeGranularity tg,
long startTime,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
ITimeSpan |
TimeGranularityGridPolicy.getGridAdjustedTimeSpan(TimeGranularity tg,
ITimeSpan timeSpan,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
Method parameters in com.dlsc.flexgantt.policy.layer with type arguments of type TimeGranularity | |
---|---|
long |
TimeGranularityGridPolicy.getGridAdjustedEndTime(TimeGranularity tg,
long endTime,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
long |
TimeGranularityGridPolicy.getGridAdjustedStartTime(TimeGranularity tg,
long startTime,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
ITimeSpan |
TimeGranularityGridPolicy.getGridAdjustedTimeSpan(TimeGranularity tg,
ITimeSpan timeSpan,
IDatelineModel<TimeGranularity> datelineModel,
boolean autoGrid)
|
Constructors in com.dlsc.flexgantt.policy.layer with parameters of type TimeGranularity | |
---|---|
TimeGranularityGridPolicy(boolean adjustingStartTimes,
boolean adjustingEndTimes,
TimeGranularity... granularities)
Constructs a new policy. |
|
TimeGranularityGridPolicy(TimeGranularity... granularities)
Constructs a new policy, which will round start and end times. |
Uses of TimeGranularity in com.dlsc.flexgantt.swing.timeline |
---|
Methods in com.dlsc.flexgantt.swing.timeline that return TimeGranularity | |
---|---|
TimeGranularity |
TimeGranularityDatelineModel.getMajorTimeGranularity()
Returns the major time granularity, which is based on the currently used (minor) time granularity. |
TimeGranularity |
TimeGranularityDatelineModel.getTimeGranularity(ITimeSpan span,
int width)
Returns a suitable time granularity that can be used to display the given time span in the given width. |
Methods in com.dlsc.flexgantt.swing.timeline with parameters of type TimeGranularity | |
---|---|
java.text.DateFormat |
TimeGranularityDatelineModel.getMajorDateFormat(TimeGranularity granularity)
Returns the date formatter used for the given time granularity, when formatting time in the major part of the dateline (the upper part). |
java.lang.String |
TimeGranularityDatelineModel.getMajorDateString(TimeGranularity level,
long date)
Returns a string representation of a time point based on the given time granularity. |
java.text.DateFormat |
TimeGranularityDatelineModel.getMinorDateFormat(TimeGranularity granularity)
Returns the date formatter used for the given time granularity, when formatting time in the minor part of the dateline (the lower part). |
java.lang.String |
TimeGranularityDatelineModel.getMinorDateString(TimeGranularity level,
long date)
Returns a string representation of a time point based on the given time granularity. |
void |
TimeGranularityDatelineModel.setMajorDateFormat(TimeGranularity granularity,
java.text.DateFormat format)
Sets the date formatter used for the given time granularity, when formatting time in the major part of the dateline (the upper part). |
void |
TimeGranularityDatelineModel.setMinorDateFormat(TimeGranularity granularity,
java.text.DateFormat format)
Sets the date formatter used for the given time granularity, when formatting time in the minor part of the dateline (the lower part). |
Constructors in com.dlsc.flexgantt.swing.timeline with parameters of type TimeGranularity | |
---|---|
TimeGranularityDatelineModel(Dateline dateline,
ITimeSpan timeSpan,
TimeGranularity tg)
Constructs a new dateline model. |
|
TimeGranularityDatelineModel(Dateline dateline,
ITimeSpan timeSpan,
TimeGranularity tg,
java.util.TimeZone zone)
Constructs a new dateline model. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |