Referencia de ActionScript® 3.0 para la plataforma de Adobe® Flash®
Inicio  |  Ocultar lista de paquetes y clases |  Paquetes  |  Clases  |  Novedades  |  Índice  |  Apéndices  |  ¿Por qué hay texto en inglés?
Filtros: Recuperando datos del servidor...
Recuperando datos del servidor...
mx.charts.chartClasses 

IChartElement  - AS3 Flex

Paquetemx.charts.chartClasses
Interfazpublic interface IChartElement extends IFlexDisplayObject , IBitmapDrawable , IEventDispatcher

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: Flash Player 9, AIR 1.1

IChartElement defines the base set of properties and methods required by a UIComponent to be representable in the data space of a chart. Any component assigned to the series, backgroundElements, or annotationElements Arrays of a chart must implement this interface.



Propiedades públicas
 PropiedadDefinido por
 InheritedaccessibilityProperties : AccessibilityProperties
Las opciones de accesibilidad actuales para este objeto de visualización.
IFlexDisplayObject
 Inheritedalpha : Number
Indica el valor de transparencia alfa del objeto especificado.
IFlexDisplayObject
 InheritedblendMode : String
Un valor de la clase BlendMode que especifica el modo de mezcla que debe utilizarse.
IFlexDisplayObject
 InheritedcacheAsBitmap : Boolean
Si se define como true, los motores de ejecución de Flash dejan en caché una representación interna de mapa de bits del objeto de visualización.
IFlexDisplayObject
  chartDataProvider : Object
[solo escritura] The data provider assigned to the enclosing chart.
IChartElement
  dataTransform : mx.charts.chartClasses:DataTransform
[solo escritura] The DataTransform object that the element uses to map between data and screen coordinates.
IChartElement
 Inheritedfilters : Array
Conjunto indexado que contiene todos los objetos de filtro actualmente asociados con el objeto de visualización.
IFlexDisplayObject
 Inheritedheight : Number
Indica la altura del objeto de visualización, expresada en píxeles.
IFlexDisplayObject
  labelContainer : Sprite
[solo lectura] The DisplayObject that displays labels rendered by this element.
IChartElement
 InheritedloaderInfo : LoaderInfo
[solo lectura] Devuelve un objeto LoaderInfo que contiene información sobre la carga del archivo al que pertenece este objeto de visualización.
IFlexDisplayObject
 Inheritedmask : DisplayObject
El objeto de visualización que origina la llamada se enmascara mediante el objeto mask especificado.
IFlexDisplayObject
 InheritedmeasuredHeight : Number
[solo lectura] The measured height of this object.
IFlexDisplayObject
 InheritedmeasuredWidth : Number
[solo lectura] The measured width of this object.
IFlexDisplayObject
 InheritedmouseX : Number
[solo lectura] Indica la coordenada x de la posición del ratón o del dispositivo de entrada del usuario, en píxeles.
IFlexDisplayObject
 InheritedmouseY : Number
[solo lectura] Indica la coordenada y de la posición del ratón o del dispositivo de entrada del usuario, en píxeles.
IFlexDisplayObject
 Inheritedname : String
Indica el nombre de instancia de DisplayObject.
IFlexDisplayObject
 InheritedopaqueBackground : Object
Especifica si el objeto de visualización es opaco con un determinado color de fondo.
IFlexDisplayObject
 Inheritedparent : DisplayObjectContainer
[solo lectura] Indica el objeto DisplayObjectContainer que contiene este objeto de visualización.
IFlexDisplayObject
 Inheritedroot : DisplayObject
[solo lectura] Para un objeto de visualización en un archivo SWF cargado, la propiedad root es el objeto de visualización de nivel más alto en la parte de la estructura de árbol de la lista de visualización representada por dicho archivo SWF.
IFlexDisplayObject
 Inheritedrotation : Number
Indica el giro de la instancia de DisplayObject, expresado en grados, con respecto a su orientación original.
IFlexDisplayObject
 Inheritedscale9Grid : Rectangle
La cuadrícula de escala aplicada actualmente.
IFlexDisplayObject
 InheritedscaleX : Number
Indica la escala horizontal (percentage) del objeto aplicada desde el punto de registro.
IFlexDisplayObject
 InheritedscaleY : Number
Indica la escala vertical (percentage) de un objeto aplicada desde el punto de registro del objeto.
IFlexDisplayObject
 InheritedscrollRect : Rectangle
Los límites del rectángulo de desplazamiento del objeto de visualización.
IFlexDisplayObject
 Inheritedstage : Stage
[solo lectura] El escenario del objeto de visualización.
IFlexDisplayObject
 Inheritedtransform : flash.geom:Transform
Objeto con propiedades pertenecientes a una matriz, transformación de color y límites de píxel de un objeto de visualización.
IFlexDisplayObject
 Inheritedvisible : Boolean
Indica si el objeto de visualización es visible.
IFlexDisplayObject
 Inheritedwidth : Number
Indica la anchura del objeto de visualización, expresada en píxeles.
IFlexDisplayObject
 Inheritedx : Number
Indica la coordenada x de la instancia de DisplayObject en relación a las coordenadas locales del DisplayObjectContainer principal.
IFlexDisplayObject
 Inheritedy : Number
