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

com.imagine.component.calendar.renderers.statuspanelrenderers
Class CalendarStatusPanelRendererDefault

java.lang.Object
  extended bycom.imagine.component.calendar.renderers.statuspanelrenderers.CalendarStatusPanelRendererDefault
All Implemented Interfaces:
CalendarStatusPanelRenderer

public class CalendarStatusPanelRendererDefault
extends java.lang.Object
implements CalendarStatusPanelRenderer

Defines the default status panel renderer.


Constructor Summary
CalendarStatusPanelRendererDefault()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarStatusPanelRendererDefault

public CalendarStatusPanelRendererDefault()
Method Detail

paint

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

Specified by:
paint in interface CalendarStatusPanelRenderer
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)
Description copied from interface: CalendarStatusPanelRenderer
Determines if the today label is hovered.

Specified by:
isTodayLabelHovered in interface CalendarStatusPanelRenderer
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)
Description copied from interface: CalendarStatusPanelRenderer
Determines if the none label is hovered.

Specified by:
isNoneLabelHovered in interface CalendarStatusPanelRenderer
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.

Specified by:
getLeftPadding in interface CalendarStatusPanelRenderer
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.

Specified by:
setLeftPadding in interface CalendarStatusPanelRenderer
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.

Specified by:
getRightPadding in interface CalendarStatusPanelRenderer
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.

Specified by:
setRightPadding in interface CalendarStatusPanelRenderer
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