套件 | mx.charts.chartClasses |
介面 | public interface IChartElement2 extends IChartElement , IFlexDisplayObject , IBitmapDrawable , IEventDispatcher |
實作者 | ChartElement |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
方法 | 定義自 | ||
---|---|---|---|
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 | ||
Converts a tuple of data values to an x-y coordinate on screen. | IChartElement2 | ||
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 | ||
Returns an array of HitData of the items of all the underlying
objects that implement IChartElement2 whose dataTips
are to be shown when showAllDataTips is set
to true on chart. | IChartElement2 | ||
傳回可定義顯示物件區域 (相對於 targetCoordinateSpace 物件的座標系統) 的矩形。 | IFlexDisplayObject | ||
根據 targetCoordinateSpace 參數所定義的座標系統,並排除形狀上的任何筆畫,傳回可定義顯示物件邊界的矩形。 | IFlexDisplayObject | ||
將 point 物件從「舞台」(全域) 座標轉換成顯示物件的 (區域) 座標。 | IFlexDisplayObject | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | IEventDispatcher | ||
評估顯示物件的範圍框,看它是否與 obj 顯示物件的範圍框重疊或相交。 | IFlexDisplayObject | ||
評估顯示物件,看它是否與 x 和 y 參數所指定的點重疊或相交。 | IFlexDisplayObject | ||
Converts a coordinate on screen to a tuple of data values. | IChartElement2 | ||
將 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 |
dataToLocal | () | 方法 |
public function dataToLocal(... dataValues):Point
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Converts a tuple of data values to an x-y coordinate on screen. Call this function to transform data on to the screen using the same transform that the individual elements go through. For example, to create a custom highlight for a data region of a chart, you might use this function to determine the on-screen coordinates of the range of interest.
For Cartesian chartelements, you typically pass two values. The first value maps to the horizontal axis, and the second value maps to the vertical axis.
For polar charts, the first value maps to the angular axis, and the second maps to the radial axis.
參數
... dataValues — The data values to convert to coordinates.
|
Point — Coordinates that are relative to the chart.
|
getAllDataPoints | () | 方法 |
public function getAllDataPoints():Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Returns an array of HitData of the items of all the underlying
objects that implement IChartElement2
whose dataTips
are to be shown when showAllDataTips
is set
to true
on chart.
Array — The HitData objects describing the data points
|
localToData | () | 方法 |
public function localToData(pt:Point):Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Converts a coordinate on screen to a tuple of data values. Call this function to determine what data values a particular point on-screen represents.
Individual chart types determine how this transformation occurs. The point should be relative to the chart's coordinate space.
參數
pt:Point — The Point to convert.
|
Array — The tuple of data values.
|
Tue Jun 12 2018, 03:47 PM Z