dojox/gfx/canvas.Path (version 1.10)

Summary

a path shape (Canvas)

Usage

var foo = new canvas.Path();
dojox/gfx/canvas

See the dojox/gfx/canvas.Path reference documentation for more information.

Property Summary

Method Summary

Properties

_2PI
Defined by: dojox/gfx/path
_validSegments
Defined by: dojox/gfx/path
canvasClip
Defined by: dojox/gfx/canvas

Methods

_applyTransform()
Defined by dojox/gfx/shape

physically sets a matrix

Returns:function

physically sets a matrix

_arcTo(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_closePath(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_collectArgs(array,args)
Defined by dojox/gfx/path

converts an array of arguments to plain numeric values

Parameter Type Description
array Array

an output argument (array of numbers)

args Array

an input argument (can be values of Boolean, Number, dojox/gfx.Point, or an embedded array of them)

_confirmSegmented()
Defined by dojox/gfx/path
_curveToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_curveToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_getRealBBox()
Defined by dojox/gfx/path

returns an array of four points or null four points represent four corners of the untransformed bounding box

Returns:undefined | null
_getRealMatrix()
Defined by dojox/gfx/shape

returns the cumulative ('real') transformation matrix by combining the shape's matrix with its parent's matrix

Returns:undefined
_hLineToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_hLineToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_lineToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_lineToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_moveToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_moveToBack()
Defined by dojox/gfx/shape

renderer-specific hook, see dojox/gfx/shape.Shape.moveToFront()

_moveToFront()
Defined by dojox/gfx/shape

renderer-specific hook, see dojox/gfx/shape.Shape.moveToFront()

_moveToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_pushSegment(action,args)
Defined by dojox/gfx/path

adds a segment

Parameter Type Description
action String

valid SVG code for a segment's type

args Array

a list of parameters for this segment

_qCurveToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_qCurveToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_qSmoothCurveToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_qSmoothCurveToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_render(ctx)
Defined by dojox/gfx/canvas

render the shape

Parameter Type Description
ctx Object
_renderClip(ctx)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx undefined
_renderDashedStroke(ctx,apply)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx undefined
apply undefined
_renderFill(ctx,apply)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx Object
apply Boolean
_renderShape(ctx)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx Object
_renderStroke(ctx,apply)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx Object
apply Boolean
_renderTransform(ctx)
Defined by dojox/gfx/canvas
Parameter Type Description
ctx Object
_setParent(parent,matrix)
Defined by dojox/gfx/shape

sets a parent

Parameter Type Description
parent Object

a parent or null (see dojox/gfx/shape.Surface, or dojox/gfx.Group)

matrix dojox/gfx/matrix.Matrix2D

a 2D matrix or a matrix-like object

Returns:undefined
_setPath()
Defined by dojox/gfx/canvas
_smoothCurveToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_smoothCurveToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_updateBBox(x,y,m)
Defined by dojox/gfx/path

updates the bounding box of path with new point

Parameter Type Description
x Number

an x coordinate

y Number

a y coordinate

m undefined
_updateParentMatrix(matrix)
Defined by dojox/gfx/shape

updates the parent matrix with new matrix

Parameter Type Description
matrix dojox/gfx/Matrix2D

a 2D matrix or a matrix-like object

Returns:undefined
_updateWithSegment(segment)
Defined by dojox/gfx/canvas
Parameter Type Description
segment undefined
_vLineToA(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
_vLineToR(result,action,args,doDash)
Defined by dojox/gfx/canvas
Parameter Type Description
result undefined
action undefined
args undefined
doDash undefined
applyLeftTransform(matrix)
Defined by dojox/gfx/shape

multiplies the existing matrix with an argument on left side (matrix * this.matrix)

Parameter Type Description
matrix dojox/gfx/matrix.Matrix2D

a matrix or a matrix-like object (see an argument of dojox/gfx/matrix.Matrix2D constructor for a list of acceptable arguments)

Returns:function

multiplies the existing matrix with an argument on left side (matrix * this.matrix)

applyRightTransform(matrix)
Defined by dojox/gfx/shape

multiplies the existing matrix with an argument on right side (this.matrix * matrix)

Parameter Type Description
matrix dojox/gfx/matrix.Matrix2D

a matrix or a matrix-like object (see an argument of dojox/gfx/matrix.Matrix2D constructor for a list of acceptable arguments)

Returns:function

multiplies the existing matrix with an argument on right side (this.matrix * matrix)

applyTransform(matrix)
Defined by dojox/gfx/shape

a shortcut for dojox/gfx/shape.Shape.applyRightTransform

Parameter Type Description
matrix dojox/gfx/matrix.Matrix2D

a matrix or a matrix-like object (see an argument of dojox/gfx/matrix.Matrix2D constructor for a list of acceptable arguments)

Returns:function

a shortcut for dojox/gfx/shape.Shape.applyRightTransform

arcTo()
Defined by dojox/gfx/path

forms an elliptic arc segment

Returns:function

forms an elliptic arc segment

closePath()
Defined by dojox/gfx/path

closes a path

Returns:function

closes a path

connect()
Defined by dojox/gfx/canvas
curveTo()
Defined by dojox/gfx/path

forms a curve segment

Returns:function

forms a curve segment

destroy()
Defined by dojox/gfx/shape

Releases all internal resources owned by this shape. Once this method has been called, the instance is considered destroyed and should not be used anymore.

disconnect()
Defined by dojox/gfx/canvas
getAbsoluteMode()
Defined by dojox/gfx/path

returns a current value of the absolute mode

Returns:undefined
getBoundingBox()
Defined by dojox/gfx/shape

Returns the bounding box Rectangle for this shape or null if a BoundingBox cannot be calculated for the shape on the current renderer or for shapes with no geometric area (points). A bounding box is a rectangular geometric region defining the X and Y extent of the shape. (see dojox/gfx.defaultRect) Note that this method returns a direct reference to the attribute of this instance. Therefore you should not modify its value directly but clone it instead.

Returns:undefined
getClip()
Defined by dojox/gfx/shape
Returns:undefined
getEventSource()
Defined by dojox/gfx/canvas
Returns:null
getFill()
Defined by dojox/gfx/shape

Returns the current fill object or null (see dojox/gfx.defaultLinearGradient, dojox/gfx.defaultRadialGradient, dojox/gfx.defaultPattern, or dojo/Color)

Returns:undefined
getLastPosition()
Defined by dojox/gfx/path

returns the last point in the path, or null

Returns:null
getNode()
Defined by dojox/gfx/shape

Different graphics rendering subsystems implement shapes in different ways. This method provides access to the underlying graphics subsystem object. Clients calling this method and using the return value must be careful not to try sharing or using the underlying node in a general way across renderer implementation. Returns the underlying graphics Node, or null if no underlying graphics node is used by this shape.

Returns:undefined
getParent()
Defined by dojox/gfx/shape

Returns the parent Shape, Group or null if this Shape is unparented. (see dojox/gfx/shape.Surface, or dojox/gfx.Group)

Returns:undefined
getShape()
Defined by dojox/gfx/shape

returns the current Shape object or null (see dojox/gfx.defaultPath, dojox/gfx.defaultPolyline, dojox/gfx.defaultRect, dojox/gfx.defaultEllipse, dojox/gfx.defaultCircle, dojox/gfx.defaultLine, or dojox/gfx.defaultImage)

Returns:undefined
getStroke()
Defined by dojox/gfx/shape

Returns the current stroke object or null (see dojox/gfx.defaultStroke)

Returns:undefined
getTransform()
Defined by dojox/gfx/shape

Returns the current transformation matrix applied to this Shape or null

Returns:undefined
getTransformedBoundingBox()
Defined by dojox/gfx/shape

returns an array of four points or null four points represent four corners of the untransformed bounding box

Returns:null | Array
hLineTo()
Defined by dojox/gfx/path

forms a horizontal line segment

Returns:function

forms a horizontal line segment

lineTo()
Defined by dojox/gfx/path

forms a line segment

Returns:function

forms a line segment

moveTo()
Defined by dojox/gfx/path

forms a move segment

Returns:function

forms a move segment

moveToBack()
Defined by dojox/gfx/shape

moves a shape to back of its parent's list of shapes

Returns:function

moves a shape to back of its parent's list of shapes

moveToFront()
Defined by dojox/gfx/shape

moves a shape to front of its parent's list of shapes

Returns:function

moves a shape to front of its parent's list of shapes

on()
Defined by dojox/gfx/canvas
qCurveTo()
Defined by dojox/gfx/path

forms a quadratic curve segment

Returns:function

forms a quadratic curve segment

qSmoothCurveTo()
Defined by dojox/gfx/path

forms a quadratic smooth curve segment

Returns:function

forms a quadratic smooth curve segment

removeShape(silently)
Defined by dojox/gfx/shape

removes the shape from its parent's list of shapes

Parameter Type Description
silently Boolean

if true, do not redraw a picture yet

Returns:function

removes the shape from its parent's list of shapes

setAbsoluteMode(mode)
Defined by dojox/gfx/path

sets an absolute or relative mode for path points

Parameter Type Description
mode Boolean

true/false or "absolute"/"relative" to specify the mode

Returns:function

sets an absolute or relative mode for path points

setClip(clip)
Defined by dojox/gfx/canvas
Parameter Type Description
clip Object
Returns:function
setFill(fill)
Defined by dojox/gfx/shape

sets a fill object (the default implementation simply ignores it)

Parameter Type Description
fill Object

a fill object (see dojox/gfx.defaultLinearGradient, dojox/gfx.defaultRadialGradient, dojox/gfx.defaultPattern, or dojo/_base/Color)

Returns:function

sets a fill object (the default implementation simply ignores it)

setShape()
Defined by dojox/gfx/canvas
Returns:undefined
setStroke()
Defined by dojox/gfx/canvas
Returns:function
setTransform(matrix)
Defined by dojox/gfx/shape

sets a transformation matrix

Parameter Type Description
matrix dojox/gfx/matrix.Matrix2D

a matrix or a matrix-like object (see an argument of dojox/gfx/matrix.Matrix2D constructor for a list of acceptable arguments)

Returns:undefined
smoothCurveTo()
Defined by dojox/gfx/path

forms a smooth curve segment

Returns:function

forms a smooth curve segment

vLineTo()
Defined by dojox/gfx/path

forms a vertical line segment

Returns:function

forms a vertical line segment

Error in the documentation? Can’t find what you are looking for? Let us know!