org.jdesktop.swingx.plaf
Class MonthViewUI
java.lang.Object
javax.swing.plaf.ComponentUI
org.jdesktop.swingx.plaf.MonthViewUI
- Direct Known Subclasses:
- BasicMonthViewUI
public abstract class MonthViewUI
- extends ComponentUI
Method Summary |
abstract long |
calculateLastDisplayedDate()
Calculate the last possible date that can be displayed. |
abstract long |
getDayAt(int x,
int y)
Return a long representing the date at the specified x/y position. |
Methods inherited from class javax.swing.plaf.ComponentUI |
contains, createUI, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, installUI, paint, uninstallUI, update |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MonthViewUI
public MonthViewUI()
getDayAt
public abstract long getDayAt(int x,
int y)
- Return a long representing the date at the specified x/y position.
It is expected that the date returned will have a valid day, month
and year. All other fields such as hour, minute, second and milli-
second will be set to 0.
- Parameters:
x
- X positiony
- Y position
- Returns:
- long The date, -1 if position does not contain a date.
calculateLastDisplayedDate
public abstract long calculateLastDisplayedDate()
- Calculate the last possible date that can be displayed.
This is implemented by the UI since it is in control of layout
and may possibly yeild different results based on implementation.
- Returns:
- long The date.