Packagexp.charting
Classpublic class TrendLineTool
InheritanceTrendLineTool Inheritance ChartStyleClient Inheritance ChartDisplayElement Inheritance ProgrammaticSkin Inheritance mx.core.FlexSprite
ImplementsIChartingTool

Tool for run time user drawing of trend lines on an axis chart

See also

support


Public Properties
 PropertyDefined by
  autoStart : Boolean = true
TrendLineTool
 Inheritedchart : IChartArea
ChartDisplayElement
 InheritedchartDesc : ChartDesc
ChartDisplayElement
 InheritedchartParent : IChart
ChartDisplayElement
 InheritedclassName : String
ChartStyleClient
 Inheritedheight : Number
ProgrammaticSkin
 InheritedinheritingStyles : Object
ChartStyleClient
 Inheritedinitialized : Boolean
ProgrammaticSkin
 InheritedisSubChart : Boolean
ChartDisplayElement
 InheritedmeasuredHeight : Number
The measured height of this object.
ChartDisplayElement
 InheritedmeasuredWidth : Number
The measured width of this object.
ChartDisplayElement
 InheritednestLevel : int
ProgrammaticSkin
 InheritednonInheritingStyles : Object
ChartStyleClient
 Inheritedparent : DisplayObjectContainer
ChartDisplayElement
 InheritedprocessedDescriptors : Boolean
ProgrammaticSkin
 InheritedstyleDeclaration : CSSStyleDeclaration
ChartStyleClient
 InheritedstyleName : Object
ChartStyleClient
 InheritedupdateCompletePendingFlag : Boolean
ProgrammaticSkin
 Inheritedwidth : Number
ProgrammaticSkin
Protected Properties
 PropertyDefined by
 InheritedchildList : Array
ChartStyleClient
 Inherited_deferLayout : Boolean = false
ProgrammaticSkin
 InheritedinvalidateDisplayListFlag : Boolean = false
ProgrammaticSkin
 InheritedinvalidatePropertiesFlag : Boolean = false
ProgrammaticSkin
 InheritedinvalidateSizeFlag : Boolean = false
ProgrammaticSkin
 Inheritedowner : Object
ChartStyleClient
 Inherited_parent : DisplayObjectContainer
ChartDisplayElement
 InheritedsizeChanged : Boolean = false
ProgrammaticSkin
 InheritedstyleParent : IStyleClient
ChartStyleClient
 InheritedstylesInitialized : Boolean = false
ChartStyleClient
 InheritedtextFieldList : Array
ChartStyleClient
Public Methods
 MethodDefined by
  
Create a new instance
TrendLineTool
  
removes all layers from the workspace
TrendLineTool
 Inherited
clearStyle(styleProp:String):void
ChartStyleClient
 Inherited
ChartStyleClient
 Inherited
ChartStyleClient
 Inherited
getStyle(styleProp:String):*
ChartStyleClient
  
hide():void
hides the workspace interface
TrendLineTool
 Inherited
initElement(chart:IChartArea):void
ChartDisplayElement
 Inherited
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
move(x:Number, y:Number):void
Moves this object to the specified x and y coordinates.
ProgrammaticSkin
 Inherited
notifyStyleChangeInChildren(styleProp:String, recursive:Boolean):void
ChartStyleClient
 Inherited
parentChanged(p:DisplayObjectContainer):void
ChartStyleClient
 Inherited
regenerateStyleCache(recursive:Boolean):void
ChartStyleClient
 Inherited
registerEffects(effects:Array):void
ChartStyleClient
  
reset():void
reset tool back to its original state
TrendLineTool
 Inherited
setActualSize(newWidth:Number, newHeight:Number):void
Sets the height and width of this object.
ProgrammaticSkin
 Inherited
setStyle(styleProp:String, newValue:*):void
ChartStyleClient
  
show():void
shows the tools worksapce interface
TrendLineTool
  
start():void
makes the tool activated
TrendLineTool
  
stop():void
makes the tool inactivated
TrendLineTool
  
styleChanged(styleProp:String):void
Whenever any style changes, redraw this skin.
TrendLineTool
 Inherited
ChartDisplayElement
 Inherited
validateNow():void
Validate and update the properties and layout of this object and redraw it, if necessary.
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
validateSize(recursive:Boolean = false):void
ChartDisplayElement
Protected Methods
 MethodDefined by
 Inherited
activate():void
ChartDisplayElement
 Inherited
addedHandler(e:Event):void
ChartDisplayElement
 Inherited
ProgrammaticSkin
  
initializes the tool
TrendLineTool
 Inherited
deactivate():void
ChartDisplayElement
 Inherited
deferLayout(state:Boolean):void
ProgrammaticSkin
 Inherited
getParent():DisplayObjectContainer
ChartDisplayElement
 Inherited
ChartDisplayElement
 Inherited
initialize():void
ChartDisplayElement
 Inherited
ChartStyleClient
 Inherited
ChartStyleClient
 Inherited
measure():void
ProgrammaticSkin
 Inherited
ProgrammaticSkin
 Inherited
notifyTextFieldStyleChange(styleProp:String):void
ChartStyleClient
 Inherited
plotSizeChangedHandler(e:Event):void
ChartDisplayElement
 Inherited
removedHandler(e:Event):void
ChartDisplayElement
 Inherited
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
ProgrammaticSkin
Styles
 StyleDescriptionDefined by
  
lineStroke
Type: mx.graphics.IStroke   CSS Inheritance: no
Specifies the stroke to use to draw the trend lines. The default value is 0x000000.
TrendLineTool
  
moveStroke
Type: mx.graphics.IStroke   CSS Inheritance: no
Specifies the stroke to use when dragging the line. The default value is 0x000000.
TrendLineTool
  
sizeStroke
Type: mx.graphics.IStroke   CSS Inheritance: no
Specifies the stroke to use when sizing the line The default value is 0x000000.
TrendLineTool
Protected Constants
 ConstantDefined by
 InheritedNESTLEVEL_AXIS : int = 10000
[static]
ChartDisplayElement
 InheritedNESTLEVEL_AXISSET : int = 10001
[static]
ChartDisplayElement
 InheritedNESTLEVEL_LABELS : int = 10002
[static]
ChartDisplayElement
 InheritedNESTLEVEL_SERIES : int = 1000
[static]
ChartDisplayElement
 InheritedNESTLEVEL_SERIESSET : int = 1001
[static]
ChartDisplayElement
Property detail
autoStartproperty
public var autoStart:Boolean = true
Constructor detail
TrendLineTool()constructor
public function TrendLineTool()

Create a new instance

Method detail
clearAllLines()method
public function clearAllLines():void

removes all layers from the workspace

createChildren()method 
protected override function createChildren():void

initializes the tool

hide()method 
public function hide():void

hides the workspace interface

reset()method 
public function reset():void

reset tool back to its original state

show()method 
public function show():void

shows the tools worksapce interface

start()method 
public function start():void

makes the tool activated

stop()method 
public function stop():void

makes the tool inactivated

styleChanged()method 
public override function styleChanged(styleProp:String):void

Whenever any style changes, redraw this skin. Subclasses can override this method and perform a more specific test before calling invalidateDisplayList().

Parameters
styleProp:String — The name of the style property that changed, or null if all styles have changed.