Indica la coordenada y de la instancia de DisplayObject en relación a las coordenadas locales del DisplayObjectContainer principal.
IFlexDisplayObject
Métodos públicos
 MétodoDefinido por
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registra un objeto de detector de eventos con un objeto EventDispatcher, de modo que el detector reciba la notificación de un evento.
IEventDispatcher
  
Called by the enclosing chart to indicate that the current state of the chart has changed.
IChartElement
  
claimStyles(styles:Array, firstAvailable:uint):uint
Called by the chart to allow associated elements to claim style selectors from its chartSeriesStyles Array.
IChartElement
  
collectTransitions(chartState:Number, transitions:Array):void
Called by the enclosing chart to collect any transitions a particular element might play when the chart changes state.
IChartElement
  
describeData(dimension:String, requiredFields:uint):Array
Called by the governing DataTransform to obtain a description of the data represented by this IChartElement.
IChartElement
 Inherited
Distribuye un evento en el flujo del evento.
IEventDispatcher
  
Returns a HitData object describing the nearest data point to the coordinates passed to the method.
IChartElement
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
Devuelve un rectángulo que define el área del objeto de visualización relativo al sistema de coordenadas del objeto targetCoordinateSpace.
IFlexDisplayObject
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
Devuelve un rectángulo que define el límite del objeto de visualización, basado en el sistema de coordenadas definido por el parámetro targetCoordinateSpace, excluyendo los trazos en las formas.
IFlexDisplayObject
 Inherited
Convierte el objeto point de las coordenadas del escenario (globales) en las coordenadas del objeto de visualización (locales).
IFlexDisplayObject
 Inherited
Comprueba si el objeto EventDispatcher tiene detectores registrados para un tipo concreto de evento.
IEventDispatcher
 Inherited
Calcula el cuadro delimitador del objeto de visualización para ver si se solapa o corta con el cuadro delimitador del objeto de visualización obj.
IFlexDisplayObject
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
Evalúa el objeto de visualización para comprobar si se solapa o presenta un punto de intersección con el punto especificado por los parámetros x e y.
IFlexDisplayObject
 Inherited
Convierte el objeto point de coordenadas del objeto de visualización (locales) en coordenadas del escenario (globales).
IFlexDisplayObject
  
Indicates to the element that the data mapping of the associated axes has changed.
IChartElement
 Inherited
Moves this object to the specified x and y coordinates.
IFlexDisplayObject
 Inherited
removeEventListener(type:String, listener:Function, useCapture:Boolean = false):void
Elimina un detector del objeto EventDispatcher.
IEventDispatcher
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
IFlexDisplayObject
 Inherited
Comprueba si hay registrado un detector de eventos con este objeto EventDispatcher o con cualquiera de sus ascendientes para el tipo de evento concreto.
IEventDispatcher
Información sobre propiedades

chartDataProvider

propiedad
chartDataProvider:Object  [solo escritura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.



Implementación
    public function set chartDataProvider(value:Object):void

dataTransform

propiedad 
dataTransform:mx.charts.chartClasses:DataTransform  [solo escritura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.



Implementación
    public function set dataTransform(value:mx.charts.chartClasses:DataTransform):void

labelContainer

propiedad 
labelContainer:Sprite  [solo lectura]

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.



Implementación
    public function get labelContainer():Sprite
Información sobre métodos

chartStateChanged

()método
public function chartStateChanged(oldState:uint, v:uint):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.

Parámetros

oldState:uint — An integer representing the previous state.
 
v:uint — An integer representing the new state.

claimStyles

()método 
public function claimStyles(styles:Array, firstAvailable:uint):uint

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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].

Parámetros

styles:Array — An Array of styles to claim.
 
firstAvailable:uint — The first style selector in the Array to claim.

Valor devuelto
uint — The new value for firstAvailable after claiming any styles (for example, firstAvailable + N).

collectTransitions

()método 
public function collectTransitions(chartState:Number, transitions:Array):void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.

Parámetros

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

()método 
public function describeData(dimension:String, requiredFields:uint):Array

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.

Parámetros

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.

Valor devuelto
Array — An Array containing the DataDescription instances that describe the data that is displayed.

Elementos de API relacionados

findDataPoints

()método 
public function findDataPoints(x:Number, y:Number, sensitivity2:Number):Array

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.

Parámetros

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.

Valor devuelto
Array — A HitData object describing the nearest data point within sensitivity2 pixels.

Elementos de API relacionados

mappingChanged

()método 
public function mappingChanged():void

Versión del lenguaje: ActionScript 3.0
Versión de producto: Flex 3
Versiones de motor de ejecución: 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.





[ X ]¿Por qué hay texto en inglés?
Cierto contenido de la Referencia de ActionScript 3.0 se muestra en inglés

No todo el contenido de la Referencia de ActionScript 3.0 se traduce a todos los idiomas. Si un elemento del lenguaje no se traduce, aparecerá en inglés. Por ejemplo, la clase ga.controls.HelpBox no está traducida en ningún idioma. Por lo tanto, en la versión en español de la referencia, la clase ga.controls.HelpBox aparecerá en inglés.