swingx
Version 2005-08-19

org.jdesktop.swingx.plaf
Class MonthViewUI

java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by org.jdesktop.swingx.plaf.MonthViewUI
Direct Known Subclasses:
BasicMonthViewUI

public abstract class MonthViewUI
extends ComponentUI


Constructor Summary
MonthViewUI()
           
 
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
 

Constructor Detail

MonthViewUI

public MonthViewUI()
Method Detail

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 position
y - 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.

swingx
Version 2005-08-19