|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.swing.plaf.ComponentUI
org.jdesktop.swingx.plaf.MonthViewUI
org.jdesktop.swingx.plaf.basic.BasicMonthViewUI
public class BasicMonthViewUI
Base implementation of the JXMonthView UI.
Note: The api changed considerably between releases 0.9.4 and 0.9.5. The old methods are still available but deprecated and are no longer maintained.
The general drift of the change was to delegate all text rendering to a dedicated rendering controller (currently named RenderingHandler), similar to the collection view rendering. The UI itself keeps layout and positioning of the rendering components. Plus updating on property changes received from the monthView.
The rendering approach is used by default. Subclass providers can turn it off by overriding createRenderingHandler to return null. This is recommended until the change has stabilized. In future, custom painting will be achieved by implementing custom RenderingHandlers.
Painting: coordinate systems.
Added support (doesn't do anything yet, zoom-logic must yet be defined) by way of an active calendar header which is added to the monthView if zoomable. It is disabled by default. In this mode, the view is always traversable and shows exactly one calendar. It is orthogonal to the classic mode, that is client code should not be effected in any way as long as the mode is not explicitly enabled.
| Nested Class Summary | |
|---|---|
protected static class |
BasicMonthViewUI.RenderingHandler
The RenderingHandler responsible for text rendering. |
| Field Summary | |
|---|---|
protected Rectangle |
calendarGrid
The bounding box of the grid of visible months. |
protected SimpleDateFormat |
dayOfMonthFormatter
Deprecated. no longer used in paint/layout with renderer. |
protected Font |
derivedFont
Deprecated. no longer used in paint/layout with renderer. |
protected boolean |
isLeftToRight
|
static int |
MONTH_DOWN
Return value used to identify when the month down button is pressed. |
static int |
MONTH_UP
Return value used to identify when the month up button is pressed. |
protected Icon |
monthDownImage
|
protected String[] |
monthsOfTheYear
Deprecated. no longer used in paint/layout with renderer. |
protected Icon |
monthUpImage
|
protected JXMonthView |
monthView
the component we are installed for. |
| Constructor Summary | |
|---|---|
BasicMonthViewUI()
|
|
| Method Summary | |
|---|---|
protected org.jdesktop.swingx.plaf.basic.BasicCalendarHeader |
createCalendarHeader()
|
protected Font |
createDerivedFont()
Deprecated. no longer used in paint/layout with renderer. |
protected LayoutManager |
createLayoutManager()
|
protected MouseListener |
createMouseListener()
|
protected MouseMotionListener |
createMouseMotionListener()
|
protected PropertyChangeListener |
createPropertyChangeListener()
|
protected CalendarRenderingHandler |
createRenderingHandler()
Returns the RenderingHandler to use. |
static ComponentUI |
createUI(JComponent c)
|
protected Calendar |
getCalendar()
Returns the monthViews calendar configured to the firstDisplayedDate. |
protected Calendar |
getCalendar(Date date)
Returns the monthViews calendar configured to the given time. |
Date |
getDayAtLocation(int x,
int y)
Returns the Date at the given location. |
protected Rectangle |
getDayBounds(Date date)
Returns the bounds of the given day. |
protected Rectangle |
getDayBoundsAtLocation(int x,
int y)
Returns the bounds of the day in the grid of days which contains the given location. |
protected Rectangle |
getDayBoundsInMonth(Date month,
int row,
int column)
Returns the bounds of the day box at logical coordinates in the given month. |
protected Point |
getDayGridPosition(Date date)
Returns the given date's position in the grid of the month it is contained in. |
protected Point |
getDayGridPositionAtLocation(int x,
int y)
Returns the logical coordinates of the day which contains the given location. |
protected Date |
getDayInMonth(Date month,
int row,
int column)
Returns the Date defined by the logical grid coordinates relative to the given month. |
protected Dimension |
getDaySize()
Returns the size of a day including the padding. |
String[] |
getDaysOfTheWeek()
Returns an array of String to use as names for the days of the week. |
protected Date |
getFirstDisplayedDay()
|
protected int |
getFirstDisplayedMonth()
|
protected int |
getFirstDisplayedYear()
|
Date |
getLastDisplayedDay()
Returns the last possible date that can be displayed. |
protected Date |
getMonth(int row,
int column)
Returns the Date representing the start of the month at the given logical position in the grid of months. |
protected Date |
getMonthAtLocation(int x,
int y)
Returns the Date representing the start of the month which contains the given location. |
protected Rectangle |
getMonthBounds(Date date)
Returns the bounds of the month containing the given date. |
protected Rectangle |
getMonthBounds(int row,
int column)
Returns the bounds of the month at the given logical coordinates in the grid of visible months. |
protected Rectangle |
getMonthBoundsAtLocation(int x,
int y)
Returns the bounds of the month which contains the given location. |
protected Point |
getMonthGridPosition(Date date)
Returns the logical grid position of the month containing the given date. |
protected Point |
getMonthGridPositionAtLocation(int x,
int y)
Returns the logical coordinates of the month which contains the given location. |
protected Rectangle |
getMonthHeaderBounds(Date date,
boolean includeInsets)
Returns the bounds of the month containing the given date. |
protected Rectangle |
getMonthHeaderBoundsAtLocation(int x,
int y)
Returns the bounds of the month header which contains the given location. |
protected int |
getMonthHeaderHeight()
Returns the height of the month header. |
protected Dimension |
getMonthSize()
Returns the size of a month. |
protected SortedSet<Date> |
getSelection()
|
protected Date |
getToday()
|
protected int |
getTraversableGridPositionAtLocation(int x,
int y)
Mapping pixel to bounds. |
protected int |
getWeeks(Calendar month)
Returns the number of weeks to paint in the current month, as represented by the given calendar. |
protected void |
installComponents()
Creates and configures the calendar header. |
protected void |
installDefaults()
Installs default values. |
protected void |
installDelegate()
Installs this ui delegates properties. |
protected void |
installKeyboardActions()
|
protected void |
installListeners()
|
void |
installUI(JComponent c)
Installs the component as appropriate for the current lf. |
protected boolean |
isToday(Date date)
Returns true if the date passed in is the same as today. |
protected boolean |
isUIInstallable(Object property)
Checks and returns whether the given property should be replaced by the UI's default value. |
boolean |
isUsingKeyboard()
|
protected boolean |
isZoomable()
|
void |
paint(Graphics g,
JComponent c)
Paints the specified component appropriate for the look and feel. |
protected void |
paintBackground(Graphics g)
Paints the background of the component. |
protected void |
paintBackground(Rectangle clip,
Graphics g)
Deprecated. no longer used - it's up to subclasses to implement if they think it's needed. |
protected void |
paintDay(Graphics g,
int left,
int top,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDayForeground(Graphics g,
String numericDay,
int x,
int y,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDayHeader(Graphics g,
Calendar calendar)
Paints the day column header. |
protected void |
paintDayOfMonth(Graphics g,
Rectangle bounds,
Calendar calendar,
CalendarState state)
Paints a day which is of the current month with the given state. |
protected void |
paintDayOfTheWeekBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDays(Graphics g,
Calendar cal)
Paints the days of the given month. |
protected void |
paintDays(Graphics g,
int left,
int top,
int width,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDaysOfTheWeek(Graphics g,
int x,
int y,
int width,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintDaysOfWeekSeparator(Graphics g,
Calendar cal)
Paints the separator between column header (days of week) and days. |
protected void |
paintFlaggedDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintFlaggedDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintLeadingDay(Graphics g,
int left,
int top,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintLeadingDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintLeadingDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintMonth(Graphics g,
Calendar calendar)
Paints the month represented by the given Calendar. |
protected void |
paintMonth(Graphics g,
int left,
int top,
int width,
int height,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintMonthHeader(Graphics g,
Calendar calendar)
Paints the header of a month. |
protected void |
paintMonthHeader(Graphics g,
int x,
int y,
int width,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintMonthStringBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. |
protected void |
paintMonthStringForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintMonthStringForeground(Graphics g,
String monthName,
int monthX,
int monthY,
String yearName,
int yearX,
int yearY,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintTrailingDay(Graphics g,
int left,
int top,
Calendar calendar)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintTrailingDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintTrailingDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintUnselectableDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintUnselectableDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintWeekHeader(Graphics g,
Calendar cal)
Paints the day column header. |
protected void |
paintWeekOfYearBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintWeekOfYearForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Deprecated. no longer used in paint/layout with renderer. |
protected void |
paintWeekOfYearSeparator(Graphics g,
Calendar cal)
Paints the separator between row header (weeks of year) and days. |
protected void |
paintWeeksOfYear(Graphics g,
int x,
int initialY,
int width,
Calendar cal)
Deprecated. |
protected void |
setFirstDisplayedDay(Date firstDisplayedDate)
Sets the firstDisplayedDate property to the given value. |
void |
setUsingKeyboard(boolean val)
|
protected void |
uninstallComponents()
|
protected void |
uninstallDefaults()
|
protected void |
uninstallKeyboardActions()
|
protected void |
uninstallListeners()
|
void |
uninstallUI(JComponent c)
Reverses configuration which was done on the specified component during installUI. |
void |
update(Graphics g,
JComponent c)
Overridden to extract the background painting for ease-of-use of subclasses. |
protected void |
updateComponentInputMap()
Binds/clears the keystrokes in the component input map, based on the monthView's componentInputMap enabled property. |
protected void |
updateLocale()
Deprecated. use updateLocale(boolean) |
protected void |
updateLocale(boolean revalidate)
Updates internal state according to monthView's locale. |
protected void |
updateZoomable()
|
| Methods inherited from class javax.swing.plaf.ComponentUI |
|---|
contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int MONTH_DOWN
public static final int MONTH_UP
@Deprecated protected final SimpleDateFormat dayOfMonthFormatter
@Deprecated protected String[] monthsOfTheYear
protected JXMonthView monthView
@Deprecated protected Font derivedFont
protected boolean isLeftToRight
protected Icon monthUpImage
protected Icon monthDownImage
protected Rectangle calendarGrid
| Constructor Detail |
|---|
public BasicMonthViewUI()
| Method Detail |
|---|
public static ComponentUI createUI(JComponent c)
public void installUI(JComponent c)
installUI in class ComponentUIc - the component where this UI delegate is being installedComponentUI.uninstallUI(javax.swing.JComponent),
JComponent.setUI(javax.swing.plaf.ComponentUI),
JComponent.updateUI()public void uninstallUI(JComponent c)
javax.swing.plaf.ComponentUIinstallUI. This method is invoked when this
UIComponent instance is being removed as the UI delegate
for the specified component. This method should undo the
configuration performed in installUI, being careful to
leave the JComponent instance in a clean state (no
extraneous listeners, look-and-feel-specific property objects, etc.).
This should include the following:
uninstallUI in class ComponentUIc - the component from which this UI delegate is being removed;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.installUI(javax.swing.JComponent),
JComponent.updateUI()protected void installComponents()
protected void uninstallComponents()
protected void installDefaults()
protected void installDelegate()
protected boolean isUIInstallable(Object property)
property - the property to check.
protected void uninstallDefaults()
protected void installKeyboardActions()
protected void uninstallKeyboardActions()
protected void installListeners()
protected void uninstallListeners()
protected CalendarRenderingHandler createRenderingHandler()
protected void updateComponentInputMap()
JXMonthView.isComponentInputMapEnabled()@Deprecated protected void updateLocale()
updateLocale(boolean)
protected void updateLocale(boolean revalidate)
revalidate - a boolean indicating whether the monthView should be
revalidated after the change.public String[] getDaysOfTheWeek()
MonthViewUI
getDaysOfTheWeek in class MonthViewUIprotected PropertyChangeListener createPropertyChangeListener()
protected LayoutManager createLayoutManager()
protected MouseListener createMouseListener()
protected MouseMotionListener createMouseMotionListener()
public boolean isUsingKeyboard()
public void setUsingKeyboard(boolean val)
protected Rectangle getDayBoundsAtLocation(int x,
int y)
Note: this is a pure geometric mapping. The returned rectangle need not necessarily map to a date in the month which contains the location, it can represent a week-number/column header or a leading/trailing date.
x - the x position of the location in pixely - the y position of the location in pixel
protected Point getDayGridPositionAtLocation(int x,
int y)
Note: this is a pure geometric mapping. The returned grid position need not necessarily map to a date in the month which contains the location, it can represent a week-number/column header or a leading/trailing date.
x - the x position of the location in pixely - the y position of the location in pixel
protected Point getDayGridPosition(Date date)
date - the Date to get the logical position for, must not be null.
public Date getDayAtLocation(int x,
int y)
getDayAtLocation in class MonthViewUIx - the x position of the location in pixely - the y position of the location in pixel
protected Rectangle getDayBounds(Date date)
PENDING JW: this most probably should be public as it is the logical reverse of getDayAtLocation
date - the Date to return the bounds for. Must not be null.
protected Rectangle getDayBoundsInMonth(Date month,
int row,
int column)
month - the month containing the day boxrow - the logical row (== week) coordinate in the day gridcolumn - the logical column (== day) coordinate in the day grid
IllegalArgumentException - if row or column are out off range.
protected Date getDayInMonth(Date month,
int row,
int column)
PENDING JW: relax the startOfMonth pre? Why did I require it?
month - a calendar representing the first day of the month, must not
be null.row - the logical row index in the day grid of the monthcolumn - the logical column index in the day grid of the month
IllegalStateException - if the month is not the start of the month.
protected int getTraversableGridPositionAtLocation(int x,
int y)
PENDING JW: define the "action grid". Currently this replaces the old version to remove all internal usage of deprecated methods.
x - the x position of the location in pixely - the y position of the location in pixel
protected Rectangle getMonthHeaderBoundsAtLocation(int x,
int y)
x - the x position of the location in pixely - the y position of the location in pixel
protected Rectangle getMonthBoundsAtLocation(int x,
int y)
Mapping pixel to bounds.
x - the x position of the location in pixely - the y position of the location in pixel
protected Point getMonthGridPositionAtLocation(int x,
int y)
Mapping pixel to logical grid coordinates.
x - the x position of the location in pixely - the y position of the location in pixel
protected Date getMonthAtLocation(int x,
int y)
Mapping pixel to calendar day.
x - the x position of the location in pixely - the y position of the location in pixel
protected Date getMonth(int row,
int column)
Mapping logical grid coordinates to Calendar.
row - the rowIndex in the grid of months.column - the columnIndex in the grid months.
getMonthGridPosition(Date)protected Point getMonthGridPosition(Date date)
date - the Date to return the bounds for. Must not be null.
getMonth(int, int),
getMonthBounds(int, int)
protected Rectangle getMonthBounds(int row,
int column)
Mapping logical grip position to pixel.
row - the rowIndex in the grid of months.column - the columnIndex in the grid months.
getMonthGridPositionAtLocation(int, int),
getMonthBoundsAtLocation(int, int)protected Rectangle getMonthBounds(Date date)
Mapping Date to pixel.
date - the Date to return the bounds for. Must not be null.
getMonthAtLocation(int, int)
protected Rectangle getMonthHeaderBounds(Date date,
boolean includeInsets)
Mapping Date to pixel.
date - the Date to return the bounds for. Must not be null.
getMonthAtLocation(int, int)protected Dimension getMonthSize()
protected Dimension getDaySize()
protected int getMonthHeaderHeight()
protected boolean isZoomable()
public void update(Graphics g,
JComponent c)
update in class ComponentUIg - the Graphics context in which to paintc - the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.paint(java.awt.Graphics, javax.swing.JComponent),
JComponent.paintComponent(java.awt.Graphics)protected void paintBackground(Graphics g)
g - the Graphics to fill.
public void paint(Graphics g,
JComponent c)
ComponentUI.update method when
the specified component is being painted. Subclasses should override
this method and use the specified Graphics object to
render the content of the component.
paint in class ComponentUIg - the Graphics context in which to paintc - the component being painted;
this argument is often ignored,
but might be used if the UI object is stateless
and shared by multiple componentsComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
protected void paintMonth(Graphics g,
Calendar calendar)
g - the graphics to paint intocalendar - the calendar representing the month to paint.
protected void paintMonthHeader(Graphics g,
Calendar calendar)
g - the graphics to paint intocalendar - the calendar representing the the month to paint, must
not be null
protected void paintDayHeader(Graphics g,
Calendar calendar)
g - the graphics to paint intocalendar - the calendar representing the the month to paint, must
not be null
protected void paintWeekHeader(Graphics g,
Calendar cal)
g - the graphics to paint intocalendar - the calendar representing the the month to paint, must
not be null
protected void paintDays(Graphics g,
Calendar cal)
g - the graphics to paint intocalendar - the calendar representing the the month to paint, must
not be null
protected void paintDayOfMonth(Graphics g,
Rectangle bounds,
Calendar calendar,
CalendarState state)
PENDING JW: mis-nomer - this is in fact called for rendering any day-related state (including weekOfYear, dayOfWeek headers) and for rendering the month header as well, that is from everywhere. Rename to paintSomethingGeneral. Think about impact for subclasses (what do they really need? feedback please!)
g - the graphics to paint into.bounds - the rectangle to paint the day intocalendar - the calendar representing the day to paintstate - the calendar state
protected void paintWeekOfYearSeparator(Graphics g,
Calendar cal)
g - the Graphics to paint intocal - the calendar representing the month
protected void paintDaysOfWeekSeparator(Graphics g,
Calendar cal)
g - the Graphics to paint intocal - the calendar representing the monthprotected int getWeeks(Calendar month)
month - the calendar specifying the the first day of the month to
paint, must not be null
protected Calendar getCalendar()
protected Calendar getCalendar(Date date)
date - the date to configure the calendar with
public Date getLastDisplayedDay()
It's up to the UI to keep this property, based on internal state and the firstDisplayed as controlled by the JXMonthView.
getLastDisplayedDay in class MonthViewUIprotected void setFirstDisplayedDay(Date firstDisplayedDate)
Here: updated lastDisplayedDatefirstDisplayedMonth/Year accordingly.
PENDING JW: remove call to repaint() because this method is used both at install and from propertyChange
firstDisplayedDate - the firstDisplayedDate to setprotected Date getFirstDisplayedDay()
protected int getFirstDisplayedMonth()
protected int getFirstDisplayedYear()
protected SortedSet<Date> getSelection()
protected Date getToday()
protected boolean isToday(Date date)
date - long representing the date you want to compare to today.
@Deprecated protected Font createDerivedFont()
protected void updateZoomable()
protected org.jdesktop.swingx.plaf.basic.BasicCalendarHeader createCalendarHeader()
@Deprecated
protected void paintMonth(Graphics g,
int left,
int top,
int width,
int height,
Calendar calendar)
Note: the given calendar must not be changed.
g - Graphics object.left - x location of monthtop - y location of monthwidth - width of monthheight - height of monthcalendar - the calendar specifying the the first day of the month to paint,
must not be null
@Deprecated
protected void paintMonthHeader(Graphics g,
int x,
int y,
int width,
Calendar calendar)
Note: the given calendar must not be changed.
g - Graphics object.x - x location of monthy - y location of monthwidth - width of monthheight - height of monthcalendar - the calendar specifying the the first day of the month to
paint, must not be null
@Deprecated
protected void paintMonthStringBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
g - Graphics object to paint to.x - x-coordinate of upper left corner.y - y-coordinate of upper left corner.width - width of the bounding box.height - height of the bounding box.JXMonthView.setMonthStringBackground(java.awt.Color),
JXMonthView.setMonthStringInsets(java.awt.Insets)
@Deprecated
protected void paintMonthStringForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
g - Graphics object to paint to.x - x-coordinate of upper left corner.y - y-coordinate of upper left corner.width - width of the bounding box.height - height of the bounding box.cal - the calendar specifying the day to use, must not be null
@Deprecated
protected void paintMonthStringForeground(Graphics g,
String monthName,
int monthX,
int monthY,
String yearName,
int yearX,
int yearY,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics to paint into.monthName - Name of the month.monthX - Month string x coordinate.monthY - Month string y coordinate.yearName - Name (number) of the year.yearX - Year string x coordinate.yearY - Year string y coordinate.
@Deprecated
protected void paintWeekOfYearBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
g - x - y - width - height - cal -
@Deprecated
protected void paintDays(Graphics g,
int left,
int top,
int width,
Calendar cal)
Note: the calendar must not be changed.
g - Graphics object.left - the left boundary of the day grid.top - the upper boundary of the day gridwidth - the width of the day grid.cal - the calendar specifying the the first day of the month to paint,
must not be null
@Deprecated
protected void paintDayOfTheWeekBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
g - Graphics object.x - x location of day headery - y location of day headerwidth - width of day headerheight - height day headercalendar - the calendar specifying the the first day of the month to
paint, must not be null
@Deprecated
protected void paintBackground(Rectangle clip,
Graphics g)
clip - g -
@Deprecated
protected void paintDaysOfTheWeek(Graphics g,
int x,
int y,
int width,
Calendar calendar)
g - x - y - width - calendar -
@Deprecated
protected void paintDay(Graphics g,
int left,
int top,
Calendar calendar)
Note: the given calendar must not be changed.
g - the Graphics to paint into.left - the left boundary of the day-box to paint.top - the upper boundary of the day-box to paint.calendar - the calendar specifying the the day to paint, must not be
null
@Deprecated
protected void paintTrailingDay(Graphics g,
int left,
int top,
Calendar calendar)
Note: the given calendar must not be changed.
g - the Graphics to paint into.left - the left boundary of the day-box to paint.top - the upper boundary of the day-box to paint.calendar - the calendar specifying the the day to paint, must not be
null
@Deprecated
protected void paintLeadingDay(Graphics g,
int left,
int top,
Calendar calendar)
Note: the given calendar must not be changed.
g - the Graphics to paint into.left - the left boundary of the day-box to paint.top - the upper boundary of the day-box to paint.calendar - the calendar specifying the the day to paint, must not be
null
@Deprecated
protected void paintWeeksOfYear(Graphics g,
int x,
int initialY,
int width,
Calendar cal)
g - Graphics object.x - x location of monthinitialY - y the upper bound of the "weekNumbers-box"width - width of monthcal - the calendar specifying the the first day of the month to
paint, must not be null
@Deprecated
protected void paintWeekOfYearForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics objectx - x-coordinate of upper left corner.y - y-coordinate of upper left corner.width - width of bounding boxheight - height of bounding box
@Deprecated
protected void paintDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be nullorg.jdesktop.swingx.JXMonthView#isSelectedDate,
isToday(java.util.Date)
@Deprecated
protected void paintDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintDayForeground(Graphics g,
String numericDay,
int x,
int y,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics to paint on.numericDay - Text representation of the day.x - X coordinate of the upper right corner.y - Y coordinate of the upper right corner.
@Deprecated
protected void paintFlaggedDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
paintDayBackground.
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintFlaggedDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintUnselectableDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintUnselectableDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintLeadingDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintLeadingDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintTrailingDayBackground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
@Deprecated
protected void paintTrailingDayForeground(Graphics g,
int x,
int y,
int width,
int height,
Calendar cal)
Note: the given calendar must not be changed.
g - Graphics object to paint tox - x-coordinate of upper left cornery - y-coordinate of upper left cornerwidth - width of bounding box for the dayheight - height of bounding box for the daycal - the calendar specifying the day to paint, must not be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||