| Package | com.flexicious.print.printareas |
| Class | public class PageSize |
| Inheritance | PageSize Object |
| Implements | flash.events.IEventDispatcher |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
[static]
Gets the paper size by name
| 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 | ||
| height | property |
height:intHeight of the paper size
public function get height():int public function set height(value:int):void| isLandscape | property |
isLandscape:BooleanPotrait or landscape
public function get isLandscape():Boolean public function set isLandscape(value:Boolean):void| name | property |
name:StringName of the paper size
public function get name():String public function set name(value:String):void| PAGE_LAYOUT_LANDSCAPE | property |
PAGE_LAYOUT_LANDSCAPE:StringPage orientation Landscape
This property can be used as the source for data binding.
public static function get PAGE_LAYOUT_LANDSCAPE():String public static function set PAGE_LAYOUT_LANDSCAPE(value:String):void| PAGE_LAYOUT_POTRAIT | property |
PAGE_LAYOUT_POTRAIT:StringPage orientation Potrait
This property can be used as the source for data binding.
public static function get PAGE_LAYOUT_POTRAIT():String public static function set PAGE_LAYOUT_POTRAIT(value:String):void| PAGE_SIZE_A3 | property |
PAGE_SIZE_A3:PageSizePage Size A3
This property can be used as the source for data binding.
public static function get PAGE_SIZE_A3():PageSize public static function set PAGE_SIZE_A3(value:PageSize):void| PAGE_SIZE_A4 | property |
PAGE_SIZE_A4:PageSizePage Size A4
This property can be used as the source for data binding.
public static function get PAGE_SIZE_A4():PageSize public static function set PAGE_SIZE_A4(value:PageSize):void| PAGE_SIZE_A5 | property |
PAGE_SIZE_A5:PageSizePage Size A5
This property can be used as the source for data binding.
public static function get PAGE_SIZE_A5():PageSize public static function set PAGE_SIZE_A5(value:PageSize):void| PAGE_SIZE_LEGAL | property |
PAGE_SIZE_LEGAL:PageSizePage Size Legal
This property can be used as the source for data binding.
public static function get PAGE_SIZE_LEGAL():PageSize public static function set PAGE_SIZE_LEGAL(value:PageSize):void| PAGE_SIZE_LETTER | property |
PAGE_SIZE_LETTER:PageSizePage Size Letter
This property can be used as the source for data binding.
public static function get PAGE_SIZE_LETTER():PageSize public static function set PAGE_SIZE_LETTER(value:PageSize):void| staticEventDispatcher | property |
staticEventDispatcher:IEventDispatcher [read-only] public static function get staticEventDispatcher():IEventDispatcher| width | property |
width:intWidth of the paper size
public function get width():int public function set width(value:int):void| PageSize | () | Constructor |
public function PageSize(name:String, width:int, height:int)Constructor
Parametersname:String | |
width:int | |
height:int |
| 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 |
| dispatchEvent | () | method |
public function dispatchEvent(event:Event):Boolean
Parameters
event:Event |
Boolean |
| getByName | () | method |
public static function getByName(name:String):PageSizeGets the paper size by name
Parameters
name:String |
PageSize —
|
| getBySize | () | method |
public static function getBySize(width:int, height:int):PageSizeGets the paper size given the width and the height
Parameters
width:int | |
height:int |
PageSize —
|
| hasEventListener | () | method |
public function hasEventListener(type:String):Boolean
Parameters
type:String |
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():PageSizeFlips the orientation from potrait to landscape and back
ReturnsPageSize —
|
| willTrigger | () | method |
public function willTrigger(type:String):Boolean
Parameters
type:String |
Boolean |