Paket | mx.containers.utilityClasses |
Klass | public class PostScaleAdapter |
Arv | PostScaleAdapter Object |
Implementerar | IUIComponent, IConstraintClient, IInvalidating |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Egenskap | Definieras med | ||
---|---|---|---|
accessibilityProperties : AccessibilityProperties | PostScaleAdapter | ||
alpha : Number | PostScaleAdapter | ||
baselinePosition : Number [skrivskyddad]
| PostScaleAdapter | ||
blendMode : String | PostScaleAdapter | ||
cacheAsBitmap : Boolean | PostScaleAdapter | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
document : Object
A reference to the document object associated with this component. | PostScaleAdapter | ||
enabled : Boolean
Whether the component can accept user interaction. | PostScaleAdapter | ||
explicitHeight : Number
The explicitly specified height for the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
explicitMaxHeight : Number [skrivskyddad]
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
explicitMaxWidth : Number [skrivskyddad]
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
explicitMinHeight : Number [skrivskyddad]
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
explicitMinWidth : Number [skrivskyddad]
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
explicitWidth : Number
The explicitly specified width for the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
filters : Array | PostScaleAdapter | ||
focusPane : Sprite
A single Sprite object that is shared among components
and used as an overlay for drawing the focus indicator. | PostScaleAdapter | ||
height : Number | PostScaleAdapter | ||
includeInLayout : Boolean | PostScaleAdapter | ||
isPopUp : Boolean | PostScaleAdapter | ||
loaderInfo : LoaderInfo [skrivskyddad]
| PostScaleAdapter | ||
mask : DisplayObject | PostScaleAdapter | ||
maxHeight : Number [skrivskyddad]
Number that specifies the maximum height of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
maxWidth : Number [skrivskyddad]
Number that specifies the maximum width of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
measuredHeight : Number [skrivskyddad]
The measured height of this object. | PostScaleAdapter | ||
measuredMinHeight : Number | PostScaleAdapter | ||
measuredMinWidth : Number | PostScaleAdapter | ||
measuredWidth : Number [skrivskyddad]
The measured width of this object. | PostScaleAdapter | ||
minHeight : Number [skrivskyddad]
Number that specifies the minimum height of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
minWidth : Number [skrivskyddad]
Number that specifies the minimum width of the component,
in pixels, as the component's coordinates. | PostScaleAdapter | ||
mouseX : Number [skrivskyddad]
| PostScaleAdapter | ||
mouseY : Number [skrivskyddad]
| PostScaleAdapter | ||
name : String | PostScaleAdapter | ||
opaqueBackground : Object | PostScaleAdapter | ||
owner : DisplayObjectContainer | PostScaleAdapter | ||
parent : DisplayObjectContainer [skrivskyddad]
| PostScaleAdapter | ||
percentHeight : Number
Number that specifies the height of a component as a
percentage of its parent's size. | PostScaleAdapter | ||
percentWidth : Number
Number that specifies the width of a component as a
percentage of its parent's size. | PostScaleAdapter | ||
root : DisplayObject [skrivskyddad]
| PostScaleAdapter | ||
rotation : Number | PostScaleAdapter | ||
scale9Grid : Rectangle | PostScaleAdapter | ||
scaleX : Number | PostScaleAdapter | ||
scaleY : Number | PostScaleAdapter | ||
scrollRect : Rectangle | PostScaleAdapter | ||
stage : Stage [skrivskyddad]
| PostScaleAdapter | ||
systemManager : ISystemManager
A reference to the SystemManager object for this component. | PostScaleAdapter | ||
transform : flash.geom:Transform | PostScaleAdapter | ||
tweeningProperties : Array
Used by EffectManager. | PostScaleAdapter | ||
visible : Boolean | PostScaleAdapter | ||
width : Number | PostScaleAdapter | ||
x : Number | PostScaleAdapter | ||
y : Number | PostScaleAdapter |
Metod | Definieras med | ||
---|---|---|---|
PostScaleAdapter | |||
PostScaleAdapter | |||
PostScaleAdapter | |||
PostScaleAdapter | |||
[statisk]
Call getCompatibleIUIComponent when you need to work with an IUIComponent that
reports width, height, min, max, explicit, measured, etc. | PostScaleAdapter | ||
Returns the specified constraint value. | PostScaleAdapter | ||
PostScaleAdapter | |||
PostScaleAdapter | |||
PostScaleAdapter | |||
PostScaleAdapter | |||
PostScaleAdapter | |||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
PostScaleAdapter | |||
PostScaleAdapter | |||
Initialize the object. | PostScaleAdapter | ||
Calling this method results in a call to the component's
validateDisplayList() method
before the display list is rendered. | PostScaleAdapter | ||
Calling this method results in a call to the component's
validateProperties() method
before the display list is rendered. | PostScaleAdapter | ||
Calling this method results in a call to the component's
validateSize() method
before the display list is rendered. | PostScaleAdapter | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
PostScaleAdapter | |||
Moves this object to the specified x and y coordinates. | PostScaleAdapter | ||
PostScaleAdapter | |||
PostScaleAdapter | |||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
PostScaleAdapter | |||
Sets the actual size of this object. | PostScaleAdapter | ||
Sets the specified constraint value. | PostScaleAdapter | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
PostScaleAdapter | |||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
Validates and updates the properties and layout of this object
by immediately calling validateProperties(),
validateSize(), and validateDisplayList(),
if necessary. | PostScaleAdapter | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
PostScaleAdapter |
accessibilityProperties | egenskap |
accessibilityProperties:AccessibilityProperties
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get accessibilityProperties():AccessibilityProperties
public function set accessibilityProperties(value:AccessibilityProperties):void
alpha | egenskap |
baselinePosition | egenskap |
blendMode | egenskap |
cacheAsBitmap | egenskap |
document | egenskap |
document:Object
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A reference to the document object associated with this component. A document object is an Object at the top of the hierarchy of a Flex application, MXML component, or ActionScript component.
Implementering
public function get document():Object
public function set document(value:Object):void
enabled | egenskap |
enabled:Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Whether the component can accept user interaction. After setting the enabled
property to false
, some components still respond to mouse interactions such
as mouseOver. As a result, to fully disable UIComponents,
you should also set the value of the mouseEnabled
property to false
.
If you set the enabled
property to false
for a container, Flex dims the color of the container and of all
of its children, and blocks user input to the container
and to all of its children.
Implementering
public function get enabled():Boolean
public function set enabled(value:Boolean):void
explicitHeight | egenskap |
explicitHeight:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The explicitly specified height for the component,
in pixels, as the component's coordinates.
If no height is explicitly specified, the value is NaN
.
Implementering
public function get explicitHeight():Number
public function set explicitHeight(value:Number):void
explicitMaxHeight | egenskap |
explicitMaxHeight:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the maximum height of the component, in pixels, as the component's coordinates.
Implementering
public function get explicitMaxHeight():Number
explicitMaxWidth | egenskap |
explicitMaxWidth:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the maximum width of the component, in pixels, as the component's coordinates.
Implementering
public function get explicitMaxWidth():Number
explicitMinHeight | egenskap |
explicitMinHeight:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the minimum height of the component, in pixels, as the component's coordinates.
Implementering
public function get explicitMinHeight():Number
explicitMinWidth | egenskap |
explicitMinWidth:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the minimum width of the component, in pixels, as the component's coordinates.
Implementering
public function get explicitMinWidth():Number
explicitWidth | egenskap |
explicitWidth:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The explicitly specified width for the component,
in pixels, as the component's coordinates.
If no width is explicitly specified, the value is NaN
.
Implementering
public function get explicitWidth():Number
public function set explicitWidth(value:Number):void
filters | egenskap |
focusPane | egenskap |
focusPane:Sprite
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A single Sprite object that is shared among components and used as an overlay for drawing the focus indicator. Components share this object if their parent is a focused component, not if the component implements the IFocusManagerComponent interface.
Implementering
public function get focusPane():Sprite
public function set focusPane(value:Sprite):void
height | egenskap |
includeInLayout | egenskap |
isPopUp | egenskap |
loaderInfo | egenskap |
loaderInfo:LoaderInfo
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get loaderInfo():LoaderInfo
mask | egenskap |
mask:DisplayObject
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get mask():DisplayObject
public function set mask(value:DisplayObject):void
maxHeight | egenskap |
maxWidth | egenskap |
measuredHeight | egenskap |
measuredHeight:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The measured height of this object.
This is typically hard-coded for graphical skins
because this number is simply the number of pixels in the graphic.
For code skins, it can also be hard-coded
if you expect to be drawn at a certain size.
If your size can change based on properties, you may want
to also be an ILayoutManagerClient so a measure()
method will be called at an appropriate time,
giving you an opportunity to compute a measuredHeight
.
Implementering
public function get measuredHeight():Number
measuredMinHeight | egenskap |
measuredMinWidth | egenskap |
measuredWidth | egenskap |
measuredWidth:Number
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
The measured width of this object.
This is typically hard-coded for graphical skins
because this number is simply the number of pixels in the graphic.
For code skins, it can also be hard-coded
if you expect to be drawn at a certain size.
If your size can change based on properties, you may want
to also be an ILayoutManagerClient so a measure()
method will be called at an appropriate time,
giving you an opportunity to compute a measuredHeight
.
Implementering
public function get measuredWidth():Number
minHeight | egenskap |
minWidth | egenskap |
mouseX | egenskap |
mouseY | egenskap |
name | egenskap |
opaqueBackground | egenskap |
owner | egenskap |
owner:DisplayObjectContainer
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get owner():DisplayObjectContainer
public function set owner(value:DisplayObjectContainer):void
parent | egenskap |
parent:DisplayObjectContainer
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get parent():DisplayObjectContainer
percentHeight | egenskap |
percentHeight:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the height of a component as a percentage of its parent's size. Allowed values are 0 to 100.
Implementering
public function get percentHeight():Number
public function set percentHeight(value:Number):void
percentWidth | egenskap |
percentWidth:Number
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Number that specifies the width of a component as a percentage of its parent's size. Allowed values are 0 to 100.
Implementering
public function get percentWidth():Number
public function set percentWidth(value:Number):void
root | egenskap |
root:DisplayObject
[skrivskyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get root():DisplayObject
rotation | egenskap |
scale9Grid | egenskap |
scaleX | egenskap |
scaleY | egenskap |
scrollRect | egenskap |
stage | egenskap |
systemManager | egenskap |
systemManager:ISystemManager
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A reference to the SystemManager object for this component.
Implementering
public function get systemManager():ISystemManager
public function set systemManager(value:ISystemManager):void
transform | egenskap |
transform:flash.geom:Transform
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Implementering
public function get transform():flash.geom:Transform
public function set transform(value:flash.geom:Transform):void
tweeningProperties | egenskap |
tweeningProperties:Array
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Used by EffectManager. Returns non-null if a component is not using the EffectManager to execute a Tween.
Implementering
public function get tweeningProperties():Array
public function set tweeningProperties(value:Array):void
visible | egenskap |
width | egenskap |
x | egenskap |
y | egenskap |
PostScaleAdapter | () | Konstruktor |
addEventListener | () | metod |
dispatchEvent | () | metod |
getBounds | () | metod |
public function getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
targetCoordinateSpace:DisplayObject |
Rectangle |
getCompatibleIUIComponent | () | metod |
public static function getCompatibleIUIComponent(obj:Object):IUIComponent
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Call getCompatibleIUIComponent when you need to work with an IUIComponent that reports width, height, min, max, explicit, measured, etc. in post-scale coordinates.
Parametrar
obj:Object |
IUIComponent |
getConstraintValue | () | metod |
public function getConstraintValue(constraintName:String):*
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Returns the specified constraint value.
Parametrar
constraintName:String — name of the constraint value. Constraint parameters are
"baseline ", "bottom ", "horizontalCenter ",
"left ", "right ", "top ", and
"verticalCenter ".
For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles. |
* — The constraint value, or null if it is not defined.
|
getExplicitOrMeasuredHeight | () | metod |
getExplicitOrMeasuredWidth | () | metod |
getRect | () | metod |
public function getRect(targetCoordinateSpace:DisplayObject):Rectangle
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
targetCoordinateSpace:DisplayObject |
Rectangle |
globalToLocal | () | metod |
hasEventListener | () | metod |
hitTestObject | () | metod |
public function hitTestObject(obj:DisplayObject):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
obj:DisplayObject |
Boolean |
hitTestPoint | () | metod |
initialize | () | metod |
public function initialize():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Initialize the object.
invalidateDisplayList | () | metod |
public function invalidateDisplayList():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Calling this method results in a call to the component's
validateDisplayList()
method
before the display list is rendered.
For components that extend UIComponent, this implies
that updateDisplayList()
is called.
invalidateProperties | () | metod |
public function invalidateProperties():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Calling this method results in a call to the component's
validateProperties()
method
before the display list is rendered.
For components that extend UIComponent, this implies
that commitProperties()
is called.
invalidateSize | () | metod |
public function invalidateSize():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Calling this method results in a call to the component's
validateSize()
method
before the display list is rendered.
For components that extend UIComponent, this implies
that measure()
is called, unless the component
has both explicitWidth
and explicitHeight
set.
localToGlobal | () | metod |
move | () | metod |
public function move(x:Number, y:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Moves this object to the specified x and y coordinates.
Parametrar
x:Number — The new x-position for this object.
| |
y:Number — The new y-position for this object.
|
owns | () | metod |
public function owns(displayObject:DisplayObject):Boolean
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
displayObject:DisplayObject |
Boolean |
parentChanged | () | metod |
public function parentChanged(p:DisplayObjectContainer):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Parametrar
p:DisplayObjectContainer |
removeEventListener | () | metod |
setActualSize | () | metod |
public function setActualSize(newWidth:Number, newHeight:Number):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Sets the actual size of this object.
This method is mainly for use in implementing the
updateDisplayList()
method, which is where
you compute this object's actual size based on
its explicit size, parent-relative (percent) size,
and measured size.
You then apply this actual size to the object
by calling setActualSize()
.
In other situations, you should be setting properties
such as width
, height
,
percentWidth
, or percentHeight
rather than calling this method.
Parametrar
newWidth:Number — The new width for this object.
| |
newHeight:Number — The new height for this object.
|
setConstraintValue | () | metod |
public function setConstraintValue(constraintName:String, value:*):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Sets the specified constraint value.
Parametrar
constraintName:String — name of the constraint value. Constraint parameters are
"baseline ", "bottom ", "horizontalCenter ",
"left ", "right ", "top ", and
"verticalCenter ".
For more information about these parameters, see the Canvas and Panel containers and Styles Metadata AnchorStyles. | |
value:* — The new value for the constraint.
|
setVisible | () | metod |
validateNow | () | metod |
public function validateNow():void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Validates and updates the properties and layout of this object
by immediately calling validateProperties()
,
validateSize()
, and validateDisplayList()
,
if necessary.
When properties are changed, the new values do not usually have
an immediate effect on the component.
Usually, all of the application code that needs to be run
at that time is executed. Then the LayoutManager starts
calling the validateProperties()
,
validateSize()
, and validateDisplayList()
methods on components, based on their need to be validated and their
depth in the hierarchy of display list objects.
For example, setting the width
property is delayed, because
it may require recalculating the widths of the object's children
or its parent.
Delaying the processing also prevents it from being repeated
multiple times if the application code sets the width
property
more than once.
This method lets you manually override this behavior.
willTrigger | () | metod |
Tue Jun 12 2018, 01:40 PM Z