Packageqnx.ui.geom
Classpublic class EdgeMetrics
InheritanceEdgeMetrics Inheritance Object

The EdgeMetrics class returns the actual left, top, right, and bottom scale-9 values of the current skin state. The EgdeMetrics class differs from the Flash scale9Grid property, in that an EgdeMetrics object returns the scaled edge values of the skin.

See also

ISkin
SkinStates
UISkin


Public Properties
 PropertyDefined By
  bottom : Number
The bottom edge value.
EdgeMetrics
  left : Number
The left edge value.
EdgeMetrics
  right : Number
The right edge value.
EdgeMetrics
  top : Number
The top edge value.
EdgeMetrics
Public Methods
 MethodDefined By
  
EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Creates an EdgeMetrics instance.
EdgeMetrics
  
Creates a clone of this EdgeMetrics instance.
EdgeMetrics
  
toString():String
Returns a String representation of this EdgeMetrics instance.
EdgeMetrics
Property Detail
bottomproperty
public var bottom:Number

The bottom edge value.

leftproperty 
public var left:Number

The left edge value.

rightproperty 
public var right:Number

The right edge value.

topproperty 
public var top:Number

The top edge value.

Constructor Detail
EdgeMetrics()Constructor
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)

Creates an EdgeMetrics instance.

Parameters
left:Number (default = 0) — The left edge of the skin.
 
top:Number (default = 0) — The top edge of the skin.
 
right:Number (default = 0) — The right edge of the skin.
 
bottom:Number (default = 0) — The bottom edge of the skin.
Method Detail
clone()method
public function clone():EdgeMetrics

Creates a clone of this EdgeMetrics instance. The new instance contains the same data.

Returns
EdgeMetrics — The cloned EdgeMetrics instance.
toString()method 
public function toString():String

Returns a String representation of this EdgeMetrics instance.

Returns
String