public interface IStatusBarPolicy extends IPolicy
SimpleGranularityDatelineModel
requires the status
bar to show time points as numbers (1, 2, 3, ....) and time spans as pairs of
numbers (1 - 10, 10 - 20, ...). The TimeGranularityDatelineModel
needs the status bar to display standard time information such as "Mon. Jan
5th".Modifier and Type | Method and Description |
---|---|
String |
getTimeNowString(IDatelineModel model,
long time)
Returns a string representing the given time point, which represents
time now.
|
String |
getTimeSpanString(IDatelineModel model,
ITimeSpan span)
Returns a string representing the given time span.
|
String |
getTimeString(IDatelineModel model,
long time)
Returns a string representing the given time point.
|
boolean |
isStatusBarFieldVisible(StatusBarField field)
Determines whether the given status bar field is visible in the Gantt
chart status bar or not.
|
String getTimeString(IDatelineModel model, long time)
model
- the dateline model currently used by the Gantt charttime
- the time point for which to return a stringString getTimeSpanString(IDatelineModel model, ITimeSpan span)
model
- the dateline model currently used by the Gantt chartspan
- the time span for which to return a stringString getTimeNowString(IDatelineModel model, long time)
model
- the dateline model currently used by the Gantt charttime
- the time (now) point for which to return a stringboolean isStatusBarFieldVisible(StatusBarField field)
field
- the field to check for visibilityCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.