Packagecom.flexcalendar.components.calendar.displayClasses.renderers.defaults
Classpublic class DefaultCalendarDayViewItemRenderer
InheritanceDefaultCalendarDayViewItemRenderer Inheritance BaseCalendarItemRenderer Inheritance mx.core.UIComponent
Subclasses ModernCalendarDayViewItemRenderer

Default item renderer for FlexCalendar, displaying items in day and multiday view.



Public Properties
 PropertyDefined By
 InheriteditemDetails : ItemDetails
Calendar item associated with this renderer.
BaseCalendarItemRenderer
Protected Properties
 PropertyDefined By
 Inherited_backgroundAlpha : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_backgroundColor : uint
Holds read style value
BaseCalendarItemRenderer
  _backgroundImage : Class
Holds read style value
DefaultCalendarDayViewItemRenderer
  _backgroundType : String
Holds read style value
DefaultCalendarDayViewItemRenderer
 Inherited_borderAlpha : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_borderColor : uint
Holds read style value
BaseCalendarItemRenderer
 Inherited_borderThickness : Number
Holds read style value
BaseCalendarItemRenderer
 Inherited_calendarContext : ICalendarContext
Calendar context injected by factory
BaseCalendarItemRenderer
 Inherited_cornerRadius : Number
Holds read style value
BaseCalendarItemRenderer
  durationLabel : Label
Duration label - displays start and end hours
DefaultCalendarDayViewItemRenderer
  _durationLabelFormat : String = JJ:NN
Holds read style value
DefaultCalendarDayViewItemRenderer
  durationLabelForShortEvents : Label
Duration label for short events - displays only start hour
DefaultCalendarDayViewItemRenderer
  _gradientAngle : Number
Holds read style value
DefaultCalendarDayViewItemRenderer
  _gradientColor1 : uint
Holds read style value
DefaultCalendarDayViewItemRenderer
  _gradientColor2 : uint
Holds read style value
DefaultCalendarDayViewItemRenderer
  _headerBackgroundAlpha : Number
Holds read style value
DefaultCalendarDayViewItemRenderer
  _headerBackgroundColor : uint
Holds read style value
DefaultCalendarDayViewItemRenderer
  headerComponent : UIComponent
DefaultCalendarDayViewItemRenderer
  _headerHeight : Number
Holds read style value
DefaultCalendarDayViewItemRenderer
  headerMask : Sprite
DefaultCalendarDayViewItemRenderer
 Inherited_itemDetails : ItemDetails
Internal calendar item object, accessed by getter/setter
BaseCalendarItemRenderer
  mainSpaceComponent : UIComponent
DefaultCalendarDayViewItemRenderer
  mainSpaceMask : Sprite
DefaultCalendarDayViewItemRenderer
 Inherited_margin : Number
Margin of element.
BaseCalendarItemRenderer
  recurImage : Image
Image indicating recurrence of rendered item
DefaultCalendarDayViewItemRenderer
 Inherited_rendererAlpha : Number
Holds read style value
BaseCalendarItemRenderer
  _repeatImage : Class
Holds read style value
DefaultCalendarDayViewItemRenderer
  _resizeIndicatorAlpha : Number
Holds read style value
DefaultCalendarDayViewItemRenderer
  _resizeIndicatorColor : uint
Holds read style value
DefaultCalendarDayViewItemRenderer
 InheritedsummaryLabel : Text
Summary label
BaseCalendarItemRenderer
 Inherited_textColor : Number
Holds read style value
BaseCalendarItemRenderer
Public Methods
 MethodDefined By
  
Creates new instance of DefaultCalendarDayViewItemRenderer.
DefaultCalendarDayViewItemRenderer
  
getPositionFunction(x:Number, y:Number):int
[override] Implementation of CalendarItemRenderer interface.
DefaultCalendarDayViewItemRenderer
 Inherited
BaseCalendarItemRenderer
Protected Methods
 MethodDefined By
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
 Inherited
