((Apenas para componentes do Flex Data Visualization))
Pacotemx.charts.chartClasses
Interfacepublic interface IChartElement2 extends IChartElement, IFlexDisplayObject, IBitmapDrawable, IEventDispatcher
ImplementorsChartElement

IChartElement2 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.



Propriedades Públicas
 PropriedadeDefinido por
 Inheritedalpha : Number
The transparency of this object.
IFlexDisplayObject
 InheritedchartDataProvider : Object
[write-only] The data provider assigned to the enclosing chart.
IChartElement
 InheriteddataTransform : DataTransform
[write-only] The DataTransform object that the element uses to map between data and screen coordinates.
IChartElement
 Inheritedheight : Number
The height of this object, in pixels.
IFlexDisplayObject
 InheritedlabelContainer : Sprite
[read-only] The DisplayObject that displays labels rendered by this element.
IChartElement
 Inheritedmask : DisplayObject
The DisplayObject used to mask this object so that only part of it is actually drawn.
IFlexDisplayObject
 InheritedmeasuredHeight : Number
[read-only] The measured height of this object.
IFlexDisplayObject
 InheritedmeasuredWidth : Number
[read-only] The measured width of this object.
IFlexDisplayObject
 Inheritedname : String
The instance name of this object.
IFlexDisplayObject
 Inheritedparent : DisplayObjectContainer
[read-only] The parent of this object.
IFlexDisplayObject
 InheritedscaleX : Number
The horizontal scaling factor for this object.
IFlexDisplayObject
 InheritedscaleY : Number
The vertical scaling factor for this object.
IFlexDisplayObject
 Inheritedvisible : Boolean
A flag that indicates whether this object is visible.
IFlexDisplayObject
 Inheritedwidth : Number
The width of this object, in pixels.
IFlexDisplayObject
 Inheritedx : Number
The horizontal position of this object relative to its parent, in pixel coordinates.
IFlexDisplayObject
 Inheritedy : Number
The vertical position of this object relative to its parent, in pixel coordinates.
IFlexDisplayObject
Métodos Públicos
 MétodoDefinido por
 Inherited
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
Registers an event listener object with an EventDispatcher object so that the listener receives notification of an event.
IEventDispatcher
 Inherited
Called by the enclosing chart to indicate that the current state of the chart has changed.
IChartElement
 Inherited
claimStyles(styles:Array, firstAvailable:uint):uint
Called by the chart to allow associated elements to claim style selectors from its chartSeriesStyles Array.
IChartElement
 Inherited
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
  
dataToLocal(... dataValues):Point
Converts a tuple of data values to an x-y coordinate on screen.
IChartElement2
 Inherited
describeData(dimension:String, requiredFields:uint):Array
Called by the governing DataTransform to obtain a description of the data represented by this IChartElement.
IChartElement
 Inherited
Dispatches an event into the event flow.
IEventDispatcher
 Inherited
findDataPoints(x:Number, y:Number, sensitivity2:Number):Array
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
 Inherited
Checks whether the EventDispatcher object has any listeners registered for a specific type of event.
IEventDispatcher
  
Converts a coordinate on screen to a tuple of data values.
IChartElement2
 Inherited
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
Removes a listener from the EventDispatcher object.
IEventDispatcher
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the actual size of this object.
IFlexDisplayObject
 Inherited
Checks whether an event listener is registered with this EventDispatcher object or any of its ancestors for the specified event type.
IEventDispatcher
Detalhes do método
dataToLocal()método
public function dataToLocal(... dataValues):Point

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 exemplo, 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.

Parâmetros

... dataValues

Retorna
Point — Coordinates that are relative to the chart.
getAllDataPoints()método 
public function getAllDataPoints():Array

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.

Retorna
Array — The HitData objects describing the data points
localToData()método 
public function localToData(pt:Point):Array

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.

Parâmetros

pt:Point — The Point to convert.

Retorna
Array — The tuple of data values.