|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.dlsc.flexgantt.policy.AbstractPolicy com.dlsc.flexgantt.policy.gantt.AbstractStatusBarPolicy com.dlsc.flexgantt.policy.gantt.TimeGranularityStatusBarPolicy
public class TimeGranularityStatusBarPolicy
An implementation of the status bar policy used in situations where the
dateline model is an instance of TimeGranularityDatelineModel
. For
more information on the purpose of the policy please refer to the
documentation of IStatusBarPolicy
.
Constructor Summary | |
---|---|
TimeGranularityStatusBarPolicy()
|
Method Summary | |
---|---|
java.text.DateFormat |
getFormat()
Returns the date formatting object used by the policy methods to format the given time points and time spans. |
java.lang.String |
getTimeNowString(IDatelineModel model,
long time)
Returns a string representing the given time point, which represents time now. |
java.lang.String |
getTimeSpanString(IDatelineModel model,
ITimeSpan span)
Returns a string representing the given time span. |
java.lang.String |
getTimeString(IDatelineModel model,
long time)
Returns a string representing the given time point. |
void |
setFormat(java.text.DateFormat format)
Sets the date formatting object used by the policy methods to format the given time points and time spans. |
Methods inherited from class com.dlsc.flexgantt.policy.gantt.AbstractStatusBarPolicy |
---|
addStatusBarFields, isStatusBarFieldVisible, removeStatusBarFields |
Methods inherited from class com.dlsc.flexgantt.policy.AbstractPolicy |
---|
assertClass |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.dlsc.flexgantt.policy.gantt.IStatusBarPolicy |
---|
isStatusBarFieldVisible |
Constructor Detail |
---|
public TimeGranularityStatusBarPolicy()
Method Detail |
---|
public java.lang.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 string
public java.lang.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 string
public java.lang.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 string
public java.text.DateFormat getFormat()
DateFormat.getInstance()
.
setFormat(DateFormat)
public void setFormat(java.text.DateFormat format)
DateFormat.getInstance()
.
format
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |