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, pixelHinting:Boolean = true)
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_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 |
lineStyle | property |
lineStyle:uint
[read-only] The line style that is used by this instance.
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, pixelHinting:Boolean = true)
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
| |
pixelHinting:Boolean (default = true )
|
See also
clone | () | method |
public function clone():Object
Creates 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
Parameters
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 = 127
Line style specifier that describes a custom line.
See also
DASHED_1 | Constant |
public static const DASHED_1:LineType
A dashed line with width 1.0
DASHED_2 | Constant |
public static const DASHED_2:LineType
A dashed line with width 2.0
DASHED_3 | Constant |
public static const DASHED_3:LineType
A dashed line with width 3.0
DASHED_4 | Constant |
public static const DASHED_4:LineType
A dashed line with width 4.0
DASHED_5 | Constant |
public static const DASHED_5:LineType
A dashed line with width 5.0
DASHED_DOTTED_1 | Constant |
public static const DASHED_DOTTED_1:LineType
A dashed line with width 1.0
DASHED_DOTTED_2 | Constant |
public static const DASHED_DOTTED_2:LineType
A dashed line with width 2.0
DASHED_DOTTED_3 | Constant |
public static const DASHED_DOTTED_3:LineType
A dashed line with width 3.0
DASHED_DOTTED_4 | Constant |
public static const DASHED_DOTTED_4:LineType
A dashed line with width 4.0
DASHED_DOTTED_5 | Constant |
public static const DASHED_DOTTED_5:LineType
A dashed line with width 5.0
DASHED_DOTTED_SYTLE | Constant |
public static const DASHED_DOTTED_SYTLE:uint = 3
Line style specifier that describes a dashed-dotted line.
See also
DASHED_SYTLE | Constant |
public static const DASHED_SYTLE:uint = 1
Line style specifier that describes a dashedline.
See also
DOTTED_1 | Constant |
public static const DOTTED_1:LineType
A dotted line with width 1.0
DOTTED_2 | Constant |
public static const DOTTED_2:LineType
A dotted line with width 2.0
DOTTED_3 | Constant |
public static const DOTTED_3:LineType
A dotted line with width 3.0
DOTTED_4 | Constant |
public static const DOTTED_4:LineType
A dotted line with width 4.0
DOTTED_5 | Constant |
public static const DOTTED_5:LineType
A dotted line with width 5.0
DOTTED_SYTLE | Constant |
public static const DOTTED_SYTLE:uint = 2
Line style specifier that describes a dotted line.
See also
LINE_1 | Constant |
public static const LINE_1:LineType
A solid line with width 1.0
LINE_2 | Constant |
public static const LINE_2:LineType
A solid line with width 2.0
LINE_3 | Constant |
public static const LINE_3:LineType
A solid line with width 3.0
LINE_4 | Constant |
public static const LINE_4:LineType
A solid line with width 4.0
LINE_5 | Constant |
public static const LINE_5:LineType
A solid line with width 5.0
LINE_6 | Constant |
public static const LINE_6:LineType
A solid line with width 6.0
LINE_7 | Constant |
public static const LINE_7:LineType
A solid line with width 7.0
LINE_SYTLE | Constant |
public static const LINE_SYTLE:uint = 0
Line style specifier that describes a solid line.
See also