用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: AIR 30.0 和更早版本, Flash Player 30.0 和更早版本, Flash Lite 4
Flex 4.6 和更早版本, Flash Pro CS6 和更早版本
隐藏过滤条件
spark.primitives.supportClasses 

GraphicElement  - AS3 Flex

x

顶级
adobe.utils
air.desktop
air.net
air.update
air.update.events
coldfusion.air
coldfusion.air.errors
coldfusion.air.events
coldfusion.service
coldfusion.service.events
coldfusion.service.mxml
com.adobe.acm.solutions.authoring.domain.extensions
com.adobe.acm.solutions.ccr.domain.extensions
com.adobe.consulting.pst.vo
com.adobe.dct.component
com.adobe.dct.component.datadictionary
com.adobe.dct.component.datadictionaryElement
com.adobe.dct.component.dataElementsPanel
com.adobe.dct.component.toolbars
com.adobe.dct.event
com.adobe.dct.exp
com.adobe.dct.model
com.adobe.dct.service
com.adobe.dct.service.provider
com.adobe.dct.transfer
com.adobe.dct.util
com.adobe.dct.view
com.adobe.ep.taskmanagement.domain
com.adobe.ep.taskmanagement.event
com.adobe.ep.taskmanagement.filter
com.adobe.ep.taskmanagement.services
com.adobe.ep.taskmanagement.util
com.adobe.ep.ux.attachmentlist.component
com.adobe.ep.ux.attachmentlist.domain
com.adobe.ep.ux.attachmentlist.domain.events
com.adobe.ep.ux.attachmentlist.domain.renderers
com.adobe.ep.ux.attachmentlist.skin
com.adobe.ep.ux.attachmentlist.skin.renderers
com.adobe.ep.ux.content.event
com.adobe.ep.ux.content.factory
com.adobe.ep.ux.content.handlers
com.adobe.ep.ux.content.managers
com.adobe.ep.ux.content.model.asset
com.adobe.ep.ux.content.model.preview
com.adobe.ep.ux.content.model.relation
com.adobe.ep.ux.content.model.search
com.adobe.ep.ux.content.model.toolbar
com.adobe.ep.ux.content.search
com.adobe.ep.ux.content.services
com.adobe.ep.ux.content.services.load
com.adobe.ep.ux.content.services.permissions
com.adobe.ep.ux.content.services.preview
com.adobe.ep.ux.content.services.providers
com.adobe.ep.ux.content.services.query
com.adobe.ep.ux.content.services.relationships
com.adobe.ep.ux.content.services.search.lccontent
com.adobe.ep.ux.content.services.version
com.adobe.ep.ux.content.view
com.adobe.ep.ux.content.view.components.activate
com.adobe.ep.ux.content.view.components.grid
com.adobe.ep.ux.content.view.components.grid.hover
com.adobe.ep.ux.content.view.components.grid.hover.component
com.adobe.ep.ux.content.view.components.grid.renderers
com.adobe.ep.ux.content.view.components.relationships
com.adobe.ep.ux.content.view.components.review
com.adobe.ep.ux.content.view.components.search.renderers
com.adobe.ep.ux.content.view.components.searchpod
com.adobe.ep.ux.content.view.components.toolbar
com.adobe.ep.ux.content.view.components.toolbar.controlRenderers
com.adobe.ep.ux.content.view.components.version
com.adobe.ep.ux.documentsubmit.component
com.adobe.ep.ux.documentsubmit.domain
com.adobe.ep.ux.documentsubmit.skin
com.adobe.ep.ux.taskaction.component
com.adobe.ep.ux.taskaction.domain
com.adobe.ep.ux.taskaction.domain.events
com.adobe.ep.ux.taskaction.skin
com.adobe.ep.ux.taskdetails.component
com.adobe.ep.ux.taskdetails.domain
com.adobe.ep.ux.taskdetails.skin
com.adobe.ep.ux.tasklist.component
com.adobe.ep.ux.tasklist.domain
com.adobe.ep.ux.tasklist.skin
com.adobe.ep.ux.webdocumentviewer.domain
com.adobe.exm.expression
com.adobe.exm.expression.error
com.adobe.exm.expression.event
com.adobe.exm.expression.impl
com.adobe.fiber.runtime.lib
com.adobe.fiber.services
com.adobe.fiber.services.wrapper
com.adobe.fiber.styles
com.adobe.fiber.util
com.adobe.fiber.valueobjects
com.adobe.gravity.binding
com.adobe.gravity.context
com.adobe.gravity.flex.bundleloader
com.adobe.gravity.flex.progress
com.adobe.gravity.flex.serviceloader
com.adobe.gravity.framework
com.adobe.gravity.init
com.adobe.gravity.service.bundleloader
com.adobe.gravity.service.logging
com.adobe.gravity.service.manifest
com.adobe.gravity.service.progress
com.adobe.gravity.tracker
com.adobe.gravity.ui
com.adobe.gravity.utility
com.adobe.gravity.utility.async
com.adobe.gravity.utility.error
com.adobe.gravity.utility.events
com.adobe.gravity.utility.factory
com.adobe.gravity.utility.flex.async
com.adobe.gravity.utility.logging
com.adobe.gravity.utility.message
com.adobe.gravity.utility.sequence
com.adobe.gravity.utility.url
com.adobe.guides.control
com.adobe.guides.domain
com.adobe.guides.i18n
com.adobe.guides.spark.components.skins
com.adobe.guides.spark.components.skins.mx
com.adobe.guides.spark.headers.components
com.adobe.guides.spark.headers.skins
com.adobe.guides.spark.layouts.components
com.adobe.guides.spark.layouts.skins
com.adobe.guides.spark.navigators.components
com.adobe.guides.spark.navigators.renderers
com.adobe.guides.spark.navigators.skins
com.adobe.guides.spark.util
com.adobe.guides.spark.wrappers.components
com.adobe.guides.spark.wrappers.skins
com.adobe.guides.submit
com.adobe.icc.dc.domain
com.adobe.icc.dc.domain.factory
com.adobe.icc.editors.events
com.adobe.icc.editors.handlers
com.adobe.icc.editors.managers
com.adobe.icc.editors.model
com.adobe.icc.editors.model.config
com.adobe.icc.editors.model.el
com.adobe.icc.editors.model.el.operands
com.adobe.icc.editors.model.el.operators
com.adobe.icc.enum
com.adobe.icc.external.dc
com.adobe.icc.obj
com.adobe.icc.services
com.adobe.icc.services.category
com.adobe.icc.services.config
com.adobe.icc.services.download
com.adobe.icc.services.export
com.adobe.icc.services.external
com.adobe.icc.services.formbridge
com.adobe.icc.services.fragmentlayout
com.adobe.icc.services.layout
com.adobe.icc.services.letter
com.adobe.icc.services.locator
com.adobe.icc.services.module
com.adobe.icc.services.render
com.adobe.icc.services.submit
com.adobe.icc.services.user
com.adobe.icc.token
com.adobe.icc.vo
com.adobe.icc.vo.render
com.adobe.icomm.assetplacement.controller
com.adobe.icomm.assetplacement.controller.utils
com.adobe.icomm.assetplacement.data
com.adobe.icomm.assetplacement.model
com.adobe.livecycle.assetmanager.client
com.adobe.livecycle.assetmanager.client.event
com.adobe.livecycle.assetmanager.client.handler
com.adobe.livecycle.assetmanager.client.managers
com.adobe.livecycle.assetmanager.client.model
com.adobe.livecycle.assetmanager.client.model.cms
com.adobe.livecycle.assetmanager.client.service
com.adobe.livecycle.assetmanager.client.service.search
com.adobe.livecycle.assetmanager.client.service.search.cms
com.adobe.livecycle.assetmanager.client.utils
com.adobe.livecycle.content
com.adobe.livecycle.rca.model
com.adobe.livecycle.rca.model.constant
com.adobe.livecycle.rca.model.document
com.adobe.livecycle.rca.model.participant
com.adobe.livecycle.rca.model.reminder
com.adobe.livecycle.rca.model.stage
com.adobe.livecycle.rca.service
com.adobe.livecycle.rca.service.core
com.adobe.livecycle.rca.service.core.delegate
com.adobe.livecycle.rca.service.process
com.adobe.livecycle.rca.service.process.delegate
com.adobe.livecycle.rca.token
com.adobe.livecycle.ria.security.api
com.adobe.livecycle.ria.security.service
com.adobe.mosaic.layouts
com.adobe.mosaic.layouts.dragAndDrop
com.adobe.mosaic.layouts.interfaces
com.adobe.mosaic.mxml
com.adobe.mosaic.om.constants
com.adobe.mosaic.om.events
com.adobe.mosaic.om.impl
com.adobe.mosaic.om.interfaces
com.adobe.mosaic.skinning
com.adobe.mosaic.sparklib.editors
com.adobe.mosaic.sparklib.optionMenu
com.adobe.mosaic.sparklib.scrollableMenu
com.adobe.mosaic.sparklib.scrollableMenu.skins
com.adobe.mosaic.sparklib.tabLayout
com.adobe.mosaic.sparklib.tabLayout.events
com.adobe.mosaic.sparklib.tabLayout.layouts
com.adobe.mosaic.sparklib.tabLayout.skins
com.adobe.mosaic.sparklib.text
com.adobe.mosaic.sparklib.util
com.adobe.solutions.acm.authoring.presentation
com.adobe.solutions.acm.authoring.presentation.actionbar
com.adobe.solutions.acm.authoring.presentation.common
com.adobe.solutions.acm.authoring.presentation.events
com.adobe.solutions.acm.authoring.presentation.fragment
com.adobe.solutions.acm.authoring.presentation.letter
com.adobe.solutions.acm.authoring.presentation.letter.data
com.adobe.solutions.acm.authoring.presentation.preview
com.adobe.solutions.acm.authoring.presentation.rte
com.adobe.solutions.acm.ccr.presentation
com.adobe.solutions.acm.ccr.presentation.contentcapture
com.adobe.solutions.acm.ccr.presentation.contentcapture.events
com.adobe.solutions.acm.ccr.presentation.contentcapture.preview
com.adobe.solutions.acm.ccr.presentation.datacapture
com.adobe.solutions.acm.ccr.presentation.datacapture.renderers
com.adobe.solutions.acm.ccr.presentation.pdf
com.adobe.solutions.exm
com.adobe.solutions.exm.authoring
com.adobe.solutions.exm.authoring.components.controls
com.adobe.solutions.exm.authoring.components.toolbars
com.adobe.solutions.exm.authoring.domain
com.adobe.solutions.exm.authoring.domain.expression
com.adobe.solutions.exm.authoring.domain.impl
com.adobe.solutions.exm.authoring.domain.method
com.adobe.solutions.exm.authoring.domain.variable
com.adobe.solutions.exm.authoring.enum
com.adobe.solutions.exm.authoring.events
com.adobe.solutions.exm.authoring.model
com.adobe.solutions.exm.authoring.renderer
com.adobe.solutions.exm.authoring.view
com.adobe.solutions.exm.expression
com.adobe.solutions.exm.impl
com.adobe.solutions.exm.impl.method
com.adobe.solutions.exm.method
com.adobe.solutions.exm.mock
com.adobe.solutions.exm.mock.method
com.adobe.solutions.exm.runtime
com.adobe.solutions.exm.runtime.impl
com.adobe.solutions.exm.variable
com.adobe.solutions.prm.constant
com.adobe.solutions.prm.domain
com.adobe.solutions.prm.domain.factory
com.adobe.solutions.prm.domain.impl
com.adobe.solutions.prm.domain.manager
com.adobe.solutions.prm.presentation.asset
com.adobe.solutions.prm.presentation.constant
com.adobe.solutions.prm.presentation.document
com.adobe.solutions.prm.presentation.event
com.adobe.solutions.prm.presentation.file
com.adobe.solutions.prm.presentation.project
com.adobe.solutions.prm.presentation.team
com.adobe.solutions.prm.presentation.util
com.adobe.solutions.prm.service
com.adobe.solutions.prm.services.impl
com.adobe.solutions.prm.vo
com.adobe.solutions.rca.constant
com.adobe.solutions.rca.domain
com.adobe.solutions.rca.domain.common
com.adobe.solutions.rca.domain.factory
com.adobe.solutions.rca.domain.impl
com.adobe.solutions.rca.domain.impl.manager
com.adobe.solutions.rca.domain.manager
com.adobe.solutions.rca.presentation
com.adobe.solutions.rca.presentation.comment
com.adobe.solutions.rca.presentation.constant
com.adobe.solutions.rca.presentation.event
com.adobe.solutions.rca.presentation.gantt
com.adobe.solutions.rca.presentation.gantt.ruler
com.adobe.solutions.rca.presentation.template
com.adobe.solutions.rca.presentation.template.audit
com.adobe.solutions.rca.presentation.template.definition
com.adobe.solutions.rca.presentation.template.documents
com.adobe.solutions.rca.presentation.template.stages
com.adobe.solutions.rca.presentation.util
com.adobe.solutions.rca.service
com.adobe.solutions.rca.services.impl
com.adobe.solutions.rca.vo
com.adobe.solutions.rca.vo.um
com.adobe.viewsource
fl.accessibility
fl.containers
fl.controls
fl.controls.dataGridClasses
fl.controls.listClasses
fl.controls.progressBarClasses
fl.core
fl.data
fl.display
fl.events
fl.ik
fl.lang
fl.livepreview
fl.managers
fl.motion
fl.motion.easing
fl.rsl
fl.text
fl.transitions
fl.transitions.easing
fl.video
flash.accessibility
flash.concurrent
flash.crypto
flash.data
flash.desktop
flash.display
flash.display3D
flash.display3D.textures
flash.errors
flash.events
flash.external
flash.filesystem
flash.filters
flash.geom
flash.globalization
flash.html
flash.media
flash.net
flash.net.dns
flash.net.drm
flash.notifications
flash.permissions
flash.printing
flash.profiler
flash.sampler
flash.security
flash.sensors
flash.system
flash.text
flash.text.engine
flash.text.ime
flash.ui
flash.utils
flash.xml
flashx.textLayout
flashx.textLayout.compose
flashx.textLayout.container
flashx.textLayout.conversion
flashx.textLayout.edit
flashx.textLayout.elements
flashx.textLayout.events
flashx.textLayout.factory
flashx.textLayout.formats
flashx.textLayout.operations
flashx.textLayout.utils
flashx.undo
ga.controls
ga.layouts
ga.model
ga.uiComponents
ga.util
ga.views
ga.wrappers
lc.foundation
lc.foundation.domain
lc.foundation.events
lc.foundation.ui
lc.foundation.util
lc.preloader
lc.procmgmt
lc.procmgmt.commands
lc.procmgmt.domain
lc.procmgmt.events
lc.procmgmt.formbridge
lc.procmgmt.impl
lc.procmgmt.ui.attachments
lc.procmgmt.ui.controls
lc.procmgmt.ui.controls.card
lc.procmgmt.ui.controls.renderer
lc.procmgmt.ui.help
lc.procmgmt.ui.layout
lc.procmgmt.ui.presentationmodel
lc.procmgmt.ui.process
lc.procmgmt.ui.search
lc.procmgmt.ui.startpoint
lc.procmgmt.ui.task
lc.procmgmt.ui.task.form
lc.procmgmt.ui.task.form.commands
lc.procmgmt.ui.tracking
mx.accessibility
mx.automation
mx.automation.air
mx.automation.delegates
mx.automation.delegates.advancedDataGrid
mx.automation.delegates.charts
mx.automation.delegates.containers
mx.automation.delegates.controls
mx.automation.delegates.controls.dataGridClasses
mx.automation.delegates.controls.fileSystemClasses
mx.automation.delegates.core
mx.automation.delegates.flashflexkit
mx.automation.events
mx.binding
mx.binding.utils
mx.charts
mx.charts.chartClasses
mx.charts.effects
mx.charts.effects.effectClasses
mx.charts.events
mx.charts.renderers
mx.charts.series
mx.charts.series.items
mx.charts.series.renderData
mx.charts.styles
mx.collections
mx.collections.errors
mx.containers
mx.containers.accordionClasses
mx.containers.dividedBoxClasses
mx.containers.errors
mx.containers.utilityClasses
mx.controls
mx.controls.advancedDataGridClasses
mx.controls.dataGridClasses
mx.controls.listClasses
mx.controls.menuClasses
mx.controls.olapDataGridClasses
mx.controls.scrollClasses
mx.controls.sliderClasses
mx.controls.textClasses
mx.controls.treeClasses
mx.controls.videoClasses
mx.core
mx.core.windowClasses
mx.data
mx.data.crypto
mx.data.errors
mx.data.events
mx.data.messages
mx.data.mxml
mx.data.offline.errors
mx.data.utils
mx.effects
mx.effects.easing
mx.effects.effectClasses
mx.events
mx.filters
mx.flash
mx.formatters
mx.geom
mx.graphics
mx.graphics.codec
mx.graphics.shaderClasses
mx.logging
mx.logging.errors
mx.logging.targets
mx.managers
mx.messaging
mx.messaging.channels
mx.messaging.config
mx.messaging.errors
mx.messaging.events
mx.messaging.management
mx.messaging.messages
mx.modules
mx.netmon
mx.olap
mx.olap.aggregators
mx.preloaders
mx.printing
mx.resources
mx.rpc
mx.rpc.events
mx.rpc.http
mx.rpc.http.mxml
mx.rpc.livecycle
mx.rpc.mxml
mx.rpc.remoting
mx.rpc.remoting.mxml
mx.rpc.soap
mx.rpc.soap.mxml
mx.rpc.wsdl
mx.rpc.xml
mx.skins
mx.skins.halo
mx.skins.spark
mx.skins.wireframe
mx.skins.wireframe.windowChrome
mx.states
mx.styles
mx.utils
mx.validators
org.osmf.containers
org.osmf.display
org.osmf.elements
org.osmf.events
org.osmf.layout
org.osmf.logging
org.osmf.media
org.osmf.metadata
org.osmf.net
org.osmf.net.dvr
org.osmf.net.httpstreaming
org.osmf.net.metrics
org.osmf.net.qos
org.osmf.net.rtmpstreaming
org.osmf.net.rules
org.osmf.traits
org.osmf.utils
spark.accessibility
spark.automation.delegates
spark.automation.delegates.components
spark.automation.delegates.components.gridClasses
spark.automation.delegates.components.mediaClasses
spark.automation.delegates.components.supportClasses
spark.automation.delegates.skins.spark
spark.automation.events
spark.collections
spark.components
spark.components.calendarClasses
spark.components.gridClasses
spark.components.mediaClasses
spark.components.supportClasses
spark.components.windowClasses
spark.core
spark.effects
spark.effects.animation
spark.effects.easing
spark.effects.interpolation
spark.effects.supportClasses
spark.events
spark.filters
spark.formatters
spark.formatters.supportClasses
spark.globalization
spark.globalization.supportClasses
spark.layouts
spark.layouts.supportClasses
spark.managers
spark.modules
spark.preloaders
spark.primitives
spark.primitives.supportClasses
spark.skins
spark.skins.mobile
spark.skins.mobile.supportClasses
spark.skins.spark
spark.skins.spark.mediaClasses.fullScreen
spark.skins.spark.mediaClasses.normal
spark.skins.spark.windowChrome
spark.skins.wireframe
spark.skins.wireframe.mediaClasses
spark.skins.wireframe.mediaClasses.fullScreen
spark.transitions
spark.utils
spark.validators
spark.validators.supportClasses
xd.core.axm.enterprise.view.components
xd.core.axm.enterprise.view.skins
xd.core.axm.view.components
xd.core.axm.view.components.support

