| Package | lunas.core |
| Class | public class EdgeMetrics |
| Implements | Geometry |
| Property | Defined by | ||
|---|---|---|---|
| bottom : Number
The height, in pixels, of the bottom edge 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 | ||
| 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 | ||
|
filterNaNValue(value:Number, defaultValue:Number = 0):Number
[static]
Filters the passed-in Number value, if the value is NaN the return value is the default value in second argument.
| 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.
| 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.
| 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.
Parameterso:* |
Boolean — true if the the specified object is equal with this object.
|
| filterNaNValue | () | method |
public static function filterNaNValue(value:Number, defaultValue:Number = 0):NumberFilters the passed-in Number value, if the value is NaN the return value is the default value in second argument.
Parametersvalue:Number — The Number value to filter, if this value is NaN the value is changed.
|
|
defaultValue:Number (default = 0) — The default value to apply over the specified value if this value is NaN (default 0).
|
Number — The filter Number value.
|
| 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.
Parametersindent: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.