com.dlsc.flexgantt.policy.gantt
Class SimpleGranularityStatusBarPolicy
java.lang.Object
com.dlsc.flexgantt.policy.AbstractPolicy
com.dlsc.flexgantt.policy.gantt.AbstractStatusBarPolicy
com.dlsc.flexgantt.policy.gantt.SimpleGranularityStatusBarPolicy
- All Implemented Interfaces:
- IStatusBarPolicy, IPolicy
public class SimpleGranularityStatusBarPolicy
- extends AbstractStatusBarPolicy
- implements IStatusBarPolicy
An implementation of the status bar policy used in situations where the
dateline model is an instance of SimpleGranularityDatelineModel
. For
more information on the purpose of the policy please refer to the
documentation of IStatusBarPolicy
.
- Since:
- 1.0
- Author:
- Dirk Lemmermann
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleGranularityStatusBarPolicy
public SimpleGranularityStatusBarPolicy()
getTimeNowString
public java.lang.String getTimeNowString(IDatelineModel model,
long time)
- Description copied from interface:
IStatusBarPolicy
- Returns a string representing the given time point, which represents
time now.
- Specified by:
getTimeNowString
in interface IStatusBarPolicy
- Parameters:
model
- the dateline model currently used by the Gantt charttime
- the time (now) point for which to return a string
- Returns:
- a text representation of the given time point
getTimeSpanString
public java.lang.String getTimeSpanString(IDatelineModel model,
ITimeSpan span)
- Description copied from interface:
IStatusBarPolicy
- Returns a string representing the given time span.
- Specified by:
getTimeSpanString
in interface IStatusBarPolicy
- Parameters:
model
- the dateline model currently used by the Gantt chartspan
- the time span for which to return a string
- Returns:
- a text representation of the given time span
getTimeString
public java.lang.String getTimeString(IDatelineModel model,
long time)
- Description copied from interface:
IStatusBarPolicy
- Returns a string representing the given time point.
- Specified by:
getTimeString
in interface IStatusBarPolicy
- Parameters:
model
- the dateline model currently used by the Gantt charttime
- the time point for which to return a string
- Returns:
- a text representation of the given time point