| Package | graphics.geom |
| Class | public class EdgeMetrics |
| Inheritance | EdgeMetrics Object |
| Implements | Geometry |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined By | ||
|---|---|---|---|
| EMPTY : EdgeMetrics [static]
An EdgeMetrics object with a value of zero for its
left, top, right,
and bottom properties. | EdgeMetrics | ||
| bottom | property |
public var bottom:NumberThe height, in pixels, of the bottom edge region.
| horizontal | property |
horizontal:int [read-only] The horizontal, in pixels, of the sum of left and right region.
public function get horizontal():int| left | property |
public var left:NumberThe width, in pixels, of the left edge region.
| right | property |
public var right:NumberThe width, in pixels, of the right edge region.
| top | property |
public var top:NumberThe height, in pixels, of the top edge region.
| vertical | property |
vertical:int [read-only] The vertical, in pixels, of the sum of top and vertical region.
public function get vertical():int| EdgeMetrics | () | Constructor |
public function EdgeMetrics(left:Number = 0, top:Number = 0, right:Number = 0, bottom:Number = 0)Creates a new EdgeMetrics instance.
Parametersleft: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.
|
| 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:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| toObject | () | method |
public function toObject():ObjectReturns the Object representation of this object.
ReturnsObject — the Object representation of this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns the string representation of the object.
ReturnsString — the string representation of the object.
|
| EMPTY | Constant |
public static const EMPTY:EdgeMetrics
An EdgeMetrics object with a value of zero for its
left, top, right,
and bottom properties.