public class SimpleGranularityStatusBarPolicy extends AbstractStatusBarPolicy implements IStatusBarPolicy
SimpleGranularityDatelineModel
. For
more information on the purpose of the policy please refer to the
documentation of IStatusBarPolicy
.Constructor and Description |
---|
SimpleGranularityStatusBarPolicy() |
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.
|
addStatusBarFields, isStatusBarFieldVisible, removeStatusBarFields
assertClass
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isStatusBarFieldVisible
public String getTimeNowString(IDatelineModel model, long time)
IStatusBarPolicy
getTimeNowString
in interface IStatusBarPolicy
model
- 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)
IStatusBarPolicy
getTimeSpanString
in interface IStatusBarPolicy
model
- the dateline model currently used by the Gantt chartspan
- the time span for which to return a stringpublic String getTimeString(IDatelineModel model, long time)
IStatusBarPolicy
getTimeString
in interface IStatusBarPolicy
model
- the dateline model currently used by the Gantt charttime
- the time point for which to return a stringCopyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.