Packagegraphics.geom
Classpublic class EdgeMetrics
InheritanceEdgeMetrics Inheritance Object
Implements Geometry

The EdgeMetrics class specifies the thickness, in pixels, of the four edge regions around a visual component.



Public Properties
 PropertyDefined By
  bottom : Number
The height, in pixels, of the bottom edge region.
EdgeMetrics
  horizontal : int
[read-only] The horizontal, in pixels, of the sum of left and right region.
EdgeMetrics
  left : Number
The width, in pixels, of the left edge region.
EdgeMetrics
  right : Number
The width, in pixels, of the right edge region.
EdgeMetrics
  top : Number
The height, in pixels, of the top edge region.
EdgeMetrics
  vertical : int
[read-only] The vertical, in pixels, of the sum of top and vertical region.
EdgeMetrics
Public Methods
 MethodDefined By
  
EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)
Creates a new EdgeMetrics instance.
EdgeMetrics
  
clone():*
Returns a shallow copy of this instance.
EdgeMetrics
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
EdgeMetrics
  
toObject():Object
Returns the Object representation of this object.
EdgeMetrics
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
EdgeMetrics
  
toString():String
Returns the string representation of the object.
EdgeMetrics
Public Constants
 ConstantDefined By
  EMPTY : EdgeMetrics
[static] An EdgeMetrics object with a value of zero for its left, top, right, and bottom properties.
EdgeMetrics
Property Detail
bottomproperty
public var bottom:Number

The height, in pixels, of the bottom edge region.

horizontalproperty 
horizontal:int  [read-only]

The horizontal, in pixels, of the sum of left and right region.


Implementation
    public function get horizontal():int
leftproperty 
public var left:Number

The width, in pixels, of the left edge region.

rightproperty 
public var right:Number

The width, in pixels, of the right edge region.

topproperty 
public var top:Number

The height, in pixels, of the top edge region.

verticalproperty 
vertical:int  [read-only]

The vertical, in pixels, of the sum of top and vertical region.


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

Creates a new EdgeMetrics instance.

Parameters
left:Number (default = 0) — The width, in pixels, of the left edge region.
 
top:Number (default = 0) — The height, in pixels, of the top edge region.
 
right:Number (default = 0) — The width, in pixels, of the right edge region.
 
bottom:Number (default = 0) — The height, in pixels, of the bottom edge region.
Method Detail
clone()method
public function clone():*

Returns a shallow copy of this instance.

Returns
* — a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toObject()method 
public function toObject():Object

Returns the Object representation of this object.

Returns
Object — the Object representation of this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns the string representation of the object.

Returns
String — the string representation of the object.
Constant Detail
EMPTYConstant
public static const EMPTY:EdgeMetrics

An EdgeMetrics object with a value of zero for its left, top, right, and bottom properties.