Packagecom.yworks.canvas
Interfacepublic interface ICanvasPrintContext

Printing context data and utility function used by the various callbacks of class CanvasPrinter.

See also

com.yworks.canvas.CanvasPrinter


Public Properties
 PropertyDefined By
  landscape : Boolean
[read-only] Whether to print in landscape mode
ICanvasPrintContext
  pageHeight : Number
[read-only] The printable page height.
ICanvasPrintContext
  pageIndex : uint
[read-only] The current page number.
ICanvasPrintContext
  pageWidth : Number
[read-only] The printable page width.
ICanvasPrintContext
  paperHeight : Number
[read-only] The overall paper height
ICanvasPrintContext
  paperWidth : Number
[read-only] The overall paper width
ICanvasPrintContext
  scale : Number
[read-only] The scale factor that is applied to the canvas contents for printing.
ICanvasPrintContext
Public Methods
 MethodDefined By
  
cancel():void
Cancel printing.
ICanvasPrintContext
Property Detail
landscapeproperty
landscape:Boolean  [read-only]

Whether to print in landscape mode


Implementation
    public function get landscape():Boolean

See also

flash.printing.PrintJob.landscape
pageHeightproperty 
pageHeight:Number  [read-only]

The printable page height.


Implementation
    public function get pageHeight():Number

See also

flash.printing.PrintJob.pageHeight()
pageIndexproperty 
pageIndex:uint  [read-only]

The current page number.


Implementation
    public function get pageIndex():uint
pageWidthproperty 
pageWidth:Number  [read-only]

The printable page width.


Implementation
    public function get pageWidth():Number

See also

flash.printing.PrintJob.pageWidth()
paperHeightproperty 
paperHeight:Number  [read-only]

The overall paper height


Implementation
    public function get paperHeight():Number

See also

flash.printing.PrintJob.paperHeight()
paperWidthproperty 
paperWidth:Number  [read-only]

The overall paper width


Implementation
    public function get paperWidth():Number

See also

flash.printing.PrintJob.paperWidth()
scaleproperty 
scale:Number  [read-only]

The scale factor that is applied to the canvas contents for printing.


Implementation
    public function get scale():Number

See also

Method Detail
cancel()method
public function cancel():void

Cancel printing.