Packagecom.flexicious.print.printareas
Classpublic class PageSize
InheritancePageSize Inheritance Object
Implements flash.events.IEventDispatcher

Stores information about the common paper formats



Public Properties
 PropertyDefined By
  height : int
Height of the paper size
PageSize
  isLandscape : Boolean
Potrait or landscape
PageSize
  name : String
Name of the paper size
PageSize
  PAGE_LAYOUT_LANDSCAPE : String
[static] Page orientation Landscape
PageSize
  PAGE_LAYOUT_POTRAIT : String
[static] Page orientation Potrait
PageSize
  PAGE_SIZE_A3 : PageSize
[static] Page Size A3
PageSize
  PAGE_SIZE_A4 : PageSize
[static] Page Size A4
PageSize
  PAGE_SIZE_A5 : PageSize
[static] Page Size A5
PageSize
  PAGE_SIZE_LEGAL : PageSize
[static] Page Size Legal
PageSize
  PAGE_SIZE_LETTER : PageSize
[static] Page Size Letter
PageSize
  staticEventDispatcher : IEventDispatcher
[static] [read-only]
PageSize
  width : int
Width of the paper size
PageSize
Public Methods
 MethodDefined By
  
PageSize(name:String, width:int, height:int)
Constructor
PageSize
  
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void
PageSize
  
Clones the paper size
PageSize
  
dispatchEvent(event:Event):Boolean
PageSize
  
getByName(name:String):PageSize
[static] Gets the paper size by name
PageSize
  
getBySize(width:int, height:int):PageSize
[static] Gets the paper size given the width and the height
PageSize
  
hasEventListener(type:String):Boolean
PageSize
  
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
PageSize
  
Flips the orientation from potrait to landscape and back
PageSize
  
willTrigger(type:String):Boolean
PageSize
Property Detail
heightproperty
height:int

Height of the paper size


Implementation
    public function get height():int
    public function set height(value:int):void
isLandscapeproperty 
isLandscape:Boolean

Potrait or landscape


Implementation
    public function get isLandscape():Boolean
    public function set isLandscape(value:Boolean):void
nameproperty 
name:String

Name of the paper size


Implementation
    public function get name():String
    public function set name(value:String):void
PAGE_LAYOUT_LANDSCAPEproperty 
PAGE_LAYOUT_LANDSCAPE:String

Page orientation Landscape

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_LAYOUT_LANDSCAPE():String
    public static function set PAGE_LAYOUT_LANDSCAPE(value:String):void
PAGE_LAYOUT_POTRAITproperty 
PAGE_LAYOUT_POTRAIT:String

Page orientation Potrait

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_LAYOUT_POTRAIT():String
    public static function set PAGE_LAYOUT_POTRAIT(value:String):void
PAGE_SIZE_A3property 
PAGE_SIZE_A3:PageSize

Page Size A3

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_SIZE_A3():PageSize
    public static function set PAGE_SIZE_A3(value:PageSize):void
PAGE_SIZE_A4property 
PAGE_SIZE_A4:PageSize

Page Size A4

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_SIZE_A4():PageSize
    public static function set PAGE_SIZE_A4(value:PageSize):void
PAGE_SIZE_A5property 
PAGE_SIZE_A5:PageSize

Page Size A5

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_SIZE_A5():PageSize
    public static function set PAGE_SIZE_A5(value:PageSize):void
PAGE_SIZE_LEGALproperty 
PAGE_SIZE_LEGAL:PageSize

Page Size Legal

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_SIZE_LEGAL():PageSize
    public static function set PAGE_SIZE_LEGAL(value:PageSize):void
PAGE_SIZE_LETTERproperty 
PAGE_SIZE_LETTER:PageSize

Page Size Letter

This property can be used as the source for data binding.


Implementation
    public static function get PAGE_SIZE_LETTER():PageSize
    public static function set PAGE_SIZE_LETTER(value:PageSize):void
staticEventDispatcherproperty 
staticEventDispatcher:IEventDispatcher  [read-only]


Implementation
    public static function get staticEventDispatcher():IEventDispatcher
widthproperty 
width:int

Width of the paper size


Implementation
    public function get width():int
    public function set width(value:int):void
Constructor Detail
PageSize()Constructor
public function PageSize(name:String, width:int, height:int)

Constructor

Parameters
name:String
 
width:int
 
height:int
Method Detail
addEventListener()method
public function addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, weakRef:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)
 
priority:int (default = 0)
 
weakRef:Boolean (default = false)

clone()method 
public function clone():PageSize

Clones the paper size

Returns
PageSize
dispatchEvent()method 
public function dispatchEvent(event:Event):Boolean

Parameters

event:Event

Returns
Boolean
getByName()method 
public static function getByName(name:String):PageSize

Gets the paper size by name

Parameters

name:String

Returns
PageSize
getBySize()method 
public static function getBySize(width:int, height:int):PageSize

Gets the paper size given the width and the height

Parameters

width:int
 
height:int

Returns
PageSize
hasEventListener()method 
public function hasEventListener(type:String):Boolean

Parameters

type:String

Returns
Boolean
removeEventListener()method 
public function removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void

Parameters

type:String
 
listener:Function
 
useCapture:Boolean (default = false)

rotate()method 
public function rotate():PageSize

Flips the orientation from potrait to landscape and back

Returns
PageSize
willTrigger()method 
public function willTrigger(type:String):Boolean

Parameters

type:String

Returns
Boolean