((Apenas para componentes do Flex Data Visualization))
Pacotemx.charts
Classepublic class HitData
HerançaHitData Inheritance Object

The HitData class represents information about the data item at a specific location on the screen. Flex returns the HitData structure for mouse events on chart data points. It describes what data points are under the current mouse position.

You can also get a HitData structure describing the data point at a specific location in the chart using the chart control's findDataPoints() method.

Veja também

mx.charts.ChartItem


Propriedades Públicas
 PropriedadeDefinido por
  chartItem : ChartItem
The chart item described by the hit data.
HitData
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
  contextColor : uint = 0
An RGB value that can be used to associate an on-screen representation of the associated chartItem.
HitData
  dataTipFunction : Function
A function provided by the HitData creator to generate a user-suitable String for display on screen that describes the referenced item.
HitData
  displayText : String
[read-only] A description of the associated item for display on screen.
HitData
  distance : Number
Specifies the distance between the data item on the screen and the location of the mouse pointer, in pixels.
HitData
  element : IChartElement2
[read-only] Specifies the chart element rendering this data item that generated the HitData structure.
HitData
  id : Number
Specifies a unique identifier representing the data point.
HitData
  item : Object
Specifies the data item that the HitData structure describes.
HitData
 Inheritedprototype : Object
[static] A reference to the prototype object of a class or function object.
Object
  x : Number
Specifies the X coordinate of the data item on the screen.
HitData
  y : Number
Specifies the Y coordinate of the data item on the screen.
HitData
Métodos Públicos
 MétodoDefinido por
  
HitData(id:Number, distance:Number, x:Number, y:Number, chartItem:ChartItem)
Constructor.
HitData
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Detalhes da propriedade
chartItempropriedade
public var chartItem:ChartItem

The chart item described by the hit data. A chart item represents the data a series uses to describe an individual item from its dataProvider.

contextColorpropriedade 
public var contextColor:uint = 0

An RGB value that can be used to associate an on-screen representation of the associated chartItem. DataTips use this field to help render their data.

dataTipFunctionpropriedade 
public var dataTipFunction:Function

A function provided by the HitData creator to generate a user-suitable String for display on screen that describes the referenced item.

displayTextpropriedade 
displayText:String  [read-only]

A description of the associated item for display on screen.


Implementação
    public function get displayText():String
distancepropriedade 
public var distance:Number

Specifies the distance between the data item on the screen and the location of the mouse pointer, in pixels.

elementpropriedade 
element:IChartElement2  [read-only]

Specifies the chart element rendering this data item that generated the HitData structure.


Implementação
    public function get element():IChartElement2
idpropriedade 
public var id:Number

Specifies a unique identifier representing the data point. You can use this identifier to test for equality between two HitData objects. If two different chart elements represent the same dataProvider entry, they will have two different identifiers.

itempropriedade 
public var item:Object

Specifies the data item that the HitData structure describes.

xpropriedade 
public var x:Number

Specifies the X coordinate of the data item on the screen.

ypropriedade 
public var y:Number

Specifies the Y coordinate of the data item on the screen.

Detalhes do construtor
HitData()Construtor
public function HitData(id:Number, distance:Number, x:Number, y:Number, chartItem:ChartItem)

Constructor.

Parâmetros
id:Number — Specifies a unique identifier representing the data point.
 
distance:Number — Specifies the distance between the data item on the screen and the location of the mouse pointer, in pixels.
 
x:Number — Specifies the x coordinate of the data item on the screen.
 
y:Number — Specifies the y coordinate of the data item on the screen.
 
chartItem:ChartItem — The chart item described by the hit data.