套件 | mx.charts.chartClasses |
類別 | public class CartesianTransform |
繼承 | CartesianTransform DataTransform EventDispatcher Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
When using charts in your applications, you typically will not need to interact with the CartesianTransform object. Transforms are created automatically by the built-in chart types and used by the series contained within so that they can transform data into rendering coordinates.
屬性 | 定義自 | ||
---|---|---|---|
axes : Object [唯讀]
The set of axes associated with this transform. | DataTransform | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
elements : Array
The elements that are associated with this transform. | DataTransform | ||
pixelHeight : Number [唯寫]
The height of the data area that the CartesianTransform represents,
in pixels. | CartesianTransform | ||
pixelWidth : Number [唯寫]
The width of the data area that the CartesianTransform represents,
in pixels. | CartesianTransform |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | CartesianTransform | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Informs the DataTransform that some of the underlying data
being represented on the chart has changed. | DataTransform | ||
Collects important displayed values for all elements
associated with this data transform. | DataTransform | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
Retrieves the axis instance responsible for transforming
the data dimension specified by the dimension parameter. | DataTransform | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
[覆寫]
Transforms x and y coordinates relative to the DataTransform
coordinate system into a 2-dimensional value in data space. | CartesianTransform | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
Assigns an axis instance to a particular dimension of the transform. | DataTransform | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
transformCache(cache:Array, xField:String, xConvertedField:String, yField:String, yConvertedField:String):void [覆寫]
Maps a set of numeric values representing data to screen coordinates. | CartesianTransform | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
常數 | 定義自 | ||
---|---|---|---|
HORIZONTAL_AXIS : String = "h" [靜態]
A String representing the horizontal axis. | CartesianTransform | ||
VERTICAL_AXIS : String = "v" [靜態]
A String representing the vertical axis. | CartesianTransform |
pixelHeight | 屬性 |
pixelHeight:Number
[唯寫] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The height of the data area that the CartesianTransform represents, in pixels. The containing chart sets this property explicitly during layout. The CartesianTransform uses this property to map data values to screen coordinates.
實作
public function set pixelHeight(value:Number):void
pixelWidth | 屬性 |
pixelWidth:Number
[唯寫] 語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The width of the data area that the CartesianTransform represents, in pixels. The containing chart sets this property explicitly during layout. The CartesianTransform uses this property to map data values to screen coordinates.
實作
public function set pixelWidth(value:Number):void
CartesianTransform | () | 建構函式 |
public function CartesianTransform()
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
invertTransform | () | 方法 |
override public function invertTransform(... values):Array
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Transforms x and y coordinates relative to the DataTransform coordinate system into a 2-dimensional value in data space.
參數
... values — The x and y positions (in that order).
|
Array — An Array containing the transformed values.
|
transformCache | () | 方法 |
override public function transformCache(cache:Array, xField:String, xConvertedField:String, yField:String, yConvertedField:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Maps a set of numeric values representing data to screen coordinates.
This method assumes the values are all numbers,
so any non-numeric values must have been previously converted
with the mapCache()
method.
參數
cache:Array — An array of objects containing the data values
in their fields.
This is also where this function stores the converted numeric values.
| |
xField:String — The field where the data values for the x axis are stored.
| |
xConvertedField:String — The field where the mapped x screen coordinate
is stored.
| |
yField:String — The field where the data values for the y axis are stored.
| |
yConvertedField:String — The field where the mapped y screen coordinate
is stored.
|
HORIZONTAL_AXIS | 常數 |
public static const HORIZONTAL_AXIS:String = "h"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A String representing the horizontal axis.
VERTICAL_AXIS | 常數 |
public static const VERTICAL_AXIS:String = "v"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
A String representing the vertical axis.
Tue Jun 12 2018, 03:47 PM Z