| Package | com.keepcore.calendar.view |
| Class | public class CalendarPartDisplayer |
| Inheritance | CalendarPartDisplayer mx.core.UIComponent |
| Subclasses | CalendarDayDisplayer, CalendarMonthDisplayer |
| Property | Defined By | ||
|---|---|---|---|
| calendarPart : CalendarPart
Calendar part reference. | CalendarPartDisplayer | ||
| drawToolTip : Boolean
Indicates if the part handles the tool tip drawing. | CalendarPartDisplayer | ||
| fullDayToolTip : Boolean
Indicates if the displayed tooltip is always full day (used by day headers as example). | CalendarPartDisplayer | ||
| mouseOverDate : Date
Indicates the current mouse over date. | CalendarPartDisplayer | ||
| mouseOverDateColumn : int
Indicates the current mouse over date column (if column mode is enabled). | CalendarPartDisplayer | ||
| Method | Defined By | ||
|---|---|---|---|
CalendarPartDisplayer(calendarPart:CalendarPart)
Contructor. | CalendarPartDisplayer | ||
getColumnWidth():Number
In column mode, return the column width (takes in account the item margins). | CalendarPartDisplayer | ||
localToColumn():int
If column mode is enabled, return the column index according to mouse X position. | CalendarPartDisplayer | ||
localToDateTime(coordX:Number = -1, coordY:Number = -1, onlyCurrentDayTime:Boolean = false, eventTimeStepMultiple:Boolean = true):Date
return the date specified by mouse position in the current cell
this function is used to determine the new date range of an item
function overrided in children
| CalendarPartDisplayer | ||
refreshMouseTooltip(event:MouseEvent):void
Create or update the cell mouse tooltip. | CalendarPartDisplayer | ||
| Method | Defined By | ||
|---|---|---|---|
createMouseToolTip(date:Date, x:Number, y:Number):void | CalendarPartDisplayer | ||
destroyMouseToolTip():void | CalendarPartDisplayer | ||
drawHighlight(unscaledWidth:Number, columnWidth:Number, stepStartY:Number, stepHeight:Number, highlightAlpha:Number, rangeSelection:Boolean, noBorder:Boolean = false):void | CalendarPartDisplayer | ||
drawRanges(ranges:ArrayCollection, aX:Number, aWidth:Number, bkgColor:uint, alpha:Number):void
Draw ranges. | CalendarPartDisplayer | ||
getRangesRect(ranges:ArrayCollection, aX:Number, aWidth:Number):Array
Return array of Rectangle objects that defines the ranges coordinates. | CalendarPartDisplayer | ||
updateMouseToolTip(date:Date, x:Number, y:Number):void | CalendarPartDisplayer | ||
| calendarPart | property |
calendarPart:CalendarPartCalendar part reference.
public function get calendarPart():CalendarPart public function set calendarPart(value:CalendarPart):void| drawToolTip | property |
drawToolTip:BooleanIndicates if the part handles the tool tip drawing.
The default value is true.
public function get drawToolTip():Boolean public function set drawToolTip(value:Boolean):void| fullDayToolTip | property |
fullDayToolTip:BooleanIndicates if the displayed tooltip is always full day (used by day headers as example).
The default value is false.
public function get fullDayToolTip():Boolean public function set fullDayToolTip(value:Boolean):void| mouseOverDate | property |
mouseOverDate:DateIndicates the current mouse over date. Is null if there is no mouse over on this cell.
public function get mouseOverDate():Date public function set mouseOverDate(value:Date):void| mouseOverDateColumn | property |
mouseOverDateColumn:intIndicates the current mouse over date column (if column mode is enabled).
public function get mouseOverDateColumn():int public function set mouseOverDateColumn(value:int):void| CalendarPartDisplayer | () | Constructor |
public function CalendarPartDisplayer(calendarPart:CalendarPart)Contructor.
ParameterscalendarPart:CalendarPart |
| createMouseToolTip | () | method |
protected function createMouseToolTip(date:Date, x:Number, y:Number):voidParameters
date:Date | |
x:Number | |
y:Number |
| destroyMouseToolTip | () | method |
protected function destroyMouseToolTip():void| drawHighlight | () | method |
protected function drawHighlight(unscaledWidth:Number, columnWidth:Number, stepStartY:Number, stepHeight:Number, highlightAlpha:Number, rangeSelection:Boolean, noBorder:Boolean = false):voidParameters
unscaledWidth:Number | |
columnWidth:Number | |
stepStartY:Number | |
stepHeight:Number | |
highlightAlpha:Number | |
rangeSelection:Boolean | |
noBorder:Boolean (default = false) |
| drawRanges | () | method |
protected function drawRanges(ranges:ArrayCollection, aX:Number, aWidth:Number, bkgColor:uint, alpha:Number):voidDraw ranges.
Parameters
ranges:ArrayCollection — array of ranges (DateRange objects) to draw
| |
aX:Number — x offset
| |
aWidth:Number — width to draw
| |
bkgColor:uint — background color to use
| |
alpha:Number — alpha level to use
|
| getColumnWidth | () | method |
public function getColumnWidth():NumberIn column mode, return the column width (takes in account the item margins).
ReturnsNumber — column width
|
| getRangesRect | () | method |
protected function getRangesRect(ranges:ArrayCollection, aX:Number, aWidth:Number):ArrayReturn array of Rectangle objects that defines the ranges coordinates.
Parameters
ranges:ArrayCollection — array of ranges (DateRange objects)
| |
aX:Number — x offset
| |
aWidth:Number — width
|
Array |
| localToColumn | () | method |
public function localToColumn():intIf column mode is enabled, return the column index according to mouse X position.
Returnsint — column index or -1 if column mode is disabled or if view mode is not day or week.
|
| localToDateTime | () | method |
public function localToDateTime(coordX:Number = -1, coordY:Number = -1, onlyCurrentDayTime:Boolean = false, eventTimeStepMultiple:Boolean = true):Datereturn the date specified by mouse position in the current cell this function is used to determine the new date range of an item function overrided in children
Parameters
coordX:Number (default = -1) | |
coordY:Number (default = -1) | |
onlyCurrentDayTime:Boolean (default = false) | |
eventTimeStepMultiple:Boolean (default = true) |
Date |
| refreshMouseTooltip | () | method |
public function refreshMouseTooltip(event:MouseEvent):voidCreate or update the cell mouse tooltip.
Parameters
event:MouseEvent — mouse event used to set the tooltip position
|
| updateMouseToolTip | () | method |
protected function updateMouseToolTip(date:Date, x:Number, y:Number):voidParameters
date:Date | |
x:Number | |
y:Number |