Packagecom.yworks.graph.drawing.compat
Classpublic class LineType
InheritanceLineType Inheritance AdvancedStroke Inheritance mx.graphics.Stroke
Implements ICloneable



Public Properties
 PropertyDefined By
  lineStyle : uint
[read-only] The line style that is used by this instance.
LineType
 Inheritedpattern : Array
Get or set the pattern used for drawing dashed/dotted strokes.
AdvancedStroke
Public Methods
 MethodDefined By
  
LineType(width:Number = 1.0, cap:String = null, join:String = null, miterLimit:Number = 0, dashPattern:Array = null, style:uint = 0, pixelHinting:Boolean = true)
Constructor.
LineType
  
clone():Object
Creates a clone of thie object
LineType
 Inherited
drawCurve(currentX:Number, currentY:Number, toX:Number, toY:Number, cx:Number, cy:Number, graphics:YGraphics, targetGraphics:Graphics):void
Draw a quadratic bezier curve from (x0,y0) to (x1,y1) using the control point at (cx,cy).
AdvancedStroke
 Inherited
drawLine(currentX:Number, currentY:Number, x1:Number, y1:Number, graphics:YGraphics, targetGraphics:Graphics):void
Draw a straight line from the current graphics location to (toX,toY)
AdvancedStroke
 Inherited
drawPath(path:GeneralPath, graphics:YGraphics, targetGraphics:Graphics):void
Draw a path.
AdvancedStroke
  
getLineType(width:int, style:uint):LineType
[static] Factory method which creates a LineType instance with the given width and style
LineType
 Inherited
reset(graphics:YGraphics, targetGraphics:Graphics):void
Reset the stroke state.
AdvancedStroke
Public Constants
 ConstantDefined By
  CUSTOM_SYTLE : uint = 127
[static] Line style specifier that describes a custom line.
LineType
  DASHED_1 : LineType
[static] A dashed line with width 1.0
LineType
  DASHED_2 : LineType
[static] A dashed line with width 2.0
LineType
  DASHED_3 : LineType
[static] A dashed line with width 3.0
LineType
  DASHED_4 : LineType
[static] A dashed line with width 4.0
LineType
  DASHED_5 : LineType
[static] A dashed line with width 5.0
LineType
  DASHED_DOTTED_1 : LineType
[static] A dashed line with width 1.0
LineType
  DASHED_DOTTED_2 : LineType
[static] A dashed line with width 2.0
LineType
  DASHED_DOTTED_3 : LineType
[static] A dashed line with width 3.0
LineType
  DASHED_DOTTED_4 : LineType
[static] A dashed line with width 4.0
LineType
  DASHED_DOTTED_5 : LineType
[static] A dashed line with width 5.0
LineType
  DASHED_DOTTED_SYTLE : uint = 3
[static] Line style specifier that describes a dashed-dotted line.
LineType
  DASHED_SYTLE : uint = 1
[static] Line style specifier that describes a dashedline.
LineType
  DOTTED_1 : LineType
[static] A dotted line with width 1.0
LineType
  DOTTED_2 : LineType
[static] A dotted line with width 2.0
LineType
  DOTTED_3 : LineType
[static] A dotted line with width 3.0
LineType
  DOTTED_4 : LineType
[static] A dotted line with width 4.0
LineType
  DOTTED_5 : LineType
[static] A dotted line with width 5.0
LineType
  DOTTED_SYTLE : uint = 2
[static] Line style specifier that describes a dotted line.
LineType
  LINE_1 : LineType
[static] A solid line with width 1.0
LineType
  LINE_2 : LineType
[static] A solid line with width 2.0
LineType
  LINE_3 : LineType
[static] A solid line with width 3.0
LineType
  LINE_4 : LineType
[static] A solid line with width 4.0
LineType
  LINE_5 : LineType
[static] A solid line with width 5.0
LineType
  LINE_6 : LineType
[static] A solid line with width 6.0
LineType
  LINE_7 : LineType
[static] A solid line with width 7.0
LineType
  LINE_SYTLE : uint = 0
[static] Line style specifier that describes a solid line.
LineType
Property Detail
lineStyleproperty
lineStyle:uint  [read-only]