Create summary label
BaseCalendarItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
drawHeader():void
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
mouseRollOutHandler(event:MouseEvent):void
DefaultCalendarDayViewItemRenderer
  
mouseRollOverHandler(event:MouseEvent):void
DefaultCalendarDayViewItemRenderer
 Inherited
BaseCalendarItemRenderer
  
[override] Read component style values
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
  
DefaultCalendarDayViewItemRenderer
Styles
 Style Description Defined By
 InheritedType: Number CSS Inheritance: no
Background alpha.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Background color.
BaseCalendarItemRenderer
  
backgroundImage
Type: Class CSS Inheritance: no
Image for background (is backgroundType is set as image) The default value is null.
DefaultCalendarDayViewItemRenderer
  
backgroundType
Type: String CSS Inheritance: no
Type of background (solid or gradient) The default value is solid.
DefaultCalendarDayViewItemRenderer
 InheritedType: Number CSS Inheritance: no
Border alpha.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Border color.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Border thickness.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: yes
Color of text in the component, including the component label.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Corner radius.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: yes
Color of text in the component if it is disabled.
BaseCalendarItemRenderer
  
durationLabelFormat
Type: String CSS Inheritance: no
Formatting style for range label. The default value is "JJ:NN".
DefaultCalendarDayViewItemRenderer
 InheritedType: String CSS Inheritance: yes
Sets the antiAliasType property of internal TextFields.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Name of the font to use.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Sets the gridFitType property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
Sets the sharpness property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: yes
Height of the text, in pixels.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is italic font.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
Sets the thickness property of internal TextFields that represent text in Flex controls.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is boldface.
BaseCalendarItemRenderer
  
gradientAngle
Type: Number CSS Inheritance: no
Angle of background gradient. The default value is 220.
DefaultCalendarDayViewItemRenderer
  
gradientColor1
Type: uint Format: Color CSS Inheritance: no
First gradient color The default value is 0xCCFFCC.
DefaultCalendarDayViewItemRenderer
  
gradientColor2
Type: uint Format: Color CSS Inheritance: no
Second gradient color The default value is 0xFFFFCC.
DefaultCalendarDayViewItemRenderer
  
headerBackgroundAlpha
Type: Number CSS Inheritance: no
Header background alpha. The default value is 1.
DefaultCalendarDayViewItemRenderer
  
headerBackgroundColor
Type: uint Format: Color CSS Inheritance: no
Header background color. This value might be overridden by setting property in CalendarItem class The default value is 0x060D5E.
DefaultCalendarDayViewItemRenderer
  
headerHeight
Type: Number Format: Length CSS Inheritance: no
Header height The default value is 15.
DefaultCalendarDayViewItemRenderer
 InheritedType: Boolean CSS Inheritance: yes
A Boolean value that indicates whether kerning is enabled (true) or disabled (false).
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: yes
The number of additional pixels to appear between each character.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: no
Margin of renderer.
BaseCalendarItemRenderer
 InheritedType: Number CSS Inheritance: no
Entire renderer alpha value.
BaseCalendarItemRenderer
  
repeatImage
Type: Class CSS Inheritance: no
Repeat image, displayed for repeating items. The default value is com/flexcalendar/components/calendar/assets/repeat.png.
DefaultCalendarDayViewItemRenderer
  
resizeIndicatorAlpha
Type: Number CSS Inheritance: no
Resize indicator alpha. The default value is 1.
DefaultCalendarDayViewItemRenderer
  
resizeIndicatorColor
Type: uint Format: Color CSS Inheritance: no
Resize indicator color. The default value is 0xFFFFFF.
DefaultCalendarDayViewItemRenderer
 InheritedType: String CSS Inheritance: yes
Alignment of text within a container.
BaseCalendarItemRenderer
 InheritedType: uint Format: Color CSS Inheritance: no
Background color.
BaseCalendarItemRenderer
 InheritedType: String CSS Inheritance: yes
