This class represents an encapsulation of space around an object.
public var bottom:Number
horizontal:int [read-only]
Returns the sum of left and right space.
Implementation
public function get horizontal():int
public var left:Number
public var right:Number
public var top:Number
vertical:int [read-only]
Returns the sum of top and bottom space.
Implementation
public function get vertical():int
public function Space(top:Number = 0, right:Number = 0, bottom:Number = 0, left:Number = 0)
Creates a new Space object.
Parameters
| top:Number (default = 0) — space to the top
|
| |
| right:Number (default = 0) — space to the right
|
| |
| bottom:Number (default = 0) — space to the bottom
|
| |
| left:Number (default = 0) — space to the left
|
public function toString():String
Returns the string representation of Space.
Returns
| String — the string representation of Space
|
Copyright 2009 - Tim Richter