Class SubstanceMonthViewUI
- java.lang.Object
-
- javax.swing.plaf.ComponentUI
-
- org.jdesktop.swingx.plaf.MonthViewUI
-
- org.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
- org.pushingpixels.substance.swingx.SubstanceMonthViewUI
-
- All Implemented Interfaces:
org.pushingpixels.substance.internal.animation.TransitionAwareUI
public class SubstanceMonthViewUI extends org.jdesktop.swingx.plaf.basic.BasicMonthViewUI implements org.pushingpixels.substance.internal.animation.TransitionAwareUISubstance-consistent UI delegate forJXMonthView.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classSubstanceMonthViewUI.DayRepaintCallbackRepaints a single day during the fade animation cycle.protected classSubstanceMonthViewUI.MonthRepaintCallbackRepaints a single month during the fade animation cycle.protected classSubstanceMonthViewUI.SubstanceRenderingHandler
-
Field Summary
Fields Modifier and Type Field Description protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateIdrolloverDateIdprotected Set<org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId>selectedDatesHolds the list of currently selected days.protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DayRolloverFadeListenersubstanceFadeRolloverListenerListener for transition animations on rollovers.protected org.jdesktop.swingx.event.DateSelectionListenersubstanceFadeSelectionListenerListener for transition animations on day selections.-
Fields inherited from class org.jdesktop.swingx.plaf.basic.BasicMonthViewUI
calendarGrid, DAY_HEADER_ROW, DAYS_IN_WEEK, FIRST_DAY_COLUMN, FIRST_WEEK_ROW, isLeftToRight, LAST_DAY_COLUMN, LAST_WEEK_ROW, MONTH_DOWN, MONTH_UP, monthDownImage, monthsOfTheYear, monthUpImage, monthView, WEEK_HEADER_COLUMN, WEEKS_IN_MONTH
-
-
Constructor Summary
Constructors Constructor Description SubstanceMonthViewUI()Creates a new UI delegate.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.RenderingHandlercreateRenderingHandler()static ComponentUIcreateUI(JComponent comp)org.pushingpixels.substance.internal.animation.StateTransitionTrackergetTransitionTracker()protected voidinstallDefaults()protected voidinstallDelegate()protected voidinstallListeners()booleanisInside(MouseEvent me)protected voidpaintDayOfMonth(Graphics g, Rectangle bounds, Calendar calendar, org.jdesktop.swingx.plaf.basic.CalendarState state)protected voidpaintMonthHeader(Graphics g, Calendar calendar)voidresetRolloverIndex()Resets the rollover index.protected voiduninstallDefaults()protected voiduninstallListeners()voidupdate(Graphics g, JComponent c)-
Methods inherited from class org.jdesktop.swingx.plaf.basic.BasicMonthViewUI
createCalendarHeaderHandler, createDerivedFont, createLayoutManager, createMouseListener, createMouseMotionListener, createPropertyChangeListener, getCalendar, getCalendar, getCalendarHeaderHandler, getDayAtLocation, getDayBounds, getDayBoundsAtLocation, getDayBoundsInMonth, getDayGridPosition, getDayGridPositionAtLocation, getDayInMonth, getDaySize, getDaysOfTheWeek, getFirstDisplayedDay, getFirstDisplayedMonth, getFirstDisplayedYear, getHeaderFromUIManager, getLastDisplayedDay, getMonth, getMonthAtLocation, getMonthBounds, getMonthBounds, getMonthBoundsAtLocation, getMonthDetailsBoundsAtLocation, getMonthGridPosition, getMonthGridPositionAtLocation, getMonthHeaderBounds, getMonthHeaderBoundsAtLocation, getMonthHeaderHeight, getMonthSize, getRenderingHandler, getSelection, getToday, getTraversableGridPositionAtLocation, getWeeks, installComponents, installKeyboardActions, installRenderingHandler, installUI, isToday, isUIInstallable, isUsingKeyboard, isZoomable, paint, paintBackground, paintDayHeader, paintDays, paintDaysOfWeekSeparator, paintMonth, paintWeekHeader, paintWeekOfYearSeparator, setCalendarHeaderHandler, setFirstDisplayedDay, setRenderingHandler, setUsingKeyboard, uninstallComponents, uninstallKeyboardActions, uninstallRenderingHandler, uninstallUI, updateComponentInputMap, updateLocale, updateZoomable
-
Methods inherited from class javax.swing.plaf.ComponentUI
contains, getAccessibleChild, getAccessibleChildrenCount, getBaseline, getBaselineResizeBehavior, getMaximumSize, getMinimumSize, getPreferredSize
-
-
-
-
Field Detail
-
substanceFadeRolloverListener
protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DayRolloverFadeListener substanceFadeRolloverListener
Listener for transition animations on rollovers.
-
rolloverDateId
protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId rolloverDateId
-
selectedDates
protected Set<org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId> selectedDates
Holds the list of currently selected days. Every entry is day:month:year
-
substanceFadeSelectionListener
protected org.jdesktop.swingx.event.DateSelectionListener substanceFadeSelectionListener
Listener for transition animations on day selections.
-
-
Method Detail
-
createUI
public static ComponentUI createUI(JComponent comp)
-
installDefaults
protected void installDefaults()
- Overrides:
installDefaultsin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
installDelegate
protected void installDelegate()
- Overrides:
installDelegatein classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
installListeners
protected void installListeners()
- Overrides:
installListenersin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
uninstallListeners
protected void uninstallListeners()
- Overrides:
uninstallListenersin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
uninstallDefaults
protected void uninstallDefaults()
- Overrides:
uninstallDefaultsin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
isInside
public boolean isInside(MouseEvent me)
- Specified by:
isInsidein interfaceorg.pushingpixels.substance.internal.animation.TransitionAwareUI
-
getTransitionTracker
public org.pushingpixels.substance.internal.animation.StateTransitionTracker getTransitionTracker()
- Specified by:
getTransitionTrackerin interfaceorg.pushingpixels.substance.internal.animation.TransitionAwareUI
-
resetRolloverIndex
public void resetRolloverIndex()
Resets the rollover index.
-
createRenderingHandler
protected org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.RenderingHandler createRenderingHandler()
- Overrides:
createRenderingHandlerin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
paintMonthHeader
protected void paintMonthHeader(Graphics g, Calendar calendar)
- Overrides:
paintMonthHeaderin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
paintDayOfMonth
protected void paintDayOfMonth(Graphics g, Rectangle bounds, Calendar calendar, org.jdesktop.swingx.plaf.basic.CalendarState state)
- Overrides:
paintDayOfMonthin classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
update
public void update(Graphics g, JComponent c)
- Overrides:
updatein classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
-