语言元素

全局常量
全局函数
运算符
语句、关键字和指令
特殊类型

附录

新增内容
编译器错误
编译器警告
运行时错误
迁移到 ActionScript 3
支持的字符集
仅适用于 MXML 的标签
Motion XML 元素
Timed Text 标记
不推荐使用的元素的列表
AccessibilityImplementation 常量
如何使用 ActionScript 示例
法律声明
spark.primitives.supportClasses
public class GraphicElement
继承GraphicElement Inheritance EventDispatcher Inheritance Object
实现 IGraphicElement, IInvalidating, ILayoutElement, IVisualElement, IMXMLObject
子类 BitmapImage, StrokedElement

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

用于定义各个图形元素的基类。图形元素的类型包括:
  • 形状
  • 文本
  • 栅格图像

定义图形元素时,可以为元素指定显式大小;即,不能像指定控件的大小时那样使用百分比来调整大小。

TBound 是在对象的父坐标空间中对象的边界。UBound 是在对象自己的坐标空间中对象的边界。

如果您在 MXML 中声明性地设置 transform.matrix,则它将覆盖任何转换属性(rotation、scaleX、scaleY、x 和 y)的值。如果您在 ActionScript 中设置 transform.matrix 或转换属性,则将使用最后一个值集。



公共属性
 属性由以下参数定义
  alpha : Number
图形元素的透明度级别。
GraphicElement
  alwaysCreateDisplayObject : Boolean
指定此 GraphicElement 是否与其 DisplayObject 相关联,并呈示于 DisplayObject。
GraphicElement
  baseline : Object
从锚点目标到控件的基线位置的垂直距离(以像素为单位)。
GraphicElement
  baselinePosition : Number
[只读] 组件第一行文本的基线的 y 坐标。
GraphicElement
  blendMode : String
BlendMode 类中的一个值,用于指定要使用的混合模式。
GraphicElement
  bottom : Object
从组件的下边缘到锚点目标的下边缘的垂直距离(以像素为单位)。
GraphicElement
 Inheritedconstructor : Object
对类对象或给定对象实例的构造函数的引用。
Object
  depth : Number
确定容器内各项目的呈示顺序。
GraphicElement
  designLayer : DesignLayer
指定与该可视元素关联的可选 DesignLayer 实例。
GraphicElement
  displayObject : DisplayObject
[只读] 绘制此 IGraphicElement 所在的共享 DisplayObject。
GraphicElement
  displayObjectSharingMode : String
指示此 IGraphicElement 与其显示对象之间的关联。
GraphicElement
  explicitHeight : Number
指定该组件在组件坐标中显式高度(以像素为单位)的数字。
GraphicElement
  explicitMaxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
GraphicElement
  explicitMaxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
GraphicElement
  explicitMinHeight : Number
布局过程中父级要考虑的组件最小建议高度。
GraphicElement
  explicitMinWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
GraphicElement
  explicitWidth : Number
指定该组件在组件坐标中显式宽度(以像素为单位)的数字。
GraphicElement
  filters : Array
包含当前与图形元素关联的每个滤镜对象的索引数组。
GraphicElement
  hasLayoutMatrix3D : Boolean
[只读] 如果元素具有 3D 矩阵,则为 true。
GraphicElement
  height : Number
图形元素的高度。
GraphicElement
  horizontalCenter : Object
从组件中心到锚点目标的内容区域中心的水平距离(以像素为单位)。
GraphicElement
  id : String
组件的标识。
GraphicElement
  includeInLayout : Boolean
指定此元素是否包含在父代的布局中。
GraphicElement
  is3D : Boolean
[只读] 当元素为 3D 时,则为 true。
GraphicElement
  layoutDirection : String
指定元素的所需布局方向:LayoutDirection.LTR(从左到右)、LayoutDirection.RTL(从右到左)或 null(继承)。
GraphicElement
  left : Object
从组件的左边缘到锚点目标的左边缘的水平距离(以像素为单位)。
GraphicElement
  luminosityClip : Boolean
控制发光度遮罩是否剪辑设置了遮罩的内容的属性。
GraphicElement
  luminosityInvert : Boolean
控制计算由发光度遮罩设置遮罩的图形元素的 RGB 颜色值的属性。
GraphicElement
  mask : DisplayObject
调用显示对象被指定的 mask 对象遮罩。
GraphicElement
  maskType : String
定义将遮罩应用到 GraphicElement 的方式。可能的值为 MaskType.CLIP、MaskType.ALPHA 和 MaskType.LUMINOSITY。剪辑遮罩 - 遮罩处于剪辑模式下时,会将剪辑遮罩减少至 1 位。
GraphicElement
  maxHeight : Number
布局过程中父级要考虑的组件最大建议高度。
GraphicElement
  maxWidth : Number
布局过程中父级要考虑的组件最大建议宽度。
GraphicElement
  measuredHeight : Number
组件的默认高度(以像素为单位)。
GraphicElement
  measuredWidth : Number
组件的默认宽度(以像素为单位)。
GraphicElement
  measuredX : Number
相对于元素的原点的默认测量界限左上角。
GraphicElement
  measuredY : Number
相对于元素的原点的默认测量界限左上角。
GraphicElement
  minHeight : Number
布局过程中父级要考虑的组件最小建议高度。
GraphicElement
  minWidth : Number
布局过程中父级要考虑的组件最小建议宽度。
GraphicElement
  owner : DisplayObjectContainer
此 IVisualElement 对象的所有者。
GraphicElement
  parent : DisplayObjectContainer
[只读] 此组件的父容器或组件。
GraphicElement
  percentHeight : Number
以组件父代大小百分比的方式指定组件高度。
GraphicElement
  percentWidth : Number
以组件父代大小百分比的方式指定组件宽度。
GraphicElement
  postLayoutTransformOffsets : mx.geom:TransformOffsets
定义能够应用于对象转换且在一定程度上对其父布局不可视的一组调整。
GraphicElement
  right : Object
从组件的右边缘到锚点目标的右边缘的水平距离(以像素为单位)。
GraphicElement
  rotation : Number
指示元素从转换点的旋转(以度为单位)。
GraphicElement
  rotationX : Number
指示 element 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。
GraphicElement
  rotationY : Number
表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。
GraphicElement
  rotationZ : Number
指示元素从转换点的旋转(以度为单位)。
GraphicElement
  scaleX : Number
从转换点开始应用的元素的水平缩放比例(百分比)。
GraphicElement
  scaleY : Number
从转换点开始应用的元素的垂直缩放比例(百分比)。
GraphicElement
  scaleZ : Number
从转换点开始应用的元素的 z 缩放比例(百分比)。
GraphicElement
  top : Object
从组件的上边缘到锚点目标的上边缘的垂直距离(以像素为单位)。
GraphicElement
  transform : flash.geom:Transform
一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。
GraphicElement
  transformX : Number
元素的 x 位置转换点。
GraphicElement
  transformY : Number
元素的 y 位置转换点。
GraphicElement
  transformZ : Number
元素的 z 位置转换点。
GraphicElement
  verticalCenter : Object
从组件中心到锚点目标的内容区域中心的垂直距离(以像素为单位)。
GraphicElement
  visible : Boolean
控制此可视元素的可见性。
GraphicElement
  width : Number
图形元素的宽度。
GraphicElement
  x : Number
图形元素的 x 位置。
GraphicElement
  y : Number
图形元素的 y 位置。
GraphicElement
  z : Number
图形元素的 z 位置。
GraphicElement
受保护的属性
 属性由以下参数定义
  drawnDisplayObject : DisplayObject
[只读] GraphicElement 在其中绘制的实际 DisplayObject。
GraphicElement
  drawX : Number
[只读] 应该绘制元素的 x 位置。
GraphicElement
  drawY : Number
[只读] 应该绘制元素的 y 位置。
GraphicElement
  hasComplexLayoutMatrix : Boolean
[只读] 如果 GraphicElement 具有任何非平移 (x,y) 转换属性,则返回 true。
GraphicElement
  layoutFeatures : AdvancedLayoutFeatures
包含 GraphicElement 实现转换和分层支持的方法的所有实现细节。
GraphicElement
  needsDisplayObject : Boolean
[只读] 如果元素需要一个独占 DisplayObject,则为 true。
GraphicElement
公共方法
 方法由以下参数定义
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
使用 EventDispatcher 对象注册事件侦听器对象,以使侦听器能够接收事件通知。
EventDispatcher
  
如果此 IGraphicElement 是兼容的且可以与序列中下一个 IGraphicElement 共享显示对象,则返回 true。
GraphicElement
  
如果此 IGraphicElement 是兼容的且可以与序列中上一个 IGraphicElement 共享显示对象,则返回 true。
GraphicElement
  
创建一个新 DisplayObject 以用于绘制此 IGraphicElement。
GraphicElement
 Inherited
将事件调度到事件流中。
EventDispatcher
  
getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
按指定的元素大小,返回元素边界的 x 坐标。
GraphicElement
  
getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
按指定的元素大小,返回元素边界的 y 坐标。
GraphicElement
  
getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的布局高度。
GraphicElement
  
getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的布局宽度。
GraphicElement
  
getLayoutBoundsX(postLayoutTransform:Boolean = true):Number
返回元素在屏幕上进行绘制时所用的 x 坐标。
GraphicElement
  
getLayoutBoundsY(postLayoutTransform:Boolean = true):Number
返回元素在屏幕上进行绘制时所用的 y 坐标。
GraphicElement
  
返回用于相对于其同级组件计算组件的布局的转换矩阵。
GraphicElement
  
返回此元素的布局转换 Matrix3D。
GraphicElement
  
getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的最大高度。
GraphicElement
  
getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的最大宽度。
GraphicElement
  
getMinBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的最小高度。
GraphicElement
  
getMinBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的最小宽度。
GraphicElement
  
getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number
返回元素的首选高度。
GraphicElement
  
getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number
返回元素的首选宽度。
GraphicElement
 Inherited
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
EventDispatcher
 Inherited
表示对象是否已经定义了指定的属性。
Object
  
如果 GraphicElement 是使用 MXML 标签创建的,则由 MXML 编译器自动调用。
GraphicElement
  
调用此方法将导致在呈示显示列表前调用元素的 validateDisplayList() 方法。
GraphicElement
  
当某元素的 layoutDirection 更改或其父代的 layoutDirection 更改时,该元素必须调用该方法。
GraphicElement
  
调用此方法将导致在呈示显示列表前调用元素的 validateProperties() 方法。
GraphicElement
  
调用此方法将导致在呈示显示列表前调用元素的 validateSize() 方法。
GraphicElement
 Inherited
表示 Object 类的实例是否在指定为参数的对象的原型链中。
Object
  
将 Point 对象从对象的(局部)坐标转换为舞台(全局)坐标。
GraphicElement
  
将 IGraphicElement 添加到主机组件或从主机组件将其删除时由 IGraphicElementContainer 调用。
GraphicElement
 Inherited
表示指定的属性是否存在、是否可枚举。
Object
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
从 EventDispatcher 对象中删除侦听器。
EventDispatcher
  
setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void
设置元素在屏幕上进行绘制时所用的坐标。
GraphicElement
  
setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void
设置元素的布局大小。
GraphicElement
  
setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void
设置用于相对于其同级组件计算组件的布局大小和位置的转换 Matrix。
GraphicElement
  
setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void
设置用于计算组件相对于其同级组件的布局大小和位置的转换 Matrix3D。
GraphicElement
 Inherited
设置循环操作动态属性的可用性。
Object
  
确定此元素是否可以将它自己绘制到该序列的 sharedDisplayObject。
GraphicElement
 Inherited
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。
Object
 Inherited
返回指定对象的字符串表示形式。
Object
  
transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void
用于更新转换的旋转、缩放和平移的一种实用程序方法,同时保留某个特定点,该点是在组件自己的坐标空间中指定的,且在父项的坐标空间中是固定的。
GraphicElement
  
transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void
一种实用程序方法,用于将以该对象的本地坐标指定的点转换为在该对象父坐标中的相应位置。
GraphicElement
  
由 IGraphicElementContainer 调用以在其 displayObject 属性中重新绘制此元素。
GraphicElement
  
根据需要,通过立即调用 validateProperties()、validateSize() 和 validateDisplayList() 来验证并更新此对象的属性和布局。
GraphicElement
  
由布局逻辑用于通过调用 commitProperties() 方法来验证组件的属性。
GraphicElement
  
由 IGraphicElementContainer 调用以验证此元素的大小。
GraphicElement
 Inherited
返回指定对象的原始值。
Object
 Inherited
检查是否用此 EventDispatcher 对象或其任何祖代为指定事件类型注册了事件侦听器。
EventDispatcher
受保护的方法
 方法由以下参数定义
  
确定是否可以跳过对 measure() 方法的调用。
GraphicElement
  
处理在元素上设置的属性。
GraphicElement
  
getStrokeExtents(postLayoutTransform:Boolean = true):Rectangle
返回元素界限每一侧上的笔触所占据的像素数。
GraphicElement
  
通知主机此元素已更改且需要更新其图层的实用程序方法。
GraphicElement
  
此对象影响其布局时(includeInLayout 为 true),使父代大小和显示列表失效的 Helper 方法。
GraphicElement
  
计算元素的默认大小。
GraphicElement
  
用于 ILayoutElement 接口的实现,返回显式度量的高度预转换。
GraphicElement
  
用于 ILayoutElement 接口的实现,返回测量宽度预转换的显式。
GraphicElement
  
transformHeightForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
转换元素的大小。
GraphicElement
  
transformWidthForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number
转换元素的大小。
GraphicElement
  
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
绘制元素和/或调整其内容的大小并定位该内容。
GraphicElement
事件
 事件 摘要 由以下参数定义
 Inherited[广播事件] Flash Player 或 AIR 应用程序获得操作系统焦点并变为活动状态时将调度此事件。EventDispatcher
 Inherited[广播事件] Flash Player 或 AIR 应用程序失去操作系统焦点并变为非活动状态时将调度此事件。EventDispatcher
属性详细信息

alpha

属性
alpha:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的透明度级别。有效值为 0(完全透明)至 1(完全不透明)之间的十进制值。例如,值 .25 表示元素的不透明度为 25%。



实现
    public function get alpha():Number
    public function set alpha(value:Number):void

alwaysCreateDisplayObject

属性 
alwaysCreateDisplayObject:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4.5
运行时版本: Flash Player 10, AIR 1.5

指定此 GraphicElement 是否与其 DisplayObject 相关联,并呈示于 DisplayObject。

默认值为 false。



实现
    public function get alwaysCreateDisplayObject():Boolean
    public function set alwaysCreateDisplayObject(value:Boolean):void

baseline

属性 
baseline:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从锚点目标到控件的基线位置的垂直距离(以像素为单位)。

默认情况下,锚点目标是容器的内容区域的上边缘。在具有高级约束的布局中,目标可以是一个约束行。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“anchorTargetName:value”将属性值设置为一个字符串,如“row1:10”。



实现
    public function get baseline():Object
    public function set baseline(value:Object):void

baselinePosition

属性 
baselinePosition:Number  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

组件第一行文本的基线的 y 坐标。



实现
    public function get baselinePosition():Number

blendMode

属性 
blendMode:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

BlendMode 类中的一个值,用于指定要使用的混合模式。

默认值为 auto。



实现
    public function get blendMode():String
    public function set blendMode(value:String):void

相关 API 元素

bottom

属性 
bottom:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件的下边缘到锚点目标的下边缘的垂直距离(以像素为单位)。

默认情况下,锚点目标是容器的内容区域。在具有高级约束的布局中,目标可以是一个约束行。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“anchorTargetName:value”将属性值设置为一个字符串,如“row1:10”。



实现
    public function get bottom():Object
    public function set bottom(value:Object):void

depth

属性 
depth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

确定容器内各项目的呈示顺序。Spark 容器根据项目的 depth 属性确定这些项目的顺序,具有最低深度的项目在后面,具有较高深度的项目在前面。具有相同深度值的项目按照添加到容器中的顺序显示。



实现
    public function get depth():Number
    public function set depth(value:Number):void

designLayer

属性 
designLayer:DesignLayer

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指定与该可视元素关联的可选 DesignLayer 实例。

当分配一个 DesignLayer 时,可视元素在最终将自身的有效可视性或透明度提交给它的支持 DisplayObject(如果适用)时,必须考虑其父层的可视性和透明度。

可视元素必须侦听来自关联层的父项发出的 layerPropertyChange 通知。当层的 effectiveAlphaeffectiveVisibility 发生改变时,元素必须计算其有效可视性(或透明度)且相应地应用。

该属性不应在 MXML 内直接设置。

designLayer 属性不用于 z 轴顺序控件,请参见 depth



实现
    public function get designLayer():DesignLayer
    public function set designLayer(value:DesignLayer):void

displayObject

属性 
displayObject:DisplayObject  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

绘制此 IGraphicElement 所在的共享 DisplayObject。

实现程序不得在此创建 DisplayObject,而应在 createDisplayObject() 方法中创建。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get displayObject():DisplayObject

displayObjectSharingMode

属性 
displayObjectSharingMode:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指示此 IGraphicElement 与其显示对象之间的关联。IGraphicElementContainer 管理此属性,且值是 DisplayObjectSharingMode 枚举类之一。

  • DisplayObjectSharingMode.OWNS_UNSHARED_OBJECT 的值指示 IGraphicElement 专门拥有与其 displayObject 属性相对应的 DisplayObject。
  • DisplayObjectSharingMode.OWNS_SHARED_OBJECT 的值指示 IGraphicElement 拥有与其 displayObject 属性相对应的 DisplayObject,但其他 IGraphicElement 也正在使用/绘制到该显示对象。根据特定实现,IGraphicElement 可能会执行显示对象的某些管理。例如,基类 GraphicElement 会清除显示对象的转换,将其可见性、Alpha 等属性重置为其默认值,且还清除每个 validateDisplayList() 调用上的图形。
  • DisplayObjectSharingMode.USES_SHARED_OBJECT 的值指示 IGraphicElement 绘制到与其 displayObject 属性相对应的 DisplayObject。存在一个或多个绘制到相同 displayObject 的 IGraphicElement,且绘制的第一个元素将其模式设置为 DisplayObjectMode.OWNS_SHARED_OBJECT



实现
    public function get displayObjectSharingMode():String
    public function set displayObjectSharingMode(value:String):void

drawnDisplayObject

属性 
drawnDisplayObject:DisplayObject  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

GraphicElement 在其中绘制的实际 DisplayObject。这通常等效于 displayObject 属性。子类应该在此属性上(而不是在 displayObject 上)执行绘制命令。



实现
    protected function get drawnDisplayObject():DisplayObject

drawX

属性 
drawX:Number  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

应该绘制元素的 x 位置。



实现
    protected function get drawX():Number

drawY

属性 
drawY:Number  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

应该绘制元素的 y 位置。



实现
    protected function get drawY():Number

explicitHeight

属性 
explicitHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指定该组件在组件坐标中显式高度(以像素为单位)的数字。



实现
    public function get explicitHeight():Number
    public function set explicitHeight(value:Number):void

相关 API 元素

explicitMaxHeight

属性 
explicitMaxHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最大建议高度。此值采用组件坐标(以像素为单位)。



实现
    public function get explicitMaxHeight():Number
    public function set explicitMaxHeight(value:Number):void

相关 API 元素

explicitMaxWidth

属性 
explicitMaxWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最大建议宽度。此值采用组件坐标(以像素为单位)。



实现
    public function get explicitMaxWidth():Number
    public function set explicitMaxWidth(value:Number):void

相关 API 元素

explicitMinHeight

属性 
explicitMinHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最小建议高度。此值采用组件坐标(以像素为单位)。



实现
    public function get explicitMinHeight():Number
    public function set explicitMinHeight(value:Number):void

相关 API 元素

explicitMinWidth

属性 
explicitMinWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最小建议宽度。此值采用组件坐标(以像素为单位)。



实现
    public function get explicitMinWidth():Number
    public function set explicitMinWidth(value:Number):void

相关 API 元素

explicitWidth

属性 
explicitWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指定该组件在组件坐标中显式宽度(以像素为单位)的数字。



实现
    public function get explicitWidth():Number
    public function set explicitWidth(value:Number):void

相关 API 元素

filters

属性 
filters:Array

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

包含当前与图形元素关联的每个滤镜对象的索引数组。mx.filters 包中的类定义了可使用的特定滤镜。

getter 返回滤镜数组的副本。filters 属性值仅可以通过 setter 进行更改。



实现
    public function get filters():Array
    public function set filters(value:Array):void

相关 API 元素

hasComplexLayoutMatrix

属性 
hasComplexLayoutMatrix:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果 GraphicElement 具有任何非平移 (x,y) 转换属性,则返回 true。



实现
    protected function get hasComplexLayoutMatrix():Boolean

hasLayoutMatrix3D

属性 
hasLayoutMatrix3D:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果元素具有 3D 矩阵,则为 true

使用 hasLayoutMatrix3D,而不是调用和检查 getLayoutMatrix3D() 的返回值,因为该方法会返回一个有效的矩阵,即使元素是 2D 的也是如此。



实现
    public function get hasLayoutMatrix3D():Boolean

height

属性 
height:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的高度。

默认值为 0。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get height():Number
    public function set height(value:Number):void

horizontalCenter

属性 
horizontalCenter:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件中心到锚点目标的内容区域中心的水平距离(以像素为单位)。

默认锚点目标是容器本身。

在具有高级约束的布局中,锚点目标可以是一个约束列。那么,内容区域就是前一列(或容器侧)与目标列之间的空间。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“constraintColumnId:value”将属性值设置为一个字符串,如“col1:10”。



实现
    public function get horizontalCenter():Object
    public function set horizontalCenter(value:Object):void

id

属性 
id:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

组件的标识。



实现
    public function get id():String
    public function set id(value:String):void

includeInLayout

属性 
includeInLayout:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指定此元素是否包含在父代的布局中。

默认值为 true。



实现
    public function get includeInLayout():Boolean
    public function set includeInLayout(value:Boolean):void

is3D

属性 
is3D:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

当元素为 3D 时,则为 true。元素也可以是 3D 的,因为它具有 3D 转换属性或 3D 布局后转换偏移,或二者都有。



实现
    public function get is3D():Boolean

layoutDirection

属性 
layoutDirection:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指定元素的所需布局方向:LayoutDirection.LTR(从左到右)、LayoutDirection.RTL(从右到左)或 null(继承)。此属性通常按继承样式回退。如果指定 null,则 layoutDirection 样式将设置为 undefined。类似 GraphicElement 的类(实现 ILayoutDirectionElement,但不支持样式)必须另外针对此属性支持 null 值,这意味着 layoutDirection 必须从其父代继承。



实现
    public function get layoutDirection():String
    public function set layoutDirection(value:String):void

layoutFeatures

属性 
protected var layoutFeatures:AdvancedLayoutFeatures

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

包含 GraphicElement 实现转换和分层支持的方法的所有实现细节。大多数情况下,应该不必修改此属性。

left

属性 
left:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件的左边缘到锚点目标的左边缘的水平距离(以像素为单位)。

默认情况下,锚点目标是容器的内容区域。在具有高级约束的布局中,目标可以是一个约束列。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“anchorTargetName:value”将属性值设置为一个字符串,如“col1:10”。



实现
    public function get left():Object
    public function set left(value:Object):void

luminosityClip

属性 
luminosityClip:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

控制发光度遮罩是否剪辑设置了遮罩的内容的属性。只有图形元素应用了类型为 MaskType.LUMINOSITY 的遮罩,此属性才会起作用。

默认值为 false。



实现
    public function get luminosityClip():Boolean
    public function set luminosityClip(value:Boolean):void

相关 API 元素

luminosityInvert

属性 
luminosityInvert:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

控制计算由发光度遮罩设置遮罩的图形元素的 RGB 颜色值的属性。如果为 true,则遮罩中的相应区域将反转并乘以源内容中像素的 RGB 颜色值。如果为 false,则直接使用源内容中像素的 RGB 颜色值。

默认值为 false。



实现
    public function get luminosityInvert():Boolean
    public function set luminosityInvert(value:Boolean):void

相关 API 元素

mask

属性 
mask:DisplayObject

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

调用显示对象被指定的 mask 对象遮罩。如果遮罩显示对象不在显示列表上,则会将其作为 displayObject 的子项添加到显示列表中。但不绘制 mask 对象本身。将 mask 设置为 null 可删除遮罩。若要将另一个 GraphicElement 用作遮罩,请在 Group 或其他容器中包装 GraphicElement。



实现
    public function get mask():DisplayObject
    public function set mask(value:DisplayObject):void

相关 API 元素

maskType

属性 
maskType:String

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

定义将遮罩应用到 GraphicElement 的方式。

可能的值为 MaskType.CLIPMaskType.ALPHAMaskType.LUMINOSITY

剪辑遮罩

遮罩处于剪辑模式下时,会将剪辑遮罩减少至 1 位。这意味着遮罩将不会影响源内容中像素的不透明度;它要么保留值不进行修改(如果遮罩中的相应像素具有非零 Alpha 值),要么使其完全透明(如果遮罩像素值为零 Alpha 值)。

使用剪辑遮罩时,仅遮罩定义的实际路径与形状矢量和填充用于确定源内容上的效果。会忽略遮罩上定义的笔触和位图滤镜。会将遮罩中任何填充的区域认为已填充,并呈示源内容。填充的类型和参数不相关;遮罩中的纯色填充、渐变填充或位图填充将全部呈示基础源内容,而与遮罩填充的 Alpha 值无关。

在剪辑遮罩中使用时,BitmapGraphics 被视为位图填充的矩形。结果,当遮罩的一部分(位图)按与相等尺寸的纯色填充矩形相同的方式影响遮罩时,源位图的 Alpha 通道不相关。

Alpha 遮罩

在 Alpha 模式下,会将源内容中的每个像素的不透明度与遮罩的相应区域的不透明度相乘。即,对于由不透明度为 0.5 的区域遮罩的、源内容中不透明度为 1 的像素,其结果不透明度将为 0.5。对于由不透明度为 0.5 的区域遮罩的、不透明度为 0.8 的源像素,其结果不透明度为 0.4。

从概念上讲,Alpha 遮罩等效于将转换的遮罩和源内容呈示到单独的 RGBA 表面中,并将遮罩内容的 Alpha 通道与源内容的 Alpha 通道相乘。在合成到源内容的表面中之前,会将所有遮罩内容呈示到其表面中。结果,所有 FXG 功能(如笔触、位图滤镜和填充不透明度)将影响最终合成的内容。

处于 Alpha 模式下时,会将任何位图数据的 Alpha 通道正常合成到遮罩 Alpha 通道中,并将影响最终呈示的内容。对于 BitmapGraphics 和位图填充的形状与路径,这保持 true。

发光度遮罩

发光度遮罩有时称为“柔化遮罩”,除以下方面外其作用极其类似于 Alpha 遮罩:源内容中像素的不透明度和 RGB 颜色值与遮罩中相应区域的不透明度和 RGB 颜色值相乘。

从概念上讲,发光度遮罩等效于将转换的遮罩和源内容呈示到单独的 RGBA 表面中,并将遮罩内容的 Alpha 通道和 RGB 颜色值与源内容的 Alpha 通道和 RGB 颜色值相乘。在合成到源内容的表面中之前,会将所有遮罩内容呈示到其表面中。结果,所有 FXG 功能(如笔触、位图滤镜和填充不透明度)将影响最终合成的内容。

发光度遮罩不是 Flash 的特有功能,但在诸如 Adobe Illustrator 和 Adobe Photoshop 等 Adobe Creative Suite 工具中通用。为了实现 Flash 呈示内容中发光度遮罩的视觉效果,指定发光度遮罩的图形元素实际上会实例化模仿发光度遮罩在 Adobe Creative Suite 工具中呈示时其可视外观的着色器滤镜。

由发光度遮罩设置遮罩的对象可以设置用于控制遮罩 RGB 颜色值和剪辑的属性。请参阅 luminosityInvert 和 luminosityClip 属性。

默认值为 MaskType.CLIP。



实现
    public function get maskType():String
    public function set maskType(value:String):void

相关 API 元素

spark.core.MarkType

maxHeight

属性 
maxHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最大建议高度。此值采用组件坐标(以像素为单位)。此属性的默认值由组件开发人员设置。

组件开发人员使用此属性设置组件高度的上限。

如果应用程序开发人员覆盖 maxHeight 的默认值,则将在 explicitMaxHeight 中存储新值。不会更改 maxHeight 的默认值。因此,在布局过程中,如果应用程序开发人员明确设置了 maxHeight,则对组件最大建议高度使用 explicitMaxHeight 的值。如果用户未明确设置 maxHeight,则使用默认值。

容器使用此值计算组件的大小和位置。组件本身确定其默认大小时不会使用此值。因此,如果父项为 Container,则此属性可能不会产生任何效果,要么就是容器在此属性中不起作用。由于此值位于组件坐标中,因此与其父项相关的真正 maxHeightscaleY 属性影响。有些组件从理论上没有高度限制。在这些情况下,可将其 maxHeight 设置为 UIComponent.DEFAULT_MAX_HEIGHT



实现
    public function get maxHeight():Number
    public function set maxHeight(value:Number):void

maxWidth

属性 
maxWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最大建议宽度。此值采用组件坐标(以像素为单位)。此属性的默认值由组件开发人员设置。

组件开发人员使用此属性设置组件宽度的上限。

如果应用程序开发人员覆盖 maxWidth 的默认值,则将在 explicitMaxWidth 中存储新值。不会更改 maxWidth 的默认值。因此,在布局过程中,如果应用程序开发人员明确设置了 maxWidth,则对组件最大建议宽度使用 explicitMaxWidth 的值。如果用户未明确设置 maxWidth,则使用默认值。

容器使用此值计算组件的大小和位置。组件本身确定其默认大小时不会使用此值。因此,如果父项为 Container,则此属性可能不会产生任何效果,要么就是容器在此属性中不起作用。由于此值位于组件坐标中,因此与其父项相关的真正 maxWidthscaleX 属性影响。有些组件从理论上没有宽度限制。在这些情况下,可将其 maxWidth 设置为 UIComponent.DEFAULT_MAX_WIDTH



实现
    public function get maxWidth():Number
    public function set maxWidth(value:Number):void

measuredHeight

属性 
measuredHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

组件的默认高度(以像素为单位)。此值由 measure() 方法设置。



实现
    public function get measuredHeight():Number
    public function set measuredHeight(value:Number):void

measuredWidth

属性 
measuredWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

组件的默认宽度(以像素为单位)。此值由 measure() 方法设置。



实现
    public function get measuredWidth():Number
    public function set measuredWidth(value:Number):void

measuredX

属性 
measuredX:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

相对于元素的原点的默认测量界限左上角。



实现
    public function get measuredX():Number
    public function set measuredX(value:Number):void

measuredY

属性 
measuredY:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

相对于元素的原点的默认测量界限左上角。



实现
    public function get measuredY():Number
    public function set measuredY(value:Number):void

minHeight

属性 
minHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最小建议高度。此值采用组件坐标(以像素为单位)。默认值取决于组件的实现方式。

如果应用程序开发人员设置 minHeight 的值,则将在 explicitMinHeight 中存储新值。不会更改 minHeight 的默认值。因此,在布局过程中,如果应用程序开发人员明确设置了 minHeight,则对组件最小建议高度使用 explicitMinHeight 的值。如果应用程序开发人员未明确设置 minHeight,则使用 measuredMinHeight 的值。

容器使用此值计算组件的大小和位置。组件本身确定其默认大小时不会使用此值。因此,如果父项为 Container,则此属性可能不会产生任何效果,要么就是容器在此属性中不起作用。由于此值位于组件坐标中,因此与其父项相关的真正 minHeightscaleY 属性影响。



实现
    public function get minHeight():Number
    public function set minHeight(value:Number):void

minWidth

属性 
minWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

布局过程中父级要考虑的组件最小建议宽度。此值采用组件坐标(以像素为单位)。默认值取决于组件的实现方式。

如果应用程序开发人员设置 minWidth 的值,则将在 explicitMinWidth 中存储新值。不会更改 minWidth 的默认值。因此,在布局过程中,如果应用程序开发人员明确设置了 minWidth,则对组件最小建议宽度使用 explicitMinWidth 的值。如果应用程序开发人员未明确设置 minWidth,则使用 measuredMinWidth 的值。

容器使用此值计算组件的大小和位置。组件本身确定其默认大小时不会使用此值。因此,如果父项为 Container,则此属性可能不会产生任何效果,要么就是容器在此属性中不起作用。由于此值位于组件坐标中,因此与其父项相关的真正 minWidthscaleX 属性影响。



实现
    public function get minWidth():Number
    public function set minWidth(value:Number):void

needsDisplayObject

属性 
needsDisplayObject:Boolean  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果元素需要一个独占 DisplayObject,则为 true。开发人员通常不直接调用此方法,而会在其子类中覆盖它以指示需要一个独占 DisplayObject。通常子类在必须设置其属性时需要一个 DisplayObject。这样的 DisplayObject 属性的一些示例有:filtersblendModemaskrotationalpha



实现
    protected function get needsDisplayObject():Boolean

owner

属性 
owner:DisplayObjectContainer

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

此 IVisualElement 对象的所有者。默认情况下,它是此 IVisualElement 对象的父代。不过,如果此 IVisualElement 对象是由其父代弹出的一个子组件(如 ComboBox 控件的下拉列表),则所有者是弹出此 IVisualElement 对象的组件。

此属性并非由 Flex 管理,而由各个组件管理。因此,如果使用 PopUpManger.createPopUp()PopUpManger.addPopUp() 方法弹出一个子组件,则应该将该子组件的 owner 属性设置为弹出它的组件。

默认值为 parent 属性的值。



实现
    public function get owner():DisplayObjectContainer
    public function set owner(value:DisplayObjectContainer):void

parent

属性 
parent:DisplayObjectContainer  [只读]

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

此组件的父容器或组件。只有可视元素应该具有 parent 属性。非可视项目应该使用其他属性引用其所属对象。一般而言,非可视对象使用 owner 属性引用其所属对象。



实现
    public function get parent():DisplayObjectContainer

percentHeight

属性 
percentHeight:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

以组件父代大小百分比的方式指定组件高度。允许的值为 0-100。设置 heightexplicitHeight 属性会将此属性重置为 NaN。

仅当先前已设置此属性时,此属性才会返回数值;它不会以百分比形式反映组件的确切大小。



实现
    public function get percentHeight():Number
    public function set percentHeight(value:Number):void

percentWidth

属性 
percentWidth:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

以组件父代大小百分比的方式指定组件宽度。允许的值为 0-100。默认值为 NaN。设置 widthexplicitWidth 属性会将此属性重置为 NaN。

仅当先前已设置此属性时,此属性才会返回数值;它不会以百分比形式反映组件的确切大小。

对于 UITextField 控件,此属性始终设置为 NaN。

在 Spark 布局中使用时,该属性用于计算组件在缩放和旋转之后的边界宽度。例如,如果组件旋转 90 度,则指定 percentWidth 将影响组件高度。



实现
    public function get percentWidth():Number
    public function set percentWidth(value:Number):void

postLayoutTransformOffsets

属性 
postLayoutTransformOffsets:mx.geom:TransformOffsets

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

定义能够应用于对象转换且在一定程度上对其父布局不可视的一组调整。

例如,如果希望某个布局为将旋转 90 度的某个对象进行调整,请设置该对象的 rotation 属性。如果希望布局为要旋转的对象进行调整,请设置其 postLayoutTransformOffsets.rotationZ 属性。



实现
    public function get postLayoutTransformOffsets():mx.geom:TransformOffsets
    public function set postLayoutTransformOffsets(value:mx.geom:TransformOffsets):void

right

属性 
right:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件的右边缘到锚点目标的右边缘的水平距离(以像素为单位)。

默认情况下,锚点目标是容器的内容区域。在具有高级约束的布局中,目标可以是一个约束列。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“anchorTargetName:value”将属性值设置为一个字符串,如“col1:10”。



实现
    public function get right():Object
    public function set right(value:Object):void

rotation

属性 
rotation:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指示元素从转换点的旋转(以度为单位)。



实现
    public function get rotation():Number
    public function set rotation(value:Number):void

rotationX

属性 
rotationX:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指示 element 实例相对于 3D 父容器距离其原始方向的 x 轴旋转(以度为单位)。从 0 到 180 的值表示顺时针方向旋转;从 0 到 -180 的值表示逆时针方向旋转。对于此范围之外的值,可以通过加上或减去 360 获得该范围内的值。在计算过程中,Flex 的任一 2D 布局都会忽略此属性。



实现
    public function get rotationX():Number
    public function set rotationX(value:Number):void

rotationY

属性 
rotationY:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

表示 DisplayObject 实例相对于 3D 父容器距离其原始方向的 y 轴旋转(以度为单位)。从 0 到 180 的值表示顺时针方向旋转;从 0 到 -180 的值表示逆时针方向旋转。对于此范围之外的值,可以通过加上或减去 360 获得该范围内的值。在计算过程中,Flex 的任一 2D 布局都会忽略此属性。



实现
    public function get rotationY():Number
    public function set rotationY(value:Number):void

rotationZ

属性 
rotationZ:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

指示元素从转换点的旋转(以度为单位)。



实现
    public function get rotationZ():Number
    public function set rotationZ(value:Number):void

scaleX

属性 
scaleX:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从转换点开始应用的元素的水平缩放比例(百分比)。



实现
    public function get scaleX():Number
    public function set scaleX(value:Number):void

scaleY

属性 
scaleY:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从转换点开始应用的元素的垂直缩放比例(百分比)。



实现
    public function get scaleY():Number
    public function set scaleY(value:Number):void

scaleZ

属性 
scaleZ:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从转换点开始应用的元素的 z 缩放比例(百分比)。



实现
    public function get scaleZ():Number
    public function set scaleZ(value:Number):void

top

属性 
top:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件的上边缘到锚点目标的上边缘的垂直距离(以像素为单位)。

默认情况下,锚点目标是容器的内容区域。在具有高级约束的布局中,目标可以是一个约束行。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“anchorTargetName:value”将属性值设置为一个字符串,如“row1:10”。



实现
    public function get top():Object
    public function set top(value:Object):void

transform

属性 
transform:flash.geom:Transform

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

一个对象,具有与显示对象的矩阵、颜色转换和像素范围有关的属性。在 Transform 类的条目中对特定属性 matrix、colorTransform 和三个只读属性(concatenatedMatrixconcatenatedColorTransformpixelBounds)进行了说明。

transform 对象的每个属性本身都是一个对象。此概念很重要,因为设置 matrix 或 colorTransform 对象的新值的唯一方法是,创建新对象并将该对象复制到 transform.matrix 或 transform.colorTransform 属性。

例如,要增加显示对象矩阵的 tx 值,您必须制作整个矩阵对象的副本,然后将新对象复制到 transform 对象的 matrix 属性中:


    var myMatrix:Matrix = myDisplayObject.transform.matrix;  
    myMatrix.tx += 10; 
    myDisplayObject.transform.matrix = myMatrix;  
    

不能直接设置 tx 属性。下面的代码对 myDisplayObject 不起作用:


    myDisplayObject.transform.matrix.tx += 10;
    

您也可以复制整个 transform 对象并为其赋予另一个显示对象的 transform 属性。例如,下面的代码将整个 transform 对象从 myOldDisplayObj 复制到 myNewDisplayObj

myNewDisplayObj.transform = myOldDisplayObj.transform;

现在,新显示对象 myNewDisplayObj 与旧显示对象 myOldDisplayObj 具有相同的矩阵、颜色转换和像素范围值。

请注意,AIR for TV 设备使用硬件加速(如果可用)进行颜色转换。



实现
    public function get transform():flash.geom:Transform
    public function set transform(value:flash.geom:Transform):void

transformX

属性 
transformX:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

元素的 x 位置转换点。



实现
    public function get transformX():Number
    public function set transformX(value:Number):void

transformY

属性 
transformY:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

元素的 y 位置转换点。



实现
    public function get transformY():Number
    public function set transformY(value:Number):void

transformZ

属性 
transformZ:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

元素的 z 位置转换点。



实现
    public function get transformZ():Number
    public function set transformZ(value:Number):void

verticalCenter

属性 
verticalCenter:Object

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

从组件中心到锚点目标的内容区域中心的垂直距离(以像素为单位)。

默认锚点目标是容器本身。

在具有高级约束的布局中,锚点目标可以是一个约束行。那么,内容区域就是前一行(或容器侧)与目标行之间的空间。

将属性设置为数字或数字字符串(如“10”)会指定使用默认锚点目标。

要指定锚点目标,请使用格式“constraintColumnId:value”将属性值设置为一个字符串,如“row1:10”。



实现
    public function get verticalCenter():Object
    public function set verticalCenter(value:Object):void

visible

属性 
visible:Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

控制此可视元素的可见性。如果为 true,则对象可见。

如果对象不可视,但将 includeInLayout 属性设置为 true,则该对象占用容器中的空间,但不可视。

如果 visible 设置为 true,对象未必可视,由于其大小以及容器剪裁是否启用。

visible 设置为 false 应该会禁止组件获取焦点。



实现
    public function get visible():Boolean
    public function set visible(value:Boolean):void

width

属性 
width:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的宽度。

默认值为 0。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get width():Number
    public function set width(value:Number):void

x

属性 
x:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的 x 位置。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get x():Number
    public function set x(value:Number):void

y

属性 
y:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的 y 位置。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get y():Number
    public function set y(value:Number):void

z

属性 
z:Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

图形元素的 z 位置。

此属性可用作数据绑定的源。修改此属性后,将调度 propertyChange 事件。



实现
    public function get z():Number
    public function set z(value:Number):void
方法详细信息

canShareWithNext

()方法
public function canShareWithNext(element:IGraphicElement):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果此 IGraphicElement 是兼容的且可以与序列中下一个 IGraphicElement 共享显示对象,则返回 true

参数

element:IGraphicElement — 序列中在此元素之后的元素。

返回
Boolean — 此元素与序列中的上一个元素兼容时返回 true

canShareWithPrevious

()方法 
public function canShareWithPrevious(element:IGraphicElement):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果此 IGraphicElement 是兼容的且可以与序列中上一个 IGraphicElement 共享显示对象,则返回 true

在某些情况下,调用 setSharedDisplayObject() 方法时会将该元素本身传递到 IGraphicElementContainer。在这些情况下,不会调用此方法。

参数

element:IGraphicElement — 序列中在此元素之前的元素。

返回
Boolean — 此元素与序列中的上一个元素兼容时返回 true

canSkipMeasurement

()方法 
protected function canSkipMeasurement():Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

确定是否可以跳过对 measure() 方法的调用。

返回
Boolean — 当 measureSizes() 方法可以跳过对 measure() 方法的调用时,返回 true。例如,同时设置 explicitWidthexplicitHeight 属性时,它通常为 true。对于路径,当路径的界限未改变时,此为 true

commitProperties

()方法 
protected function commitProperties():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

处理在元素上设置的属性。此方法是一种高级方法,可在创建子类时覆盖。

您无需直接调用此方法。当您使用 addElement() 方法向 IGraphicElementContainer 容器(例如,组)中添加元素时,或调用元素的 invalidateProperties() 方法时,Flex 会调用 commitProperties() 方法。应在调用 measure() 方法之前调用 commitProperties() 方法。这允许您设置 measure() 方法可能会用到的属性值。

某些元素具有可彼此交互的属性。通常,最好在启动时一次性处理所有这些属性以避免重复工作。

createDisplayObject

()方法 
public function createDisplayObject():DisplayObject

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

创建一个新 DisplayObject 以用于绘制此 IGraphicElement。

随后对 displayObject 属性的 getter 的调用必须返回相同的显示对象。

在创建 DisplayObject 之后,父 IGraphicElementContainer 将沿着显示对象传递到序列中剩余的元素。

IGraphicElementContainer 确保只在需要时调用此方法。

如果该元素希望参与 DisplayObject 共享,则新的 DisplayObject 必须实现 IShareableDisplayObject。此接口供 IGraphicElementContainer 使用,用于管理图形元素序列的失效和重新绘制,开发人员通常不能直接使用该接口。

若要重新评估共享序列,请在 IGraphicElementContainer 上调用 invalidateGraphicElementSharing() 方法。

要强制 IGraphicElementContainer 从其显示列表删除元素的当前 DisplayObject,并重新计算显示对象共享,请调用 IGraphicElementContainer 上的 discardDisplayObject() 方法。

返回
DisplayObject — 创建的显示对象。。

getBoundsXAtSize

()方法 
public function getBoundsXAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

按指定的元素大小,返回元素边界的 x 坐标。

如果将元素大小调整为特定尺寸,则此方法通常在调用 measure() 方法期间由布局使用,以预测该元素将来的位置。

参数

width:Number — 元素的界限宽度,或要使用首选宽度的 NaN。
 
height:Number — 元素的界限高度,或要使用首选高度的 NaN。
 
postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素边框左上角的 x 坐标。边框位于元素的父坐标空间中,并基于指定的边界大小、布局位置和布局转换矩阵进行计算。

返回
Number — 按指定的元素大小,元素边界的 x 坐标。

getBoundsYAtSize

()方法 
public function getBoundsYAtSize(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

按指定的元素大小,返回元素边界的 y 坐标。如果将元素大小调整为特定尺寸,则此方法通常在调用 measure() 期间由布局使用,以预测该元素将来的位置。

参数

width:Number — 元素的界限宽度,或要使用首选宽度的 NaN。
 
height:Number — 元素的界限高度,或要使用首选高度的 NaN。
 
postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素边框左上角的 y 坐标。边框位于元素的父坐标空间中,并基于指定的边界大小、布局位置和布局转换矩阵进行计算。

返回
Number — 按指定的元素大小,元素边界的 y 坐标。

getLayoutBoundsHeight

()方法 
public function getLayoutBoundsHeight(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的布局高度。这是元素在屏幕上进行绘制时所用的大小。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素的边框宽度。边框位于元素的父坐标空间中,并基于元素的布局大小和布局转换矩阵进行计算。

返回
Number — 元素的布局高度。

getLayoutBoundsWidth

()方法 
public function getLayoutBoundsWidth(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的布局宽度。这是元素在屏幕上进行绘制时所用的大小。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素的边框宽度。边框位于元素的父坐标空间中,并基于元素的布局大小和布局转换矩阵进行计算。

返回
Number — 元素的布局宽度。

getLayoutBoundsX

()方法 
public function getLayoutBoundsX(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素在屏幕上进行绘制时所用的 x 坐标。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素边框左上角的 x 坐标。边框位于元素的父坐标空间中,并基于元素的布局大小、布局位置和布局转换矩阵进行计算。

返回
Number — 元素在屏幕上进行绘制时所用的 x 坐标。

getLayoutBoundsY

()方法 
public function getLayoutBoundsY(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素在屏幕上进行绘制时所用的 y 坐标。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素边框左上角的 y 坐标。边框位于元素的父坐标空间中,并基于元素的布局大小、布局位置和布局转换矩阵进行计算。

返回
Number — 元素在屏幕上进行绘制时所用的 y 坐标。

getLayoutMatrix

()方法 
public function getLayoutMatrix():Matrix

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回用于相对于其同级组件计算组件的布局的转换矩阵。

此矩阵通常由组件的 2D 属性(如 xyrotationscaleXscaleYtransformXtransformY)定义。某些组件可以具有其他转换属性,这些属性在布局矩阵的顶层上应用,以确定最终计算的矩阵。例如,UIComponent 可定义 offsets 属性。

返回
Matrix — 此元素的布局转换 Matrix。不要直接修改返回值;请调用 setLayoutMatrix() 方法。

getLayoutMatrix3D

()方法 
public function getLayoutMatrix3D():Matrix3D

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回此元素的布局转换 Matrix3D。

此矩阵通常由组件的转换属性定义,例如,xyzrotationXrotationYrotationZscaleXscaleYscaleZtransformXtransformY。某些组件可以具有其他转换属性,这些属性在布局矩阵的顶层上应用,以确定最终计算的矩阵。例如,UIComponent 可定义 offsets 属性。

返回
Matrix3D — 此元素的布局转换 Matrix3D。不要直接修改返回值,请调用 setLayoutMatrix() 方法。

getMaxBoundsHeight

()方法 
public function getMaxBoundsHeight(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的最大高度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素的边框高度。边框位于元素的父坐标空间中,并基于元素的最大大小和布局转换矩阵进行计算。

返回
Number — 元素的最大高度。

getMaxBoundsWidth

()方法 
public function getMaxBoundsWidth(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的最大宽度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransform 为 true 时,该方法会返回元素的边框宽度。边框位于元素的父坐标空间中,并基于元素的最大大小和布局转换矩阵进行计算。

返回
Number — 元素的最大宽度。

getMinBoundsHeight

()方法 
public function getMinBoundsHeight(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的最小高度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransformtrue 时,该方法会返回元素的边框高度。边框位于元素的父坐标空间中,并基于元素的最小大小和布局转换矩阵进行计算。

返回
Number — 元素的最大高度。

getMinBoundsWidth

()方法 
public function getMinBoundsWidth(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的最小宽度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransformtrue 时,该方法会返回元素的边框宽度。边框位于元素的父坐标空间中,并基于元素的最小大小和布局转换矩阵进行计算。

返回
Number — 元素的最大宽度。

getPreferredBoundsHeight

()方法 
public function getPreferredBoundsHeight(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的首选高度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransformtrue 时,该方法会返回元素的边框高度。边框位于元素的父坐标空间中,并基于元素的首选大小和布局转换矩阵进行计算。

返回
Number — 返回元素的首选高度。首选高度通常基于默认元素大小和任何显式覆盖。对于 UIComponent,该值与 getExplicitOrMeasuredHeight() 方法所返回的值相同。

getPreferredBoundsWidth

()方法 
public function getPreferredBoundsWidth(postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素的首选宽度。

参数

postLayoutTransform:Boolean (default = true) — 当 postLayoutTransformtrue 时,该方法会返回元素的边框宽度。边框位于元素的父坐标空间中,并基于元素的首选大小和布局转换矩阵进行计算。

返回
Number — 返回元素的首选宽度。首选宽度通常基于默认元素大小和任何显式覆盖。对于 UIComponent,该值与 getExplicitOrMeasuredWidth() 方法所返回的值相同。

getStrokeExtents

()方法 
protected function getStrokeExtents(postLayoutTransform:Boolean = true):Rectangle

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

返回元素界限每一侧上的笔触所占据的像素数。

参数

postLayoutTransform:Boolean (default = true) — 如果为 true,则会在父坐标空间中计算笔触范围(在应用元素的转换之后)。

返回
Rectangle — 笔触范围矩形。矩形的 leftrighttopbottom 属性表示元素边框的各侧的笔触范围。

initialized

()方法 
public function initialized(document:Object, id:String):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

如果 GraphicElement 是使用 MXML 标签创建的,则由 MXML 编译器自动调用。如果通过 ActionScript 创建 GraphicElement,则必须手动设置 ID 属性。

参数

document:Object — 包含此 GraphicElement(未使用)的 MXML 文档。
 
id:String — 此 GraphicElement 的 MXML ID。

invalidateDisplayList

()方法 
public function invalidateDisplayList():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

调用此方法将导致在呈示显示列表前调用元素的 validateDisplayList() 方法。

子类应该在 updateDisplayList() 中覆盖和完成其工作。

invalidateDisplayObjectSharing

()方法 
protected function invalidateDisplayObjectSharing():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

通知主机此元素已更改且需要更新其图层的实用程序方法。

invalidateLayoutDirection

()方法 
public function invalidateLayoutDirection():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

当某元素的 layoutDirection 更改或其父代的 layoutDirection 更改时,该元素必须调用该方法。如果它们不同,该方法负责镜像元素的内容以及更新元素的布局后转换,以便子代继承镜像的坐标系。IVisualElement 通常通过以下方法实现镜像:使用 postLayoutTransformOffsets 按 -1 缩放 X 轴以及按元素宽度平移原点的 x 坐标。此“镜像”转换的净效果是反转 X 轴增加的方向,而不更改元素相对于其父代的原点的位置。

invalidateParentSizeAndDisplayList

()方法 
protected function invalidateParentSizeAndDisplayList():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

此对象影响其布局时(includeInLayout 为 true),使父代大小和显示列表失效的 Helper 方法。

invalidateProperties

()方法 
public function invalidateProperties():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

调用此方法将导致在呈示显示列表前调用元素的 validateProperties() 方法。

子类应该在 commitProperties() 中完成其工作。

invalidateSize

()方法 
public function invalidateSize():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

调用此方法将导致在呈示显示列表前调用元素的 validateSize() 方法。

子类应该在 measure() 中覆盖和完成其测量。默认情况下,设置 explicitWidthexplicitHeight 时,将不会调用 measure()。若要覆盖此默认行为,子类应该覆盖 skipMeasure()

localToGlobal

()方法 
public function localToGlobal(point:Point):Point

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

将 Point 对象从对象的(局部)坐标转换为舞台(全局)坐标。

此方法允许您转换任何给定的 x 和 y 坐标,将从相对于特定对象原点 (0,0) 的值(局部坐标)转换为相对于舞台原点的值(全局坐标)。

要使用此方法,请先创建 Point 类的一个实例。您指定的 x 和 y 值表示局部坐标,因为它们是相对于对象原点。

然后,您可以将创建的 Point 实例作为参数传递给 localToGlobal() 方法。该方法会返回一个新的 Point 对象,该对象具有相对于舞台原点(而不是对象原点)的 x 和 y 值。

参数

point:Point — 使用 Point 类创建的点的名称或标识符,指定 x 和 y 坐标作为属性。

返回
Point — 具有相对于舞台的坐标的 Point 对象。

相关 API 元素

measure

()方法 
protected function measure():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

计算元素的默认大小。此方法是一种高级方法,可在创建 GraphicElement 的子类时覆盖。

您无需直接调用此方法。使用 addElement() 方法将元素添加到 IGraphicElementContainer 容器(例如,组)时,以及调用元素的 invalidateSize() 方法时,Flex 会调用 measure() 方法。

默认情况下您会设置元素的显式高度和显式宽度,Flex 不会调用 measure() 方法,即使您显式调用 invalidateSize() 方法也不例外。若要覆盖此行为,请覆盖 skipMeasure() 方法。

覆盖此方法时,必须设置 measuredWidthmeasuredHeight 属性以定义默认大小。您可以选择设置 measuredXmeasuredY 属性以定义相对于元素的原点的默认测量界限左上角。

measure() 的概念点供元素提供其自己的原始或固有界限作为默认值。因此,measuredWidthmeasuredHeight 属性应由以下几个因素确定:

  • 组件需要显示的文本量。
  • 组件所显示的 JPEG 图像的大小。

某些情况下,确定默认值的方式并不固定。例如,对于一个简单的 GreenCircle 元素,可能只需在其 measure() 方法中设置 measuredWidth = 100 和 measuredHeight = 100 便可提供合理的默认大小。而在其他情况下(例如 TextArea),相应计算(例如查找合适的宽度和高度,使其刚好适合显示所有文本并拥有黄金矩形的高宽比)所耗费的时间可能会过长。

measure() 的默认实现会将 measuredWidthmeasuredHeightmeasuredXmeasuredY 属性的值设置为 0

parentChanged

()方法 
public function parentChanged(value:IGraphicElementContainer):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

将 IGraphicElement 添加到主机组件或从主机组件将其删除时由 IGraphicElementContainer 调用。

您通常无需调用此方法。

参数

value:IGraphicElementContainer — 该 IGraphicElementIGraphicElementContainer

preferredHeightPreTransform

()方法 
protected function preferredHeightPreTransform():Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

用于 ILayoutElement 接口的实现,返回显式度量的高度预转换。

返回
Number — 显式度量的高度,预转换。

preferredWidthPreTransform

()方法 
protected function preferredWidthPreTransform():Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

用于 ILayoutElement 接口的实现,返回测量宽度预转换的显式。

返回
Number — 显式度量的高度,预转换。

setLayoutBoundsPosition

()方法 
public function setLayoutBoundsPosition(newBoundsX:Number, newBoundsY:Number, postLayoutTransform:Boolean = true):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

设置元素在屏幕上进行绘制时所用的坐标。

请注意,调用 setLayoutBoundSize() 方法会影响布局位置,因此请在调用 setLayoutBoundSize() 之后再调用 setLayoutBoundPosition()

参数

newBoundsX:Number — 边框左上角的 X 坐标。
 
newBoundsY:Number — 边框左上角的 Y 坐标。
 
postLayoutTransform:Boolean (default = true) — 当 postLayoutTransformtrue 时,元素的定位方式为:其边框的左上角为 (x, y)。边框位于元素的父坐标空间中,并基于元素的布局大小、布局位置和布局转换矩阵进行计算。

setLayoutBoundsSize

()方法 
public function setLayoutBoundsSize(width:Number, height:Number, postLayoutTransform:Boolean = true):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

设置元素的布局大小。这是元素在屏幕上进行绘制时所用的大小。

如果 width 和/或 height 参数尚未指定 (NaN),则 Flex 会将该元素的布局大小设置为首选宽度和/或首选高度。

请注意,调用 setLayoutBoundSize() 方法会影响布局位置,因此请在调用 setLayoutBoundSize() 之后再调用 setLayoutBoundPosition()

参数

width:Number — 元素的布局宽度。
 
height:Number — 元素的布局高度。
 
postLayoutTransform:Boolean (default = true) — 如果 postLayoutTransform 为 true,则指定的大小就是元素的边框的大小。边框位于元素的父坐标空间中,并基于元素的布局大小、布局位置和布局转换矩阵进行计算。

setLayoutMatrix

()方法 
public function setLayoutMatrix(value:Matrix, invalidateLayout:Boolean):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

设置用于相对于其同级组件计算组件的布局大小和位置的转换 Matrix。

此矩阵通常由组件的 2D 属性(如 xyrotationscaleXscaleYtransformXtransformY)定义。某些组件可以具有其他转换属性,这些属性在布局矩阵的顶层上应用,以确定最终计算的矩阵。例如,UIComponent 可定义 offsets

请注意,在父坐标中计算时,布局 Matrix 是在 getPreferredSize()getMinSize()getMaxSize()getLayoutSize() 方法中进行分解的;在父坐标和子坐标中计算时,布局 Matrix 是在 getLayoutPosition() 中进行分解的。计算转换矩阵的布局通常会显式调用此方法,并使用子坐标中的大小。调用此方法的布局会将 false 传递给 invalidateLayout() 方法,这样不会触发后续的布局传递。

参数

value:Matrix — 矩阵。
 
invalidateLayout:Boolean — 设置为 true,将使父容器重新布局其子代。通常情况下,会将 true 传递给 invalidateLayout() 方法。

setLayoutMatrix3D

()方法 
public function setLayoutMatrix3D(value:Matrix3D, invalidateLayout:Boolean):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

设置用于计算组件相对于其同级组件的布局大小和位置的转换 Matrix3D。

此矩阵通常由组件的转换属性定义,例如,xyzrotationXrotationYrotationZscaleXscaleYscaleZtransformXtransformY。某些组件可以具有其他转换属性,这些属性在布局矩阵的顶层上应用,以确定最终计算的矩阵。例如,UIComponent 可定义 offsets 属性。

请注意,在父坐标中计算时,布局 Matrix3D 是在 getPreferredSize()getMinSize()getMaxSize()getLayoutSize() 中进行分解的;在父坐标和子坐标中计算时,布局 Matrix3D 是在 getLayoutPosition() 中进行分解的。计算转换矩阵的布局通常会显式调用此方法,并使用子坐标中的大小。调用此方法的布局会将 false 传递给 invalidateLayout() 方法,这样不会触发后续的布局传递。

参数

value:Matrix3D — 矩阵。
 
invalidateLayout:Boolean — 设置为 true,将使父容器重新布局其子代。通常情况下,会将 true 传递给 invalidateLayout() 方法。

setSharedDisplayObject

()方法 
public function setSharedDisplayObject(sharedDisplayObject:DisplayObject):Boolean

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

确定此元素是否可以将它自己绘制到该序列的 sharedDisplayObject

当此 IGraphicElement 可以在共享的 DisplayObject graphics 属性中累积地绘制时,实现程序通常返回 true。在此 IGraphicElement 需要在 DisplayObject 上设置属性(不会应用于序列中的剩余元素)的所有情形下,此方法必须返回 false。此类属性的示例有 rotation、scale、transform、mask、alpha、filters、color transform、3D 和 layer。

当此方法返回 true 时,随后对 displayObject 属性的 getter 的调用必须返回相同的显示对象。

在某些情况下,sharedDisplayObject 属性可能本身就是 IGraphicElementContainer。在其余情形下,DisplayObject 是由序列中的第一个元素创建的。

当此 IGraphicElement 需要重新生成其序列时,它会通过调用其 invalidateGraphicElementSharing() 方法通知 IGraphicElementContainer

参数

sharedDisplayObject:DisplayObject — 共享的 DisplayObject。

返回
Boolean — 当此 IGraphicElement 可以将它自己绘制到该序列的共享 DisplayObject 时返回 true

transformAround

()方法 
public function transformAround(transformCenter:Vector3D, scale:Vector3D = null, rotation:Vector3D = null, translation:Vector3D = null, postLayoutScale:Vector3D = null, postLayoutRotation:Vector3D = null, postLayoutTranslation:Vector3D = null, invalidateLayout:Boolean = true):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

用于更新转换的旋转、缩放和平移的一种实用程序方法,同时保留某个特定点,该点是在组件自己的坐标空间中指定的,且在父项的坐标空间中是固定的。此函数将指定提供的旋转值、缩放值和平移值,然后根据需要更新 x/y/z 属性以保持转换中心固定。

参数

transformCenter:Vector3D — 在组件自己的坐标中用于相对于其父项保持固定的点。
 
scale:Vector3D (default = null) — 转换的缩放的新值。
 
rotation:Vector3D (default = null) — 转换的旋转的新值
 
translation:Vector3D (default = null) — 转换的平移的新值。
 
postLayoutScale:Vector3D (default = null) — 转换的布局后缩放的新值。
 
postLayoutRotation:Vector3D (default = null) — 转换的布局后旋转的新值。
 
postLayoutTranslation:Vector3D (default = null) — 转换的布局后平移的新值。
 
invalidateLayout:Boolean (default = true) — 如果为 true,则父容器的大小和显示将无效。调用此方法的布局会传递 false,这样不会触发后续的布局传递。

transformHeightForLayout

()方法 
protected function transformHeightForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

转换元素的大小。

该方法计算图形元素的边框,好像元素的宽度/高度属性设置为传入的值。该方法返回边框的高度。

通常,该方法不能由开发人员使用。但是,您应该实现或重写由 ILayoutElement 接口定义的方法。

参数

width:Number — 目标预转换宽度。
 
height:Number — 目标预转换高度。
 
postLayoutTransform:Boolean (default = true) — 为 true 时,返回的边框位于其父空间中已转换元素的周围(首先应用元素的转换)。

返回
Number — 返回转换的高度。Transformation 是此元素的布局转换矩阵。

transformPointToParent

()方法 
public function transformPointToParent(localPosition:Vector3D, position:Vector3D, postLayoutPosition:Vector3D):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

一种实用程序方法,用于将以该对象的本地坐标指定的点转换为在该对象父坐标中的相应位置。如果 positionpostLayoutPosition 参数为非 null,将对这两个参数设置布局前和布局后结果。

参数

localPosition:Vector3D — 将要转换的点,指定为对象的本地坐标。
 
position:Vector3D — 将保存布局前结果的 Vector3D 点。如果为 null,则忽略该参数。
 
postLayoutPosition:Vector3D — 将保存布局后结果的 Vector3D 点。如果为 null,则忽略该参数。

transformWidthForLayout

()方法 
protected function transformWidthForLayout(width:Number, height:Number, postLayoutTransform:Boolean = true):Number

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

转换元素的大小。

该方法计算图形元素的边框,好像元素的宽度/高度属性设置为传入的值。该方法返回边框的宽度。

通常,该方法不能由开发人员使用。但是,您应该实现或重写由 ILayoutElement 接口定义的方法。

参数

width:Number — 目标预转换宽度。
 
height:Number — 目标预转换高度。
 
postLayoutTransform:Boolean (default = true) — 为 true 时,返回的边框位于其父空间中已转换元素的周围(首先应用元素的转换)。

返回
Number — 返回转换的宽度。Transformation 是此元素的布局转换矩阵。

updateDisplayList

()方法 
protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

绘制元素和/或调整其内容的大小并定位该内容。此方法是一种高级方法,可在创建 GraphicElement 的子类时覆盖。

您无需直接调用此方法。使用 addElement() 方法将组件添加到 IGraphicElementContainer 容器(例如,组)时,以及调用元素的 invalidateDisplayList() 方法时,Flex 会调用 updateDisplayList() 方法。

您可以借助此方法使用针对元素的 displayObject(如 graphics.drawRect())上的一些方法以编程方式进行绘制。

参数

unscaledWidth:Number — 指定组件在组件坐标中的宽度(以像素为单位),而不考虑该组件的 scaleX 属性值。
 
unscaledHeight:Number — 指定组件在组件坐标中的高度(以像素为单位),而不考虑该组件的 scaleY 属性值。

validateDisplayList

()方法 
public function validateDisplayList():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

IGraphicElementContainer 调用以在其 displayObject 属性中重新绘制此元素。

如果该元素是序列中的第一个元素(将 displayObjectSharingMode 设置为 DisplayObjectSharingMode.OWNS_SHARED_OBJECT),则它必须清除 displayObject 图形并根据需要对其进行设置以绘制剩余元素。

必须始终重新绘制该元素,即使该元素本身在上次调用 validateDisplayList() 方法之后未发生更改时也是如此。如果需要重新绘制 IGraphicElementContainer 中的任何元素,则它将重新绘制整个序列。

要确保调用此方法,请通过调用其 invalidateGraphicElementSize() 方法通知 IGraphicElementContainer

即使此元素未通知 IGraphicElementContainer,也可能会调用此方法。

validateNow

()方法 
public function validateNow():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

根据需要,通过立即调用 validateProperties()validateSize()validateDisplayList() 来验证并更新此对象的属性和布局。

validateProperties

()方法 
public function validateProperties():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

由布局逻辑用于通过调用 commitProperties() 方法来验证组件的属性。通常,子类应覆盖 commitProperties() 方法,而不是覆盖此方法。

validateSize

()方法 
public function validateSize():void

语言版本: ActionScript 3.0
产品版本: Flex 4
运行时版本: Flash Player 10, AIR 1.5

IGraphicElementContainer 调用以验证此元素的大小。

当元素大小发生变化并将影响 IGraphicElementContainer 布局时,实现程序负责使父代的大小和显示列表失效。

要确保调用此方法,请通过调用其 invalidateGraphicElementSize() 方法通知 IGraphicElementContainer

即使此元素未通知 IGraphicElementContainer,也可能会调用此方法。





[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。