套件 | mx.charts |
類別 | public class ChartItem |
繼承 | ChartItem EventDispatcher Object |
子類別 | AreaSeriesItem, BarSeriesItem, BubbleSeriesItem, ColumnSeriesItem, HLOCSeriesItem, LineSeriesItem, PieSeriesItem, PlotSeriesItem |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
更多範例
屬性 | 定義自 | ||
---|---|---|---|
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
currentState : String
Defines the appearance of the ChartItem. | ChartItem | ||
element : IChartElement
The series or element that owns the ChartItem. | ChartItem | ||
index : int
The index of the data from the series' data provider
that the ChartItem represents. | ChartItem | ||
item : Object
The item from the series' data provider that the ChartItem represents. | ChartItem | ||
itemRenderer : IFlexDisplayObject
The instance of the chart's itemRenderer
that represents this ChartItem. | ChartItem |
方法 | 定義自 | ||
---|---|---|---|
Constructor. | ChartItem | ||
addEventListener(type:String, listener:Function, useCapture:Boolean = false, priority:int = 0, useWeakReference:Boolean = false):void
會在 EventDispatcher 物件註冊事件偵聽程式,以便讓偵聽程式收到事件的通知。 | EventDispatcher | ||
Returns a copy of this ChartItem. | ChartItem | ||
會將事件傳送到事件流程。 | EventDispatcher | ||
會檢查 EventDispatcher 物件是否有對特定的事件類型註冊偵聽程式。 | EventDispatcher | ||
指出物件是否有已定義的指定屬性。 | Object | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
會從 EventDispatcher 物件移除偵聽程式。 | EventDispatcher | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object | ||
檢查此 EventDispatcher 物件是否已註冊事件偵聽程式,或者此物件的任何祖系已為特定事件類型註冊事件偵聽程式。 | EventDispatcher |
常數 | 定義自 | ||
---|---|---|---|
DISABLED : String = "disabled" [靜態]
Value that indicates the ChartItem appears disabled and cannot be selected. | ChartItem | ||
FOCUSED : String = "focused" [靜態]
Value that indicates the ChartItem has focus but does not appear to be selected. | ChartItem | ||
FOCUSEDSELECTED : String = "focusedSelected" [靜態]
Value that indicates the ChartItem appears to have focus and appears to be selected. | ChartItem | ||
NONE : String = "none" [靜態]
Value that indicates the ChartItem does not appear to be selected, does not have focus, and is not being rolled over. | ChartItem | ||
ROLLOVER : String = "rollOver" [靜態]
Value that indicates the ChartItem appears as if the mouse was over it. | ChartItem | ||
SELECTED : String = "selected" [靜態]
Value that indicates the ChartItem appears selected but does not have focus. | ChartItem |
currentState | 屬性 |
currentState:String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Defines the appearance of the ChartItem.
The currentState
property can be set to none
, rollOver
,
selected
, disabled
, focusSelected
, and focused
.
實作
public function get currentState():String
public function set currentState(value:String):void
element | 屬性 |
public var element:IChartElement
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The series or element that owns the ChartItem.
index | 屬性 |
public var index:int
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The index of the data from the series' data provider that the ChartItem represents.
item | 屬性 |
public var item:Object
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The item from the series' data provider that the ChartItem represents.
itemRenderer | 屬性 |
public var itemRenderer:IFlexDisplayObject
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
The instance of the chart's itemRenderer that represents this ChartItem.
ChartItem | () | 建構函式 |
public function ChartItem(element:IChartElement = null, item:Object = null, index:uint = 0)
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Constructor.
參數element:IChartElement (default = null ) — The series or element to which the ChartItem belongs.
| |
item:Object (default = null ) — The item from the series' data provider
that the ChartItem represents.
| |
index:uint (default = 0 ) — The index of the data from the series' data provider
that the ChartItem represents.
|
clone | () | 方法 |
DISABLED | 常數 |
public static const DISABLED:String = "disabled"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem appears disabled and cannot be selected.
FOCUSED | 常數 |
public static const FOCUSED:String = "focused"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem has focus but does not appear to be selected.
FOCUSEDSELECTED | 常數 |
public static const FOCUSEDSELECTED:String = "focusedSelected"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem appears to have focus and appears to be selected.
NONE | 常數 |
public static const NONE:String = "none"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem does not appear to be selected, does not have focus, and is not being rolled over.
ROLLOVER | 常數 |
public static const ROLLOVER:String = "rollOver"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem appears as if the mouse was over it.
SELECTED | 常數 |
public static const SELECTED:String = "selected"
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Value that indicates the ChartItem appears selected but does not have focus.
Tue Jun 12 2018, 03:47 PM Z