public class TimeGranularityStatusBarPolicy extends AbstractStatusBarPolicy implements IStatusBarPolicy
TimeGranularityDatelineModel. For
more information on the purpose of the policy please refer to the
documentation of IStatusBarPolicy.| Constructor and Description |
|---|
TimeGranularityStatusBarPolicy() |
| Modifier and Type | Method and Description |
|---|---|
DateFormat |
getFormat()
Returns the date formatting object used by the policy methods to format
the given time points and time spans.
|
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.
|
void |
setFormat(DateFormat format)
Sets the date formatting object used by the policy methods to format the
given time points and time spans.
|
addStatusBarFields, isStatusBarFieldVisible, removeStatusBarFieldsassertClassclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisStatusBarFieldVisiblepublic String getTimeNowString(IDatelineModel model, long time)
IStatusBarPolicygetTimeNowString in interface IStatusBarPolicymodel - the dateline model currently used by the Gantt charttime - the time (now) point for which to return a stringpublic String getTimeSpanString(IDatelineModel model, ITimeSpan span)
IStatusBarPolicygetTimeSpanString in interface IStatusBarPolicymodel - the dateline model currently used by the Gantt chartspan - the time span for which to return a stringpublic String getTimeString(IDatelineModel model, long time)
IStatusBarPolicygetTimeString in interface IStatusBarPolicymodel - the dateline model currently used by the Gantt charttime - the time point for which to return a stringpublic DateFormat getFormat()
DateFormat.getInstance().setFormat(DateFormat)public void setFormat(DateFormat format)
DateFormat.getInstance().format - Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.