|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.ui.painter.def.scheduler.DefDayViewPainter.AppointmentInfo
This class adds some layout information to an appointment
Field Summary | |
private Appointment |
appointment
The Appointment |
private int |
colspan
The number of columns spanned by this appointment |
private int |
column
The column index for this appointment |
private int |
position
Indicates the "out of bounds" position of the appointment |
private int |
rowCount
The number of rows spanned by this appointment |
private int |
startHour
The hour where the appointment starts |
private int |
startInterval
The interval where the appointment starts |
private int |
startRow
The row index where the appointment starts |
private int |
visibleRows
The number of visible rows |
private int |
visibleStartRow
The visible start row |
Constructor Summary | |
DefDayViewPainter.AppointmentInfo(Appointment appointment,
int dayStartHour,
int dayEndHour,
int interval)
Constructor. |
Method Summary | |
Appointment |
getAppointment()
|
int |
getColSpan()
|
int |
getColumn()
|
int |
getEndRow()
Retrieves the last row that is covered by this appointment(absolute) |
int |
getPosition()
|
int |
getStartRow()
Returns the starting row of the appointment (absolute) |
int |
getVisibleRows()
This Attribute indicates the number of rows to span for this appointment. |
int |
getVisibleStartRow()
Returns the starting row relative to the first visible hour of the time table |
boolean |
isOverlapping(DefDayViewPainter.AppointmentInfo other)
Checks if the appointment is overlapping the other appointment |
boolean |
isVisible()
Checks if this appointment is visible |
void |
setColSpan(int colspan)
|
void |
setColumn(int index)
Assigns a free column to the appointment |
boolean |
showInCell(int row,
int col)
Checks if the appointment is shown in the given row of the time table |
boolean |
startsAt(int hour,
int interval)
Checks if the appointment starts at the given time coordinates |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Appointment appointment
private int startHour
private int startInterval
private int startRow
private int rowCount
private int visibleStartRow
private int visibleRows
private int position
private int column
private int colspan
Constructor Detail |
public DefDayViewPainter.AppointmentInfo(Appointment appointment, int dayStartHour, int dayEndHour, int interval)
appointment
- the appointmentdayStartHour
- The current day start hourdayEndHour
- The current day end hourinterval
- The current interval settingMethod Detail |
public boolean isOverlapping(DefDayViewPainter.AppointmentInfo other)
other
- the other appointment
true
when the two appointments are overlappingpublic int getStartRow()
public boolean startsAt(int hour, int interval)
hour
- the start hour to checkinterval
- the Minutes to check
true
if the appointment starts at the
specified time coordinatespublic boolean showInCell(int row, int col)
row
- The row indexcol
- The column
true
if the appointment overlays the specified
rowpublic int getEndRow()
public int getColumn()
public void setColumn(int index)
index
- the column indexpublic int getVisibleStartRow()
public int getVisibleRows()
public boolean isVisible()
true
if the appointment is visiblepublic Appointment getAppointment()
public int getPosition()
public int getColSpan()
public void setColSpan(int colspan)
colspan
- The number of columns spanned by this appointmentpublic java.lang.String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |