public abstract class TimeModelDateBased extends TimeModel
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_TIME_FORMAT |
protected java.lang.String |
timeFormat |
protected long |
timeStart |
protected long |
timeStop |
Constructor and Description |
---|
TimeModelDateBased() |
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getDateForMidnight(java.util.Date date)
Returns the midnight date for the specified date.
|
java.util.Date |
getDateForMidnight(long timeStamp)
Returns the midnight date for the specified time stamp.
|
abstract long |
getTime() |
java.lang.String |
getTimeFormat()
Gets the time format.
|
long |
getTimeStart()
Gets the start time.
|
long |
getTimeStop()
Gets the stop time.
|
void |
setTimeFormat(java.lang.String timeFormat)
Sets the time format.
|
void |
setTimeStart(long timeStart)
Sets the start time .
|
void |
setTimeStop(long timeStop)
Sets the stop time.
|
getCopy, getDisplayElements4Execution, getJPanel4Configuration, getStopWatch, getTimeModelSetting, setStopWatch, setTimeModelSettings, step, stepBack
public static final java.lang.String DEFAULT_TIME_FORMAT
protected long timeStart
protected long timeStop
protected java.lang.String timeFormat
public abstract long getTime()
public void setTimeStart(long timeStart)
timeStart
- the new start timepublic long getTimeStart()
public void setTimeStop(long timeStop)
timeStop
- the new stop timepublic long getTimeStop()
public void setTimeFormat(java.lang.String timeFormat)
timeFormat
- the new time formatpublic java.lang.String getTimeFormat()
public java.util.Date getDateForMidnight(long timeStamp)
timeStamp
- the time stamppublic java.util.Date getDateForMidnight(java.util.Date date)
date
- the date to adjust