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.TransitionAwareUI
Substance-consistent UI delegate for
JXMonthView
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
Repaints a single day during the fade animation cycle.protected class
Repaints a single month during the fade animation cycle.protected class
Nested classes/interfaces inherited from class org.jdesktop.swingx.plaf.basic.BasicMonthViewUI
org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.RenderingHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId
protected Set<org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId>
Holds the list of currently selected days.protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DayRolloverFadeListener
Listener for transition animations on rollovers.protected org.jdesktop.swingx.event.DateSelectionListener
Listener 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jdesktop.swingx.plaf.basic.BasicMonthViewUI.RenderingHandler
static ComponentUI
createUI
(JComponent comp) org.pushingpixels.substance.internal.animation.StateTransitionTracker
protected void
protected void
protected void
boolean
isInside
(MouseEvent me) protected void
paintDayOfMonth
(Graphics g, Rectangle bounds, Calendar calendar, org.jdesktop.swingx.plaf.basic.CalendarState state) protected void
paintMonthHeader
(Graphics g, Calendar calendar) void
Resets the rollover index.protected void
protected void
void
update
(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 Details
-
substanceFadeRolloverListener
protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DayRolloverFadeListener substanceFadeRolloverListenerListener for transition animations on rollovers. -
rolloverDateId
protected org.pushingpixels.substance.swingx.SubstanceMonthViewUI.DateId rolloverDateId -
selectedDates
Holds the list of currently selected days. Every entry is day:month:year -
substanceFadeSelectionListener
protected org.jdesktop.swingx.event.DateSelectionListener substanceFadeSelectionListenerListener for transition animations on day selections.
-
-
Constructor Details
-
SubstanceMonthViewUI
public SubstanceMonthViewUI()Creates a new UI delegate.
-
-
Method Details
-
createUI
-
installDefaults
protected void installDefaults()- Overrides:
installDefaults
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
installDelegate
protected void installDelegate()- Overrides:
installDelegate
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
installListeners
protected void installListeners()- Overrides:
installListeners
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
uninstallListeners
protected void uninstallListeners()- Overrides:
uninstallListeners
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
uninstallDefaults
protected void uninstallDefaults()- Overrides:
uninstallDefaults
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
isInside
- Specified by:
isInside
in interfaceorg.pushingpixels.substance.internal.animation.TransitionAwareUI
-
getTransitionTracker
public org.pushingpixels.substance.internal.animation.StateTransitionTracker getTransitionTracker()- Specified by:
getTransitionTracker
in 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:
createRenderingHandler
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
paintMonthHeader
- Overrides:
paintMonthHeader
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
paintDayOfMonth
protected void paintDayOfMonth(Graphics g, Rectangle bounds, Calendar calendar, org.jdesktop.swingx.plaf.basic.CalendarState state) - Overrides:
paintDayOfMonth
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-
update
- Overrides:
update
in classorg.jdesktop.swingx.plaf.basic.BasicMonthViewUI
-