Packagefrocessing.geom
Classpublic class FViewBox
InheritanceFViewBox Inheritance Object

View Box



Public Properties
 PropertyDefined By
  align : String
FViewBox
  height : Number
source height
FViewBox
  scaleMode : String
FViewBox
  width : Number
source width
FViewBox
  x : Number
source x(left)
FViewBox
  y : Number
source y(top)
FViewBox
Public Methods
 MethodDefined By
  
FViewBox(x:Number = 0, y:Number = 0, width:Number = 1, height:Number = 1)
FViewBox
  
getTransformMatrix(targetX:Number, targetY:Number, targetWidth:Number, targetHeight:Number):Matrix
FViewBox
  
setRect(x:Number, y:Number, width:Number, height:Number):void
set source rect.
FViewBox
Public Constants
 ConstantDefined By
  BOTTOM : String = B
[static]
FViewBox
  BOTTOM_LEFT : String = BL
[static]
FViewBox
  BOTTOM_RIGHT : String = BR
[static]
FViewBox
  CENTER : String
[static]
FViewBox
  EXACT_FIT : String = exactFit
[static]
FViewBox
  LEFT : String = L
[static]
FViewBox
  NO_BORDER : String = noBorder
[static]
FViewBox
  NO_SCALE : String = noScale
[static]
FViewBox
  RIGHT : String = R
[static]
FViewBox
  SHOW_ALL : String = showAll
[static]
FViewBox
  TOP : String = T
[static]
FViewBox
  TOP_LEFT : String = TL
[static]
FViewBox
  TOP_RIGHT : String = TR
[static]
FViewBox
Property Detail
alignproperty
align:String


Implementation
    public function get align():String
    public function set align(value:String):void

See also

flash.display.StageAlign
heightproperty 
public var height:Number

source height

scaleModeproperty 
public var scaleMode:String

See also

flash.display.StageScaleMode
widthproperty 
public var width:Number

source width

xproperty 
public var x:Number

source x(left)

yproperty 
public var y:Number

source y(top)

Constructor Detail
FViewBox()Constructor
public function FViewBox(x:Number = 0, y:Number = 0, width:Number = 1, height:Number = 1)

Parameters
x:Number (default = 0)
 
y:Number (default = 0)
 
width:Number (default = 1)
 
height:Number (default = 1)
Method Detail
getTransformMatrix()method
public function getTransformMatrix(targetX:Number, targetY:Number, targetWidth:Number, targetHeight:Number):Matrix

Parameters

targetX:Number
 
targetY:Number
 
targetWidth:Number
 
targetHeight:Number

Returns
Matrix
setRect()method 
public function setRect(x:Number, y:Number, width:Number, height:Number):void

set source rect.

Parameters

x:Number — srcX
 
y:Number — srcY
 
width:Number — srcWidth
 
height:Number — srcHeight

Constant Detail
BOTTOMConstant
public static const BOTTOM:String = B

BOTTOM_LEFTConstant 
public static const BOTTOM_LEFT:String = BL

BOTTOM_RIGHTConstant 
public static const BOTTOM_RIGHT:String = BR

CENTERConstant 
public static const CENTER:String

EXACT_FITConstant 
public static const EXACT_FIT:String = exactFit

LEFTConstant 
public static const LEFT:String = L

NO_BORDERConstant 
public static const NO_BORDER:String = noBorder

NO_SCALEConstant 
public static const NO_SCALE:String = noScale

RIGHTConstant 
public static const RIGHT:String = R

SHOW_ALLConstant 
public static const SHOW_ALL:String = showAll

TOPConstant 
public static const TOP:String = T

TOP_LEFTConstant 
public static const TOP_LEFT:String = TL

TOP_RIGHTConstant 
public static const TOP_RIGHT:String = TR