Packagecom.kapit.visualizer.Components
Interfacepublic interface ILine
ImplementorsSolidLine



Public Methods
 MethodDefined by
  
beginFill(rgb:Number, alpha:Number):void
Sets a basic fill style for target
ILine
  
beginGradientFill(fillType:String, colors:Array, alphas:Array, ratios:Array, matrix:Object):void
Sets a gradient fill style for target
ILine
  
clear():void
Clears the drawing in target
ILine
  
curveTo(cx:Number, cy:Number, x:Number, y:Number):void
Draws a dashed curve in target using the current line style from the current drawing position to (x, y) using the control point specified by (cx, cy).
ILine
  
endFill():void
Ends the fill style for target
ILine
  
lineStyle(thickness:Number, rgb:Number, alpha:Number):void
Sets the lineStyle for target
ILine
  
lineTo(x:Number, y:Number):void
Draws a dashed line in target using the current line style from the current drawing position to (x, y); the current drawing position is then set to (x, y).
ILine
  
moveTo(x:Number, y:Number):void
Moves the current drawing position in target to (x, y).
ILine
Method detail
beginFill()method
public function beginFill(rgb:Number, alpha:Number):void

Sets a basic fill style for target

Parameters
rgb:Number — A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on). If this value is not provided or is undefined, a fill is not created.
 
alpha:Number — An integer between 0–100 that specifies the alpha value of the fill. If this value is not provided, 100 (solid) is used. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.
beginGradientFill()method 
public function beginGradientFill(fillType:String, colors:Array, alphas:Array, ratios:Array, matrix:Object):void

Sets a gradient fill style for target

Parameters
fillType:String — Either the string "linear" or the string "radial".
 
colors:Array — An array of RGB hex color values to be used in the gradient (for example, red is 0xFF0000, blue is 0x0000FF, and so on).
 
alphas:Array — An array of alpha values for the corresponding colors in the colors array; valid values are 0–100. If the value is less than 0, Flash uses 0. If the value is greater than 100, Flash uses 100.
 
ratios:Array — An array of color distribution ratios; valid values are 0–255. This value defines the percentage of the width where the color is sampled at 100 percent.
 
matrix:Object — A transformation matrix that is an object with one of two sets of properties.
clear()method 
public function clear():void

Clears the drawing in target

curveTo()method 
public function curveTo(cx:Number, cy:Number, x:Number, y:Number):void

Draws a dashed curve in target using the current line style from the current drawing position to (x, y) using the control point specified by (cx, cy). The current drawing position is then set to (x, y).

Parameters
cx:Number — An integer that specifies the horizontal position of the control point relative to the registration point of the parent movie clip.
 
cy:Number — An integer that specifies the vertical position of the control point relative to the registration point of the parent movie clip.
 
x:Number — An integer that specifies the horizontal position of the next anchor point relative to the registration. point of the parent movie clip.
 
y:Number — An integer that specifies the vertical position of the next anchor point relative to the registration point of the parent movie clip.
endFill()method 
public function endFill():void

Ends the fill style for target

lineStyle()method 
public function lineStyle(thickness:Number, rgb:Number, alpha:Number):void

Sets the lineStyle for target

Parameters
thickness:Number — An integer that indicates the thickness of the line in points; valid values are 0 to 255. If a number is not specified, or if the parameter is undefined, a line is not drawn. If a value of less than 0 is passed, Flash uses 0. The value 0 indicates hairline thickness; the maximum thickness is 255. If a value greater than 255 is passed, the Flash interpreter uses 255.
 
rgb:Number — A hex color value (for example, red is 0xFF0000, blue is 0x0000FF, and so on) of the line. If a value isn’t indicated, Flash uses 0x000000 (black).
 
alpha:Number — An integer that indicates the alpha value of the line’s color; valid values are 0–100. If a value isn’t indicated, Flash uses 100 (solid). If the value is less than 0, Flash uses 0; if the value is greater than 100, Flash uses 100.
lineTo()method 
public function lineTo(x:Number, y:Number):void

Draws a dashed line in target using the current line style from the current drawing position to (x, y); the current drawing position is then set to (x, y).

Parameters
x:Number — An integer indicating the horizontal position relative to the registration point of the parent movie clip.
 
y:Number — integer indicating the vertical position relative to the registration point of the parent movie clip.
moveTo()method 
public function moveTo(x:Number, y:Number):void

Moves the current drawing position in target to (x, y).

Parameters
x:Number — An integer indicating the horizontal position relative to the registration point of the parent movie clip.
 
y:Number — integer indicating the vertical position relative to the registration point of the parent movie clip.