| Package | com.yworks.graph.drawing.compat |
| Class | public class LineType |
| Inheritance | LineType AdvancedStroke mx.graphics.Stroke |
| Implements | ICloneable |
| Property | Defined by | ||
|---|---|---|---|
| lineStyle : uint [read-only]
The line style that is used by this instance.
| LineType | ||
![]() | pattern : Array
Get or set the pattern used for drawing dashed/dotted strokes.
| AdvancedStroke | |
| Method | Defined by | ||
|---|---|---|---|
|
LineType(width:Number = 1.0, cap:String = null, join:String = null, miterLimit:Number = 0, dashPattern:Array = null, style:uint = 0)
Constructor.
| LineType | ||
|
clone():Object
Creates a clone of thie object
| LineType | ||
![]() |
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 | |
![]() |
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 | |
![]() |
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 | ||
![]() |
Reset the stroke state.
| AdvancedStroke | |
| Constant | Defined 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_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 | ||
| lineStyle | property |
lineStyle:uint [read-only]The line style that is used by this instance.
Implementation public function get lineStyle():uint
| LineType | () | constructor |
public function LineType(width:Number = 1.0, cap:String = null, join:String = null, miterLimit:Number = 0, dashPattern:Array = null, style:uint = 0)Constructor.
Parameterswidth: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
|
See also
| clone | () | method |
public function clone():ObjectCreates a clone of thie object
ReturnsObject |
| getLineType | () | method |
public static function getLineType(width:int, style:uint):LineType
Factory method which creates a LineType instance with the given width and style
width:int — The line width
|
|
style:uint — The line style as defined above
|
LineType —
A new LineType instance.
|
| CUSTOM_SYTLE | constant |
public static const CUSTOM_SYTLE:uint = 127Line style specifier that describes a custom line.
See also
| DASHED_1 | constant |
public static const DASHED_1:LineTypeA dashed line with width 1.0
| DASHED_2 | constant |
public static const DASHED_2:LineTypeA dashed line with width 2.0
| DASHED_3 | constant |
public static const DASHED_3:LineTypeA dashed line with width 3.0
| DASHED_4 | constant |
public static const DASHED_4:LineTypeA dashed line with width 4.0
| DASHED_5 | constant |
public static const DASHED_5:LineTypeA dashed line with width 5.0
| DASHED_SYTLE | constant |
public static const DASHED_SYTLE:uint = 1Line style specifier that describes a dashedline.
See also
| DOTTED_1 | constant |
public static const DOTTED_1:LineTypeA dotted line with width 1.0
| DOTTED_2 | constant |
public static const DOTTED_2:LineTypeA dotted line with width 2.0
| DOTTED_3 | constant |
public static const DOTTED_3:LineTypeA dotted line with width 3.0
| DOTTED_4 | constant |
public static const DOTTED_4:LineTypeA dotted line with width 4.0
| DOTTED_5 | constant |
public static const DOTTED_5:LineTypeA dotted line with width 5.0
| DOTTED_SYTLE | constant |
public static const DOTTED_SYTLE:uint = 2Line style specifier that describes a dotted line.
See also
| LINE_1 | constant |
public static const LINE_1:LineTypeA solid line with width 1.0
| LINE_2 | constant |
public static const LINE_2:LineTypeA solid line with width 2.0
| LINE_3 | constant |
public static const LINE_3:LineTypeA solid line with width 3.0
| LINE_4 | constant |
public static const LINE_4:LineTypeA solid line with width 4.0
| LINE_5 | constant |
public static const LINE_5:LineTypeA solid line with width 5.0
| LINE_6 | constant |
public static const LINE_6:LineTypeA solid line with width 6.0
| LINE_7 | constant |
public static const LINE_7:LineTypeA solid line with width 7.0
| LINE_SYTLE | constant |
public static const LINE_SYTLE:uint = 0Line style specifier that describes a solid line.
See also