Packagecom.keepcore.calendar.view.transitions
Classpublic class TransitionManager
InheritanceTransitionManager Inheritance Object

The TransitionManager class handles animations inside the calendar component when current date or display mode changes.



Public Properties
 PropertyDefined By
  isInitialized : Boolean
[read-only] Indicates the sense of the transition.
TransitionManager
  TRANSITION_DAY_TO_MONTH : int = 9
[static]
TransitionManager
  TRANSITION_DAY_TO_WEEK : int = 8
[static]
TransitionManager
  TRANSITION_DAY_TO_YEAR : int = 10
[static]
TransitionManager
  transitionInFuture : Boolean
Indicates the sense of the transition.
TransitionManager
  transitionInProgress : Boolean
Indicates if a transition is in progress.
TransitionManager
  TRANSITION_MONTH_TO_DAY : int = 14
[static]
TransitionManager
  TRANSITION_MONTH_TO_WEEK : int = 15
[static]
TransitionManager
  TRANSITION_MONTH_TO_YEAR : int = 16
[static]
TransitionManager
  TRANSITION_NEXT_DAY : int = 0
[static]
TransitionManager
  TRANSITION_NEXT_MONTH : int = 4
[static]
TransitionManager
  TRANSITION_NEXT_WEEK : int = 2
[static]
TransitionManager
  TRANSITION_NEXT_YEAR : int = 6
[static]
TransitionManager
  TRANSITION_PREVIOUS_DAY : int = 1
[static]
TransitionManager
  TRANSITION_PREVIOUS_MONTH : int = 5
[static]
TransitionManager
  TRANSITION_PREVIOUS_WEEK : int = 3
[static]
TransitionManager
  TRANSITION_PREVIOUS_YEAR : int = 7
[static]
TransitionManager
  transitionType : int
Transition type.
TransitionManager
  TRANSITION_UNKNOWN : int = -1
[static]
TransitionManager
  TRANSITION_WEEK_TO_DAY : int = 11
[static]
TransitionManager
  TRANSITION_WEEK_TO_MONTH : int = 12
[static]
TransitionManager
  TRANSITION_WEEK_TO_YEAR : int = 13
[static]
TransitionManager
  TRANSITION_YEAR_TO_DAY : int = 17
[static]
TransitionManager
  TRANSITION_YEAR_TO_MONTH : int = 19
[static]
TransitionManager
  TRANSITION_YEAR_TO_WEEK : int = 18
[static]
TransitionManager
Public Methods
 MethodDefined By
  
TransitionManager
  
captureCurrentView(image:Image, setSizeAndPosition:Boolean = true):void
Capture the current view in an image.
TransitionManager
  
initializePreviousNextTransition(inFuture:Boolean):void
Initialize a previous/next transition.
TransitionManager
  
Initialize the transition manager .
TransitionManager
  
Manages the display mode transitions.
TransitionManager
  
prepareDisplayModeTransition(previousDisplayMode:Number):void
Prepare the transition from a display mode to another one.
TransitionManager
  
Called upon the new view update.
TransitionManager
Property Detail
isInitializedproperty
isInitialized:Boolean  [read-only]

Indicates the sense of the transition. If true, transition is from the current date to a future date.


Implementation
    public function get isInitialized():Boolean
TRANSITION_DAY_TO_MONTHproperty 
public static var TRANSITION_DAY_TO_MONTH:int = 9

TRANSITION_DAY_TO_WEEKproperty 
public static var TRANSITION_DAY_TO_WEEK:int = 8

TRANSITION_DAY_TO_YEARproperty 
public static var TRANSITION_DAY_TO_YEAR:int = 10

TRANSITION_MONTH_TO_DAYproperty 
public static var TRANSITION_MONTH_TO_DAY:int = 14

TRANSITION_MONTH_TO_WEEKproperty 
public static var TRANSITION_MONTH_TO_WEEK:int = 15

TRANSITION_MONTH_TO_YEARproperty 
public static var TRANSITION_MONTH_TO_YEAR:int = 16

TRANSITION_NEXT_DAYproperty 
public static var TRANSITION_NEXT_DAY:int = 0

TRANSITION_NEXT_MONTHproperty 
public static var TRANSITION_NEXT_MONTH:int = 4

TRANSITION_NEXT_WEEKproperty 
public static var TRANSITION_NEXT_WEEK:int = 2

TRANSITION_NEXT_YEARproperty 
public static var TRANSITION_NEXT_YEAR:int = 6

TRANSITION_PREVIOUS_DAYproperty 
public static var TRANSITION_PREVIOUS_DAY:int = 1

TRANSITION_PREVIOUS_MONTHproperty 
public static var TRANSITION_PREVIOUS_MONTH:int = 5

TRANSITION_PREVIOUS_WEEKproperty 
public static var TRANSITION_PREVIOUS_WEEK:int = 3

TRANSITION_PREVIOUS_YEARproperty 
public static var TRANSITION_PREVIOUS_YEAR:int = 7

TRANSITION_UNKNOWNproperty 
public static var TRANSITION_UNKNOWN:int = -1

TRANSITION_WEEK_TO_DAYproperty 
public static var TRANSITION_WEEK_TO_DAY:int = 11

TRANSITION_WEEK_TO_MONTHproperty 
public static var TRANSITION_WEEK_TO_MONTH:int = 12

TRANSITION_WEEK_TO_YEARproperty 
public static var TRANSITION_WEEK_TO_YEAR:int = 13

TRANSITION_YEAR_TO_DAYproperty 
public static var TRANSITION_YEAR_TO_DAY:int = 17

TRANSITION_YEAR_TO_MONTHproperty 
public static var TRANSITION_YEAR_TO_MONTH:int = 19

TRANSITION_YEAR_TO_WEEKproperty 
public static var TRANSITION_YEAR_TO_WEEK:int = 18

transitionInFutureproperty 
transitionInFuture:Boolean

Indicates the sense of the transition. If true, transition is from the current date to a future date.


Implementation
    public function get transitionInFuture():Boolean
    public function set transitionInFuture(value:Boolean):void
transitionInProgressproperty 
transitionInProgress:Boolean

Indicates if a transition is in progress.


Implementation
    public function get transitionInProgress():Boolean
    public function set transitionInProgress(value:Boolean):void
transitionTypeproperty 
transitionType:int

Transition type.


Implementation
    public function get transitionType():int
    public function set transitionType(value:int):void
Constructor Detail
TransitionManager()Constructor
public function TransitionManager(calendar:KCCalendar)



Parameters
calendar:KCCalendar
Method Detail
captureCurrentView()method
public function captureCurrentView(image:Image, setSizeAndPosition:Boolean = true):void

Capture the current view in an image.

Parameters

image:Image — image where the view capture will be done.
 
setSizeAndPosition:Boolean (default = true) — if true, size the image to the view size.

initializePreviousNextTransition()method 
public function initializePreviousNextTransition(inFuture:Boolean):void

Initialize a previous/next transition.

Parameters

inFuture:Boolean — Indicates the transition sense: if the transition is from the current date to a future date.

initTransitionManager()method 
public function initTransitionManager():void

Initialize the transition manager .

manageDisplayModeTransition()method 
public function manageDisplayModeTransition():void

Manages the display mode transitions.

prepareDisplayModeTransition()method 
public function prepareDisplayModeTransition(previousDisplayMode:Number):void

Prepare the transition from a display mode to another one.

Parameters

previousDisplayMode:Number — Previous display mode.

viewUpdateComplete()method 
public function viewUpdateComplete(view:GenericView):void

Called upon the new view update. Triggers the transition.

Parameters

view:GenericView — Updated view.