| org.jvnet.substance.swingx.SubstanceMonthViewUI
SubstanceMonthViewUI | public class SubstanceMonthViewUI extends BasicMonthViewUI implements Trackable(Code) | | Substance-consistent UI delegate for
JXMonthView .
author: Kirill Grouchnikov |
Inner Class :protected class MonthRepaintCallback extends FadeTrackerAdapter | |
Inner Class :protected class DayRepaintCallback extends FadeTrackerAdapter | |
Method Summary | |
public static ComponentUI | createUI(JComponent c) | public ComponentState | getDayState(int dayIndex, int monthIndex, int yearIndex) Returns the current state for the specified day.
Parameters: dayIndex - Day index. | public ComponentState | getMonthState(int monthIndex, int yearIndex) Returns the current state for the specified month.
Parameters: dayIndex - Day index. | public ComponentState | getPrevDayState(int dayIndex, int monthIndex, int yearIndex) Returns the previous state for the specified day.
Parameters: dayIndex - Day index. | public ComponentState | getPrevMonthState(int monthIndex, int yearIndex) Returns the previous state for the specified day.
Parameters: dayIndex - Day index. | protected void | installDefaults() | protected void | installListeners() | public boolean | isInside(MouseEvent me) | protected void | paintBackground(Rectangle clip, Graphics graphics) | protected void | paintDayBackground(Graphics g, int x, int y, int width, int height, Calendar cal) | protected void | paintDayForeground(Graphics g, String numericDay, int x, int y, Calendar cal) | protected void | paintDayOfTheWeekBackground(Graphics g, int x, int y, int width, int height, Calendar cal) | protected void | paintMonthStringBackground(Graphics g, int x, int y, int width, int height, Calendar cal) | protected void | paintMonthStringForeground(Graphics g, String monthName, int monthX, int monthY, String yearName, int yearX, int yearY, Calendar cal) | protected void | paintWeekOfYearBackground(Graphics g, int x, int y, int width, int height, Calendar cal) | protected void | resetRolloverIndex() Resets the rollover index. | protected void | uninstallDefaults() | protected void | uninstallListeners() |
headerHeight | protected int headerHeight(Code) | | |
rolloverDayId | protected int rolloverDayId(Code) | | |
rolloverMonthId | protected int rolloverMonthId(Code) | | |
rolloverYearId | protected int rolloverYearId(Code) | | |
selectedIndices | protected Set<String> selectedIndices(Code) | | Holds the list of currently selected days. Every entry is day:month:year
|
substanceFadeRolloverListener | protected DayRolloverFadeListener substanceFadeRolloverListener(Code) | | Listener for fade animations on rollovers.
|
substanceFadeSelectionListener | protected DateSelectionListener substanceFadeSelectionListener(Code) | | Listener for fade animations on day selections.
|
SubstanceMonthViewUI | public SubstanceMonthViewUI()(Code) | | Creates a new UI delegate.
|
getDayState | public ComponentState getDayState(int dayIndex, int monthIndex, int yearIndex)(Code) | | Returns the current state for the specified day.
Parameters: dayIndex - Day index. The current state for the specified day. |
getMonthState | public ComponentState getMonthState(int monthIndex, int yearIndex)(Code) | | Returns the current state for the specified month.
Parameters: dayIndex - Day index. The current state for the specified month. |
getPrevDayState | public ComponentState getPrevDayState(int dayIndex, int monthIndex, int yearIndex)(Code) | | Returns the previous state for the specified day.
Parameters: dayIndex - Day index. The previous state for the specified day. |
getPrevMonthState | public ComponentState getPrevMonthState(int monthIndex, int yearIndex)(Code) | | Returns the previous state for the specified day.
Parameters: dayIndex - Day index. The previous state for the specified day. |
installDefaults | protected void installDefaults()(Code) | | |
installListeners | protected void installListeners()(Code) | | |
paintDayBackground | protected void paintDayBackground(Graphics g, int x, int y, int width, int height, Calendar cal)(Code) | | |
paintDayOfTheWeekBackground | protected void paintDayOfTheWeekBackground(Graphics g, int x, int y, int width, int height, Calendar cal)(Code) | | |
paintMonthStringBackground | protected void paintMonthStringBackground(Graphics g, int x, int y, int width, int height, Calendar cal)(Code) | | |
paintMonthStringForeground | protected void paintMonthStringForeground(Graphics g, String monthName, int monthX, int monthY, String yearName, int yearX, int yearY, Calendar cal)(Code) | | |
paintWeekOfYearBackground | protected void paintWeekOfYearBackground(Graphics g, int x, int y, int width, int height, Calendar cal)(Code) | | |
resetRolloverIndex | protected void resetRolloverIndex()(Code) | | Resets the rollover index.
|
uninstallDefaults | protected void uninstallDefaults()(Code) | | |
uninstallListeners | protected void uninstallListeners()(Code) | | |
|
|