Packageflare.display
Classpublic class LineSprite
InheritanceLineSprite Inheritance DirtySprite Inheritance flash.display.Sprite
SubclassesAxisGridLine

A Sprite representing a line. Supports position, color, and width properties.



Public Properties
 PropertyDefined by
 Inheritedangle : Number
The angle value of this sprite's position in polar co-ordinates.
DirtySprite
 Inheritedheight : Number
If dirty, this sprite is re-rendered before returning the height.
DirtySprite
  lineColor : uint
The color of the line.
LineSprite
  lineWidth : Number
The width of the line.
LineSprite
 Inheritedorigin : Point
The origin point for polar coordinates.
DirtySprite
 Inheritedradius : Number
The radius value of this sprite's position in polar co-ordinates.
DirtySprite
 Inheritedwidth : Number
If dirty, this sprite is re-rendered before returning the width.
DirtySprite
 Inheritedx : Number
DirtySprite
  x1 : Number
The x-coordinate for the first line endpoint.
LineSprite
  x2 : Number
The x-coordinate for the second line endpoint.
LineSprite
 Inheritedy : Number
DirtySprite
  y1 : Number
The y-coordinate for the first line endpoint.
LineSprite
  y2 : Number
The y-coordinate for the second line endpoint.
LineSprite
Protected Properties
 PropertyDefined by
 Inherited_angle : Number
The angle value of this sprite's position in polar co-ordinates.
DirtySprite
 Inherited_origin : Point
The origin point for polar coordinates.
DirtySprite
 Inherited_radius : Number
The radius value of this sprite's position in polar co-ordinates.
DirtySprite
Public Methods
 MethodDefined by
 Inherited
dirty():void
Marks this sprite as "dirty" and in need of re-rendering.
DirtySprite
 Inherited
getBounds(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered returning the bounds.
DirtySprite
 Inherited
getRect(targetCoordinateSpace:DisplayObject):Rectangle
If dirty, this sprite is re-rendered before returning the rect.
DirtySprite
 Inherited
hitTestObject(obj:DisplayObject):Boolean
If dirty, either sprite is re-rendered before hit-testing.
DirtySprite
 Inherited
hitTestPoint(x:Number, y:Number, shapeFlag:Boolean = false):Boolean
If dirty, this sprite is re-rendered before hit-testing.
DirtySprite
  
render():void
LineSprite
 Inherited
renderDirty(evt:Event = null):void
[static] Frame render callback that renders all sprites on the dirty list.
DirtySprite
 Inherited
toString():String
DirtySprite
Public Constants
 ConstantDefined by
 InheritedZERO : Point
[static] A constant for the point (0,0).
DirtySprite
Property detail
lineColorproperty
lineColor:uint  [read-write]

The color of the line.

Implementation
    public function get lineColor():uint
    public function set lineColor(value:uint):void
lineWidthproperty 
lineWidth:Number  [read-write]

The width of the line. A value of zero indicates a hairwidth line, as determined by Graphics.lineStyle

Implementation
    public function get lineWidth():Number
    public function set lineWidth(value:Number):void
x1property 
x1:Number  [read-write]

The x-coordinate for the first line endpoint.

Implementation
    public function get x1():Number
    public function set x1(value:Number):void
x2property 
x2:Number  [read-write]

The x-coordinate for the second line endpoint.

Implementation
    public function get x2():Number
    public function set x2(value:Number):void
y1property 
y1:Number  [read-write]

The y-coordinate for the first line endpoint.

Implementation
    public function get y1():Number
    public function set y1(value:Number):void
y2property 
y2:Number  [read-write]

The y-coordinate for the second line endpoint.

Implementation
    public function get y2():Number
    public function set y2(value:Number):void
Method detail
render()method
public override function render():void