Calendar Component v5.1
www.calendarcomponent.com

com.imagine.component.calendar.metrics
Class CalendarMetricsProviderDefault

java.lang.Object
  extended bycom.imagine.component.calendar.metrics.CalendarMetricsProvider
      extended bycom.imagine.component.calendar.metrics.CalendarMetricsProviderDefault

public class CalendarMetricsProviderDefault
extends CalendarMetricsProvider

Define the default metrics provider.


Field Summary
protected  CalendarHeaderCellMetrics calendarHeaderCellMetricsDefault
           
protected  CalendarStatusPanelMetrics calendarStatusPanelMetricsDefault
           
protected  CalendarTableCellMetrics calendarTableCellMetricsDefault
          These variable are declared protected and not private in order to be possible for who wants to define another provider with the same behaviour but with different metrics to just set in constructor another value for one of these and not to be forced to rewrite the provider functions.
protected  CalendarWeekCellMetrics calendarWeekCellMetricsDefault
           
 
Fields inherited from class com.imagine.component.calendar.metrics.CalendarMetricsProvider
calendarComponent
 
Constructor Summary
CalendarMetricsProviderDefault()
           
 
Method Summary
 CalendarHeaderCellMetrics getHeaderCellMetrics(CalendarHeaderCellInfo calendarHeaderCellInfo)
          Get the header cell metrics which will be used to calculate the size of the header cell.
 java.lang.String getName()
          Get the name of the provider.
 CalendarStatusPanelMetrics getStatusPanelMetrics(CalendarStatusPanelInfo calendarStatusPanelInfo)
          Get the status panel metrics which will be used to calculate the size of the status panel.
 CalendarTableCellMetrics getTableCellMetrics(CalendarTableCellInfo calendarTableCellInfo)
          Get the table cell metrics which will be used to calculate the size of the table cell.
 CalendarWeekCellMetrics getWeekCellMetrics(CalendarWeekCellInfo calendarWeekCellInfo)
          Get the week cell metrics which will be used to calculate the size of the week cell.
 
Methods inherited from class com.imagine.component.calendar.metrics.CalendarMetricsProvider
getCalendarComponent, setCalendarComponent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

calendarTableCellMetricsDefault

protected CalendarTableCellMetrics calendarTableCellMetricsDefault
These variable are declared protected and not private in order to be possible for who wants to define another provider with the same behaviour but with different metrics to just set in constructor another value for one of these and not to be forced to rewrite the provider functions.


calendarHeaderCellMetricsDefault

protected CalendarHeaderCellMetrics calendarHeaderCellMetricsDefault

calendarWeekCellMetricsDefault

protected CalendarWeekCellMetrics calendarWeekCellMetricsDefault

calendarStatusPanelMetricsDefault

protected CalendarStatusPanelMetrics calendarStatusPanelMetricsDefault
Constructor Detail

CalendarMetricsProviderDefault

public CalendarMetricsProviderDefault()
Method Detail

getTableCellMetrics

public CalendarTableCellMetrics getTableCellMetrics(CalendarTableCellInfo calendarTableCellInfo)
Description copied from class: CalendarMetricsProvider
Get the table cell metrics which will be used to calculate the size of the table cell.

Specified by:
getTableCellMetrics in class CalendarMetricsProvider
Parameters:
calendarTableCellInfo - The calendar table cell info which contains informations about the current table cell.
Returns:
The cell metrics which will be used to calculate the size of the table cell.

getWeekCellMetrics

public CalendarWeekCellMetrics getWeekCellMetrics(CalendarWeekCellInfo calendarWeekCellInfo)
Description copied from class: CalendarMetricsProvider
Get the week cell metrics which will be used to calculate the size of the week cell.

Specified by:
getWeekCellMetrics in class CalendarMetricsProvider
Parameters:
calendarWeekCellInfo - The calendar week cell info which contains informations about the current week cell.
Returns:
The cell metrics which will be used to calculate the size of the week cell.

getHeaderCellMetrics

public CalendarHeaderCellMetrics getHeaderCellMetrics(CalendarHeaderCellInfo calendarHeaderCellInfo)
Description copied from class: CalendarMetricsProvider
Get the header cell metrics which will be used to calculate the size of the header cell.

Specified by:
getHeaderCellMetrics in class CalendarMetricsProvider
Parameters:
calendarHeaderCellInfo - The calendar header cell info which contains informations about the current header cell.
Returns:
The cell metrics which will be used to calculate the size of the header cell.

getStatusPanelMetrics

public CalendarStatusPanelMetrics getStatusPanelMetrics(CalendarStatusPanelInfo calendarStatusPanelInfo)
Description copied from class: CalendarMetricsProvider
Get the status panel metrics which will be used to calculate the size of the status panel.

Specified by:
getStatusPanelMetrics in class CalendarMetricsProvider
Parameters:
calendarStatusPanelInfo - The calendar status panel info which contains informations about the status panel.
Returns:
The metrics which will be used to calculate the size of the status panel.

getName

public java.lang.String getName()
Description copied from class: CalendarMetricsProvider
Get the name of the provider.

Specified by:
getName in class CalendarMetricsProvider
Returns:
The name of the provider.

Calendar Component v5.1
www.calendarcomponent.com