The EdgeMetrics class specifies the thickness, in pixels,
of the four edge regions around a visual component.
The following Flex properties have values that are EdgeMetrics
objects:
The borderMetrics property of the mx.core.Container and
mx.skins.Border classes includes only the border in the calculations
of the property values of the EdgeMetrics object.
The viewMetrics property of the mx.core.Container
class, and of subclasses of the Container class, includes possible
scrollbars and non-content elements -- such as a Panel container's
header area and the area for a ControlBar component -- in the calculations
of the property values of the EdgeMetrics object.
The viewMetricsAndPadding property of the
mx.core.Container class includes the items listed for the
viewMetrics property, plus the any areas defined by
the margins of the container in the calculations of the
property values of the EdgeMetrics object.
These three properites all return a reference to the same
EdgeMetrics object that the Container is using for its measurement
and layout; they do not return a copy of this object.
If you need a copy, call the clone() method.