public abstract class CalendarPanelUI extends ComponentUI
IlvJCalendarPanel
components.BasicCalendarPanelUI
Constructor and Description |
---|
CalendarPanelUI()
Creates a new
CalendarPanelUI . |
Modifier and Type | Method and Description |
---|---|
abstract Calendar |
getCellDate(IlvJCalendarPanel calendarPanel,
int row,
int column)
Returns the date displayed in the day cell that lies at the intersection of
the specified week
row and day-of-week column . |
abstract Rectangle |
getCellRect(IlvJCalendarPanel calendarPanel,
int row,
int column)
Returns a rectangle for the day cell that lies at the intersection of the
specified week
row and day-of-week column . |
abstract int |
getColumnAtPoint(IlvJCalendarPanel calendarPanel,
Point point)
Returns the index of the day-of-week column that
point lies
in. |
abstract int |
getColumnCount(IlvJCalendarPanel calendarPanel)
Returns the number of day-of-week columns in the specified calendar panel.
|
abstract int |
getColumnWidth(IlvJCalendarPanel calendarPanel)
Returns the width of the day-of-week columns in the specified calendar panel.
|
abstract int |
getRowAtPoint(IlvJCalendarPanel calendarPanel,
Point point)
Returns the index of the week row that
point lies in. |
abstract int |
getRowCount(IlvJCalendarPanel calendarPanel)
Returns the number of week rows in the specified calendar panel.
|
abstract int |
getRowHeight(IlvJCalendarPanel calendarPanel)
Returns the height of the week rows in the specified calendar panel.
|
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update
public abstract int getRowCount(IlvJCalendarPanel calendarPanel)
calendarPanel
- The calendar panel.public abstract int getColumnCount(IlvJCalendarPanel calendarPanel)
calendarPanel
- The calendar panel.public abstract int getRowHeight(IlvJCalendarPanel calendarPanel)
calendarPanel
- The calendar panel.public abstract int getColumnWidth(IlvJCalendarPanel calendarPanel)
calendarPanel
- The calendar panel.public abstract Rectangle getCellRect(IlvJCalendarPanel calendarPanel, int row, int column)
row
and day-of-week column
. A
value of -1 can be specified for the row
to indicate the
days-of-week header. If the specified cell coordinates are out of range,
then null
is returned.calendarPanel
- The calendar panel.row
- The week row, or -1 to indicate the days-of-week header.column
- The day-of-week column.public abstract int getRowAtPoint(IlvJCalendarPanel calendarPanel, Point point)
point
lies in. This
method returns -1 if the point lies in the days-of-week header. Otherwise,
this method returns -2 if the result is not in the range [0, getRowCount(ilog.views.util.swing.calendar.IlvJCalendarPanel)
-1].calendarPanel
- The calendar panel.point
- The location of interest.point
lies in, or -1
if point
lies in the days-of-week header, or -2 if the
result is not in the range [0, getRowCount(ilog.views.util.swing.calendar.IlvJCalendarPanel)
-1].getColumnAtPoint(ilog.views.util.swing.calendar.IlvJCalendarPanel, java.awt.Point)
public abstract int getColumnAtPoint(IlvJCalendarPanel calendarPanel, Point point)
point
lies
in. This method returns -1 if the point is not in the range
[0, getColumnCount(ilog.views.util.swing.calendar.IlvJCalendarPanel)
-1].calendarPanel
- The calendar panel.point
- The location of interest.point
lies
in, or -1 if the result is not in the range [0, getColumnCount(ilog.views.util.swing.calendar.IlvJCalendarPanel)
-1].getRowAtPoint(ilog.views.util.swing.calendar.IlvJCalendarPanel, java.awt.Point)
public abstract Calendar getCellDate(IlvJCalendarPanel calendarPanel, int row, int column)
row
and day-of-week column
.
If the specified cell coordinates are out of range, then null
is returned.calendarPanel
- The calendar panel.row
- The week row.column
- The day-of-week column.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.