Determines whether the text is underlined.
BaseCalendarItemRenderer
 InheritedType: Number Format: Length CSS Inheritance: yes
Offset of first line of text from the left side of the container, in pixels.
BaseCalendarItemRenderer
Property Detail
_backgroundImageproperty
protected var _backgroundImage:Class

Holds read style value

_backgroundTypeproperty 
protected var _backgroundType:String

Holds read style value

_durationLabelFormatproperty 
protected var _durationLabelFormat:String = JJ:NN

Holds read style value

_gradientAngleproperty 
protected var _gradientAngle:Number

Holds read style value

_gradientColor1property 
protected var _gradientColor1:uint

Holds read style value

_gradientColor2property 
protected var _gradientColor2:uint

Holds read style value

_headerBackgroundAlphaproperty 
protected var _headerBackgroundAlpha:Number

Holds read style value

_headerBackgroundColorproperty 
protected var _headerBackgroundColor:uint

Holds read style value

_headerHeightproperty 
protected var _headerHeight:Number

Holds read style value

_repeatImageproperty 
protected var _repeatImage:Class

Holds read style value

_resizeIndicatorAlphaproperty 
protected var _resizeIndicatorAlpha:Number

Holds read style value

_resizeIndicatorColorproperty 
protected var _resizeIndicatorColor:uint

Holds read style value

durationLabelproperty 
protected var durationLabel:Label

Duration label - displays start and end hours

durationLabelForShortEventsproperty 
protected var durationLabelForShortEvents:Label

Duration label for short events - displays only start hour

headerComponentproperty 
protected var headerComponent:UIComponent

headerMaskproperty 
protected var headerMask:Sprite

mainSpaceComponentproperty 
protected var mainSpaceComponent:UIComponent

mainSpaceMaskproperty 
protected var mainSpaceMask:Sprite

recurImageproperty 
protected var recurImage:Image

Image indicating recurrence of rendered item

Constructor Detail
DefaultCalendarDayViewItemRenderer()Constructor
public function DefaultCalendarDayViewItemRenderer()

Creates new instance of DefaultCalendarDayViewItemRenderer. Should be called by ClassFactory object.

Method Detail
addComponents()method
protected function addComponents():void

addDurationLabel()method 
protected function addDurationLabel():void

addDurationLabelForShortEvent()method 
protected function addDurationLabelForShortEvent():void

addRecurImage()method 
protected function addRecurImage():void

drawBackground()method 
protected function drawBackground():void

drawComponentSpaceBackground()method 
protected function drawComponentSpaceBackground():void

drawHeader()method 
protected function drawHeader():void

drawResizeIndicator()method 
protected function drawResizeIndicator():void

getPositionFunction()method 
override public function getPositionFunction(x:Number, y:Number):int

Implementation of CalendarItemRenderer interface.

Parameters

x:Number — x position in component coordinates
 
y:Number — y position in component coordinates

Returns
int — value declared in CalendarRendererPositionFunction class

See also

mouseRollOutHandler()method 
protected function mouseRollOutHandler(event:MouseEvent):void

Parameters

event:MouseEvent

mouseRollOverHandler()method 
protected function mouseRollOverHandler(event:MouseEvent):void

Parameters

event:MouseEvent

readStyleValues()method 
override protected function readStyleValues():void

Read component style values

setDurationLabelSizeAndPosition()method 
protected function setDurationLabelSizeAndPosition():void

setDurationLabelSizeAndPositionForShortEvent()method 
protected function setDurationLabelSizeAndPositionForShortEvent():void

setRecurImageSizeAndPosition()method 
protected function setRecurImageSizeAndPosition():void

setRecurImageSizeAndPositionForShortEvent()method 
protected function setRecurImageSizeAndPositionForShortEvent():void

setSummaryLabelSizeAndPosition()method 
protected function setSummaryLabelSizeAndPosition():void

setSummaryLabelSizeAndPositionForShortEvent()method 
protected function setSummaryLabelSizeAndPositionForShortEvent():void