|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.beesoft.gantt.chart.TimeSpan
public final class TimeSpan
Envelopes date range (start time - end time).
Constructor Summary | |
---|---|
TimeSpan()
Creates empty instance of TimeSpan. |
Method Summary | |
---|---|
boolean |
containsDate(java.util.Date date)
Returns true if this TimeSpan contains specified date . |
boolean |
containsDate(long millis)
Returns true if this TimeSpan contains specified time in millis . |
java.util.Date |
getDate()
Returns the start time as instance of Date . |
long |
getEndTime()
Returns the end time in millis. |
int |
getPosition()
Returns x-coordinate of this instance in the chart component. |
long |
getStartTime()
Returns the start time in millis. |
int |
getWidth()
Returns screen width (in pixels) of this instance in chart component. |
boolean |
isHoliday()
Returns value of the holiday property. |
boolean |
isWeekend()
Returns value of the weekend property. |
void |
setEndTime(long endTime)
Sets the end time. |
void |
setHoliday(boolean holiday)
Sets value to holiday property. |
void |
setPosition(int position)
Sets the x-coordinate of this instance in the chart component. |
void |
setStartTime(long startTime)
Sets the start time. |
void |
setWeekend(boolean weekend)
Sets value to the weekend property. |
void |
setWidth(int width)
Sets screen width (in pixels) of this instance in chart component. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeSpan()
Method Detail |
---|
public long getStartTime()
public void setStartTime(long startTime)
startTime
- - start time in millispublic long getEndTime()
public void setEndTime(long endTime)
endTime
- - end time in millispublic java.util.Date getDate()
Date
.
public boolean isHoliday()
public void setHoliday(boolean holiday)
ChartComponent
and it uses this instance as information cache for
painting.
holiday
- - a new value for holiday propertypublic boolean isWeekend()
public void setWeekend(boolean weekend)
ChartComponent
and it uses this instance as information cache for
painting.
weekend
- - a new value for the weekend propertypublic int getPosition()
public void setPosition(int position)
position
- - a new x-coordinate of this instancepublic int getWidth()
public void setWidth(int width)
width
- - a new screen width of this instancepublic boolean containsDate(java.util.Date date)
date
.
date
- - date whose presence in this TimeSpan is to be tested
public boolean containsDate(long millis)
millis
.
millis
- - time whose presence in this TimeSpan is to be tested
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |