套件 | mx.charts.chartClasses |
介面 | public interface IChartElement extends IFlexDisplayObject , IBitmapDrawable , IEventDispatcher |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
accessibilityProperties : AccessibilityProperties
此顯示物件的目前輔助功能選項。 | IFlexDisplayObject | ||
alpha : Number
指出所指定物件的 Alpha 透明度值。 | IFlexDisplayObject | ||
blendMode : String
來自 BlendMode 類別的值,會指定要使用何種混合模式。 | IFlexDisplayObject | ||
cacheAsBitmap : Boolean
如果設定為 true,Flash 執行階段會快取顯示物件的內部點陣圖表示法。 | IFlexDisplayObject | ||
chartDataProvider : Object [唯寫]
The data provider assigned to the enclosing chart. | IChartElement | ||
dataTransform : mx.charts.chartClasses:DataTransform [唯寫]
The DataTransform object that the element uses
to map between data and screen coordinates. | IChartElement | ||
filters : Array
索引的陣列,其中包含目前和顯示物件相關的每個濾鏡物件。 | IFlexDisplayObject | ||
height : Number
會指出顯示物件的高度,以像素為單位。 | IFlexDisplayObject | ||
labelContainer : Sprite [唯讀]
The DisplayObject that displays labels rendered by this element. | IChartElement | ||
loaderInfo : LoaderInfo [唯讀]
會傳回 LoaderInfo 物件,其中包含關於載入此顯示物件所屬之檔案的資訊。 | IFlexDisplayObject | ||
mask : DisplayObject
呼叫之顯示物件會以指定的 mask 物件遮蓋。 | IFlexDisplayObject | ||
measuredHeight : Number [唯讀]
The measured height of this object. | IFlexDisplayObject | ||
measuredWidth : Number [唯讀]
The measured width of this object. | IFlexDisplayObject | ||
mouseX : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 x 座標,以像素為單位。 | IFlexDisplayObject | ||
mouseY : Number [唯讀]
指出滑鼠或使用者輸入裝置位置的 y 座標,以像素為單位。 | IFlexDisplayObject | ||
name : String
指出 DisplayObject 的實體名稱。 | IFlexDisplayObject | ||
opaqueBackground : Object
會指定顯示物件是否不透明,並具有特定背景顏色。 | IFlexDisplayObject | ||
parent : DisplayObjectContainer [唯讀]
指出包含此顯示物件的 DisplayObjectContainer 物件。 | IFlexDisplayObject | ||
root : DisplayObject [唯讀]
對載入之 SWF 檔案的顯示物件而言,root 屬性就是該 SWF 檔案所呈現之顯示清單樹狀結構部分的最上層顯示物件。 | IFlexDisplayObject | ||
rotation : Number
指出 DisplayObject 實體的旋轉度數 (從該物件原本方向算起)。 | IFlexDisplayObject | ||
scale9Grid : Rectangle
目前產生效用的縮放格線。 | IFlexDisplayObject | ||
scaleX : Number
指出從註冊點套用的物件水平縮放 (百分比)。 | IFlexDisplayObject | ||
scaleY : Number
指出從物件註冊點套用的物件垂直縮放 (百分比)。 | IFlexDisplayObject | ||
scrollRect : Rectangle
顯示物件的捲動矩形範圍。 | IFlexDisplayObject | ||
stage : Stage [唯讀]
顯示物件的「舞台」。 | IFlexDisplayObject | ||
transform : flash.geom:Transform
這是一個物件,具有和顯示物件的矩陣、顏色轉換和像素邊界有關的屬性。 | IFlexDisplayObject | ||
visible : Boolean
不管是否看得見顯示物件。 | IFlexDisplayObject | ||
width : Number
會指出顯示物件的寬度,以像素為單位。 | IFlexDisplayObject | ||
x : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 x 座標。 | IFlexDisplayObject | ||
y : Number
指出 DisplayObject 實體相對於父輩 DisplayObjectContainer 之區域座標的 y 座標。 | IFlexDisplayObject |
方法 | 定義自 | ||
---|---|---|---|
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | IEventDispatcher | ||
Called by the enclosing chart to indicate that the current state
of the chart has changed. | IChartElement | ||
Called by the chart to allow associated elements
to claim style selectors from its chartSeriesStyles Array. | IChartElement | ||
Called by the enclosing chart to collect any transitions
a particular element might play when the chart changes state. | IChartElement | ||
Called by the governing DataTransform to obtain a description
of the data represented by this IChartElement. | IChartElement | ||
會將事件傳送到事件流程。 | IEventDispatcher | ||
Returns a HitData object describing the nearest data point
to the coordinates passed to the method. | IChartElement | ||
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。 | IFlexDisplayObject | ||
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。 | IFlexDisplayObject | ||
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。 | IFlexDisplayObject | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | ||
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。 | IFlexDisplayObject | ||
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。 | IFlexDisplayObject | ||
將 point 物件從顯示物件的 (區域) 座標轉換成「舞台」(全域) 座標。 | IFlexDisplayObject | ||
Indicates to the element that the data mapping
of the associated axes has changed. | IChartElement | ||
Moves this object to the specified x and y coordinates. | IFlexDisplayObject | ||
會從 EventDispatcher 物件移除偵聽程式。 | IEventDispatcher | ||
Sets the actual size of this object. | IFlexDisplayObject | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | IEventDispatcher |
chartDataProvider | 屬性 |
chartDataProvider:Object
[唯寫] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The data provider assigned to the enclosing chart. Element types can choose to inherit the data provider from the enclosing chart if necessary, or allow developers to assign data providers specifically to the element. Not all elements are necessarily driven by a data provider.
實作
public function set chartDataProvider(value:Object):void
dataTransform | 屬性 |
dataTransform:mx.charts.chartClasses:DataTransform
[唯寫] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The DataTransform object that the element uses to map between data and screen coordinates. This property is assigned by the enclosing chart.
實作
public function set dataTransform(value:mx.charts.chartClasses:DataTransform):void
labelContainer | 屬性 |
labelContainer:Sprite
[唯讀] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The DisplayObject that displays labels rendered by this element.
In most cases, labels displayed in the data area of a chart
are rendered on top of all elements
rather than interleaved with the data.
If an implementing Element has labels to display,
it can place them in a Sprite object
and return it as the value of the labelContainer
property.
Enclosing charts will render labelContainers
from all enclosed elements and place them
in the data area above all other elements.
實作
public function get labelContainer():Sprite
chartStateChanged | () | 方法 |
public function chartStateChanged(oldState:uint, v:uint):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by the enclosing chart to indicate that the current state of the chart has changed. Implementing elements should respond to this method in order to synchronize changes to the data displayed by the element.
參數
oldState:uint — An integer representing the previous state.
| |
v:uint — An integer representing the new state.
|
claimStyles | () | 方法 |
public function claimStyles(styles:Array, firstAvailable:uint):uint
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by the chart to allow associated elements
to claim style selectors from its chartSeriesStyles Array.
Each chart has an associated set of selectors that are
implicitly assigned to contained elements that require them.
Implementing this function gives an element a chance to 'claim'
elements out of that set, as necessary.
An element that requires N style selectors claims the values
from styles[firstAvailable]
to
styles[firstAvailable + N - 1]
.
參數
styles:Array — An Array of styles to claim.
| |
firstAvailable:uint — The first style selector in the Array to claim.
|
uint — The new value for firstAvailable
after claiming any styles (for example,
firstAvailable + N).
|
collectTransitions | () | 方法 |
public function collectTransitions(chartState:Number, transitions:Array):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by the enclosing chart to collect any transitions a particular element might play when the chart changes state. The chart collects transitions from all elements and ensures that they play in parallel. It waits until all transitions have completed before advancing to another state. Implementors should append any necessary transitions to the transitions Array parameter.
參數
chartState:Number — The state at which the chart plays
the new transitions.
| |
transitions:Array — An Array of transition to add
to the chart's list of transitions to play.
|
describeData | () | 方法 |
public function describeData(dimension:String, requiredFields:uint):Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Called by the governing DataTransform to obtain a description
of the data represented by this IChartElement.
Implementors fill out and return an Array of
mx.charts.chartClasses.DataDescription objects
to guarantee that their data is correctly accounted for
by any axes that are autogenerating values
from the displayed data (such as minimum, maximum,
interval, and unitSize).
Most element types return an Array
containing a single DataDescription.
Aggregate elements, such as BarSet and ColumnSet,
might return multiple DataDescription instances
that describe the data displayed by their subelements.
When called, the implementor describes the data
along the axis indicated by the dimension
argument.
This function might be called for each axis
supported by the containing chart.
參數
dimension:String — Determines the axis to get data descriptions of.
| |
requiredFields:uint — A bitfield that indicates which values
of the DataDescription object the particular axis cares about.
Implementors can optimize by only calculating the necessary fields.
|
Array — An Array containing the DataDescription instances that describe
the data that is displayed.
|
相關 API 元素
findDataPoints | () | 方法 |
public function findDataPoints(x:Number, y:Number, sensitivity2:Number):Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns a HitData object describing the nearest data point
to the coordinates passed to the method.
The x
and y
arguments
should be values in the Element's coordinate system.
This method aheres to the limits specified by the
sensitivity2
parameter
when looking for nearby data points.
參數
x:Number — The x coordinate relative to the ChartBase object.
| |
y:Number — The y coordinate relative to the ChartBase object.
| |
sensitivity2:Number — The maximum distance from the data point that the
x/y coordinate location can be.
|
Array — A HitData object describing the nearest data point
within sensitivity2 pixels.
|
相關 API 元素
mappingChanged | () | 方法 |
public function mappingChanged():void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Indicates to the element that the data mapping of the associated axes has changed. Implementors should dispose of cached data and re-render appropriately. This function is called automatically by the associated DataTransform when necessary.
Tue Jun 12 2018, 03:47 PM Z