Paket | mx.charts.chartClasses |
Klass | public class CartesianTransform |
Arv | CartesianTransform DataTransform EventDispatcher Object |
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Egenskap | Definieras med | ||
---|---|---|---|
axes : Object [skrivskyddad]
The set of axes associated with this transform. | DataTransform | ||
constructor : Object
En referens till klassobjektet eller konstruktorfunktionen för en given objektinstans. | Object | ||
elements : Array
The elements that are associated with this transform. | DataTransform | ||
pixelHeight : Number [lässkyddad]
The height of the data area that the CartesianTransform represents,
in pixels. | CartesianTransform | ||
pixelWidth : Number [lässkyddad]
The width of the data area that the CartesianTransform represents,
in pixels. | CartesianTransform |
Metod | Definieras med | ||
---|---|---|---|
Constructor. | CartesianTransform | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registrerar ett händelseavlyssnarobjekt för ett EventDispatcher-objekt så att avlyssnaren får meddelanden om händelser. | 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 | ||
Skickar en händelse till händelseflödet. | EventDispatcher | ||
Retrieves the axis instance responsible for transforming
the data dimension specified by the dimension parameter. | DataTransform | ||
Kontrollerar om EventDispatcher-objektet har några avlyssnare registrerade för en viss typ av händelse. | EventDispatcher | ||
Anger om det finns en egenskap angiven för ett objekt. | Object | ||
[åsidosätt]
Transforms x and y coordinates relative to the DataTransform
coordinate system into a 2-dimensional value in data space. | CartesianTransform | ||
Anger om en instans av klassen Object finns i prototypkedjan för objektet som anges som parameter. | Object | ||
Anger om den angivna egenskapen finns och är uppräkningsbar. | Object | ||
Tar bort en avlyssnare från EventDispatcher-objektet. | EventDispatcher | ||
Assigns an axis instance to a particular dimension of the transform. | DataTransform | ||
Anger tillgänglighet för en dynamisk egenskap för slingåtgärder. | Object | ||
Returnerar det här objektets strängrepresentation, formaterad i enlighet med språkspecifika konventioner. | Object | ||
Returnerar det angivna objektets strängbeteckning. | Object | ||
transformCache(cache:Array, xField:String, xConvertedField:String, yField:String, yConvertedField:String):void [åsidosätt]
Maps a set of numeric values representing data to screen coordinates. | CartesianTransform | ||
Returnerar det angivna objektets primitiva värde. | Object | ||
Kontrollerar om en händelseavlyssnare är registrerad för det här EventDispatcher-objektet eller något av dess överordnade objekt för den angivna händelsetypen. | EventDispatcher |
Konstant | Definieras med | ||
---|---|---|---|
HORIZONTAL_AXIS : String = "h" [statisk]
A String representing the horizontal axis. | CartesianTransform | ||
VERTICAL_AXIS : String = "v" [statisk]
A String representing the vertical axis. | CartesianTransform |
pixelHeight | egenskap |
pixelHeight:Number
[lässkyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Implementering
public function set pixelHeight(value:Number):void
pixelWidth | egenskap |
pixelWidth:Number
[lässkyddad] Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Implementering
public function set pixelWidth(value:Number):void
CartesianTransform | () | Konstruktor |
public function CartesianTransform()
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
Constructor.
invertTransform | () | metod |
override public function invertTransform(... values):Array
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Parametrar
... values — The x and y positions (in that order).
|
Array — An Array containing the transformed values.
|
transformCache | () | metod |
override public function transformCache(cache:Array, xField:String, xConvertedField:String, yField:String, yConvertedField:String):void
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | 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.
Parametrar
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 | Konstant |
public static const HORIZONTAL_AXIS:String = "h"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A String representing the horizontal axis.
VERTICAL_AXIS | Konstant |
public static const VERTICAL_AXIS:String = "v"
Språkversion: | ActionScript 3.0 |
Produktversion: | Flex 3 |
Körningsmiljöversioner: | Flash Player 9, AIR 1.1 |
A String representing the vertical axis.
Tue Jun 12 2018, 01:40 PM Z