Apache Flex 4.16.1 API Reference | All Packages | All Classes | Index | Frames No Frames |
CrossItemRenderer

Package | mx.charts.renderers
Class | public class CrossItemRenderer
Inheritance | CrossItemRenderer ProgrammaticSkin FlexShape flash.display.Shape
Implements | IDataRenderer

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

A simple chart itemRenderer implementation that fills a cross in its assigned area. This class can be used as an itemRenderer for ColumnSeries, BarSeries, AreaSeries, LineSeries, PlotSeries, and BubbleSeries objects. It renders its area on screen using the `fill` and `stroke` styles of its associated series.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined By
--- | --- | ---
|  | data : Object The chartItem that this itemRenderer is displaying. | CrossItemRenderer
|  | initialized : Boolean A flag that determines if an object has been through all three phases of layout: commitment, measurement, and layout (provided that any were required). | ProgrammaticSkin
|  | measuredHeight : Number [read-only] The measured height of this object. | ProgrammaticSkin
|  | measuredWidth : Number [read-only] The measured width of this object. | ProgrammaticSkin
|  | nestLevel : int Depth of this object in the containment hierarchy. | ProgrammaticSkin
|  | processedDescriptors : Boolean Set to true after immediate or deferred child creation, depending on which one happens. | ProgrammaticSkin
|  | styleName : Object A parent component used to obtain style values. | ProgrammaticSkin
|  | thickness : Number = 3 The thickness of the cross rendered, in pixels. | CrossItemRenderer
|  | updateCompletePendingFlag : Boolean A flag that determines if an object has been through all three phases of layout validation (provided that any were required). | ProgrammaticSkin

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined By
--- | --- | ---
|  | CrossItemRenderer() Constructor | CrossItemRenderer
|  | getStyle(styleProp:String):* Returns the value of the specified style property. | ProgrammaticSkin
|  | invalidateDisplayList():void Marks a component so that its updateDisplayList() method gets called during a later screen update. | ProgrammaticSkin
|  | invalidateProperties():void Calling this method results in a call to the component's validateProperties() method before the display list is rendered. | ProgrammaticSkin
|  | invalidateSize():void Calling this method results in a call to the component's validateSize() method before the display list is rendered. | ProgrammaticSkin
|  | move(x:Number, y:Number):void Moves this object to the specified x and y coordinates. | ProgrammaticSkin
|  | setActualSize(newWidth:Number, newHeight:Number):void Sets the height and width of this object. | ProgrammaticSkin
|  | styleChanged(styleProp:String):void Whenever any style changes, redraw this skin. | ProgrammaticSkin
|  | toString():String [override] Returns a string indicating the location of this object within the hierarchy of DisplayObjects in the Application. | FlexShape
|  | validateDisplayList():void This function is called by the LayoutManager when it's time for this control to draw itself. | ProgrammaticSkin
|  | validateNow():void Validate and update the properties and layout of this object and redraw it, if necessary. | ProgrammaticSkin
|  | validateProperties():void This function is an empty stub so that ProgrammaticSkin can implement the ILayoutManagerClient interface. | ProgrammaticSkin
|  | validateSize(recursive:Boolean = false):void This function is an empty stub so that ProgrammaticSkin can implement the ILayoutManagerClient interface. | ProgrammaticSkin

Protected Methods
Show Inherited Protected Methods
Show Inherited Protected Methods

| Method | Defined By
--- | --- | ---
|  | drawRoundRect(x:Number, y:Number, width:Number, height:Number, cornerRadius:Object = null, color:Object = null, alpha:Object = null, gradientMatrix:Matrix = null, gradientType:String = linear, gradientRatios:Array = null, hole:Object = null):void Programatically draws a rectangle into this skin's Graphics object. | ProgrammaticSkin
|  | horizontalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix Utility function to create a horizontal gradient matrix. | ProgrammaticSkin
|  | rotatedGradientMatrix(x:Number, y:Number, width:Number, height:Number, rotation:Number):Matrix Utility function to create a rotated gradient matrix. | ProgrammaticSkin
|  | updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void Programmatically draws the graphics for this skin. | ProgrammaticSkin
|  | verticalGradientMatrix(x:Number, y:Number, width:Number, height:Number):Matrix Utility function to create a vertical gradient matrix. | ProgrammaticSkin

Property Detail

data | property

`data:Object`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The chartItem that this itemRenderer is displaying. This value is assigned by the owning series

Implementation
`public function get data():Object`
`public function set data(value:Object):void`

thickness | property |

`public var thickness:Number = 3`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

The thickness of the cross rendered, in pixels. To create cross renderers of other widths, developers should extend this class and change this value in the derived class' constructor.

Constructor Detail

CrossItemRenderer | () | Constructor

`public function CrossItemRenderer()`

Language Version : | ActionScript 3.0

Product Version : | Flex 3

Runtime Versions : | Flash Player 9, AIR 1.1

Constructor

Wed Nov 15 2017, 09:50 AM +01:00