The line style that is used by this instance.


Implementation
    public function get lineStyle():uint
Constructor Detail
LineType()Constructor
public function LineType(width:Number = 1.0, cap:String = null, join:String = null, miterLimit:Number = 0, dashPattern:Array = null, style:uint = 0, pixelHinting:Boolean = true)

Constructor.

Parameters
width:Number (default = 1.0) — Specifies the line width, in pixels.
 
cap:String (default = null) — Specifies the type of caps at the end of lines. Valid values are "round", "square", and "none".
 
join:String (default = null) — Specifies the type of joint appearance used at angles. Valid values are "round", "miter", and "bevel".
 
miterLimit:Number (default = 0) — Indicates the limit at which a miter is cut off. Valid values range from 0 to 255.
 
dashPattern:Array (default = null) — The dash pattern to use for dashed lines.
 
style:uint (default = 0) — The line style as defined above
 
pixelHinting:Boolean (default = true)

See also

Method Detail
clone()method
public function clone():Object

Creates a clone of thie object

Returns
Object
getLineType()method 
public static function getLineType(width:int, style:uint):LineType

Factory method which creates a LineType instance with the given width and style

Parameters

width:int — The line width
 
style:uint — The line style as defined above

Returns
LineType — A new LineType instance.
Constant Detail
CUSTOM_SYTLEConstant
public static const CUSTOM_SYTLE:uint = 127

Line style specifier that describes a custom line.

See also

DASHED_1Constant 
public static const DASHED_1:LineType

A dashed line with width 1.0

DASHED_2Constant 
public static const DASHED_2:LineType

A dashed line with width 2.0

DASHED_3Constant 
public static const DASHED_3:LineType

A dashed line with width 3.0

DASHED_4Constant 
public static const DASHED_4:LineType

A dashed line with width 4.0

DASHED_5Constant 
public static const DASHED_5:LineType

A dashed line with width 5.0

DASHED_DOTTED_1Constant 
public static const DASHED_DOTTED_1:LineType

A dashed line with width 1.0

DASHED_DOTTED_2Constant 
public static const DASHED_DOTTED_2:LineType

A dashed line with width 2.0

DASHED_DOTTED_3Constant 
public static const DASHED_DOTTED_3:LineType

A dashed line with width 3.0

DASHED_DOTTED_4Constant 
public static const DASHED_DOTTED_4:LineType

A dashed line with width 4.0

DASHED_DOTTED_5Constant 
public static const DASHED_DOTTED_5:LineType

A dashed line with width 5.0

DASHED_DOTTED_SYTLEConstant 
public static const DASHED_DOTTED_SYTLE:uint = 3

Line style specifier that describes a dashed-dotted line.

See also

DASHED_SYTLEConstant 
public static const DASHED_SYTLE:uint = 1

Line style specifier that describes a dashedline.

See also

DOTTED_1Constant 
public static const DOTTED_1:LineType

A dotted line with width 1.0

DOTTED_2Constant 
public static const DOTTED_2:LineType

A dotted line with width 2.0

DOTTED_3Constant 
public static const DOTTED_3:LineType

A dotted line with width 3.0

DOTTED_4Constant 
public static const DOTTED_4:LineType

A dotted line with width 4.0

DOTTED_5Constant 
public static const DOTTED_5:LineType

A dotted line with width 5.0

DOTTED_SYTLEConstant 
public static const DOTTED_SYTLE:uint = 2

Line style specifier that describes a dotted line.

See also

LINE_1Constant 
public static const LINE_1:LineType

A solid line with width 1.0

LINE_2Constant 
public static const LINE_2:LineType

A solid line with width 2.0

LINE_3Constant 
public static const LINE_3:LineType

A solid line with width 3.0

LINE_4Constant 
public static const LINE_4:LineType

A solid line with width 4.0

LINE_5Constant 
public static const LINE_5:LineType

A solid line with width 5.0

LINE_6Constant 
public static const LINE_6:LineType

A solid line with width 6.0

LINE_7Constant 
public static const LINE_7:LineType

A solid line with width 7.0

LINE_SYTLEConstant 
public static const LINE_SYTLE:uint = 0

Line style specifier that describes a solid line.

See also