Java Calendar Component v3.1
www.java-calendar.com

com.imagine.component.calendar.renderers.statuspanelrenderers
Interface CalendarStatusPanelRenderer

All Known Implementing Classes:
CalendarStatusPanelRendererDefault

public interface CalendarStatusPanelRenderer

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

paint

public void paint(java.awt.Graphics g,
                  CalendarComponent calendarComponent,
                  CalendarStatusPanelInfo calendarStatusPanelInfo)
This method is efectively called to paint the content of the status panel.

Parameters:
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.

isTodayLabelHovered

public boolean isTodayLabelHovered(java.awt.Graphics g,
                                   CalendarComponent calendarComponent,
                                   CalendarStatusPanelInfo calendarStatusPanelInfo)
Determines if the today label is hovered.

Parameters:
g - The graphics object used.
calendarComponent - The parent calendarComponent.
calendarStatusPanelInfo - The calendarStatusPanelInfo containing the informations needed.

isNoneLabelHovered

public boolean isNoneLabelHovered(java.awt.Graphics g,
                                  CalendarComponent calendarComponent,
                                  CalendarStatusPanelInfo calendarStatusPanelInfo)
Determines if the none label is hovered.

Parameters:
g - The graphics object used.
calendarComponent - The parent calendarComponent.
calendarStatusPanelInfo - The calendarStatusPanelInfo containing the informations needed.

getLeftPadding

public int getLeftPadding()
Get the left padding. This is the distance between the left side of panel and the start of painting the "Today" label.

Returns:
Returns the left padding. This is the distance between the left side of panel and the start of painting the "Today" label.

setLeftPadding

public void setLeftPadding(int leftPadding)
Set the left padding. This is the distance between the left side of panel and the start of painting the "Today" label.

Parameters:
leftPadding - The left padding. This is the distance between the left side of panel and the start of painting the "Today" label.

getRightPadding

public int getRightPadding()
Get the right padding. This is the distance between the right side of panel and the end of painting the "None" label.

Returns:
Returns the right padding. This is the distance between the right side of panel and the end of painting the "None" label.

setRightPadding

public void setRightPadding(int rightPadding)
Set the right padding. This is the distance between the right side of panel and the end of painting the "None" label.

Parameters:
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