|
Java Calendar Component v3.1 www.java-calendar.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
All the drawing operations for the status panel are made by a CalendarStatusPanelRenderer object.
Method Summary | |
int |
getLeftPadding()
Get the left padding. |
int |
getRightPadding()
Get the right padding. |
boolean |
isNoneLabelHovered(java.awt.Graphics g,
CalendarComponent calendarComponent,
CalendarStatusPanelInfo calendarStatusPanelInfo)
Determines if the none label is hovered. |
boolean |
isTodayLabelHovered(java.awt.Graphics g,
CalendarComponent calendarComponent,
CalendarStatusPanelInfo calendarStatusPanelInfo)
Determines if the today label is hovered. |
void |
paint(java.awt.Graphics g,
CalendarComponent calendarComponent,
CalendarStatusPanelInfo calendarStatusPanelInfo)
This method is efectively called to paint the content of the status panel. |
void |
setLeftPadding(int leftPadding)
Set the left padding. |
void |
setRightPadding(int rightPadding)
Set the right padding. |
Method Detail |
public void paint(java.awt.Graphics g, CalendarComponent calendarComponent, CalendarStatusPanelInfo calendarStatusPanelInfo)
g
- The graphics object used for painting.calendarComponent
- The calendarComponent on which it will be performed the painting.calendarStatusPanelInfo
- The calendarStatusPanelInfo containing the informations needed for performing the paint.public boolean isTodayLabelHovered(java.awt.Graphics g, CalendarComponent calendarComponent, CalendarStatusPanelInfo calendarStatusPanelInfo)
g
- The graphics object used.calendarComponent
- The parent calendarComponent.calendarStatusPanelInfo
- The calendarStatusPanelInfo containing the informations needed.public boolean isNoneLabelHovered(java.awt.Graphics g, CalendarComponent calendarComponent, CalendarStatusPanelInfo calendarStatusPanelInfo)
g
- The graphics object used.calendarComponent
- The parent calendarComponent.calendarStatusPanelInfo
- The calendarStatusPanelInfo containing the informations needed.public int getLeftPadding()
public void setLeftPadding(int leftPadding)
leftPadding
- The left padding. This is the distance between the left side of panel and the start of painting the "Today" label.public int getRightPadding()
public void setRightPadding(int rightPadding)
rightPadding
- The right padding. This is the distance between the right side of panel and the end of painting the "None" label.
|
Java Calendar Component v3.1 www.java-calendar.com |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |