a textpath shape (Silverlight)
See the dojox/gfx/silverlight.TextPath reference documentation for more information.
Used for displaying bidi scripts in right layout. Defines the base direction of text that displayed, can have 3 values:
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) |
returns the adjusted ("real") transformation matrix
returns an array of four points or null four points represent four corners of the untransformed bounding box
returns the cumulative ('real') transformation matrix by combining the shape's matrix with its parent's matrix
moves a shape to back of its parent's list of shapes (Silverlight)
moves a shape to back of its parent's list of shapes (Silverlight)
moves a shape to front of its parent's list of shapes (Silverlight)
moves a shape to front of its parent's list of shapes (Silverlight)
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 |
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 |
forms a path using an SVG path string
Parameter | Type | Description |
---|---|---|
path | String | an SVG path string |
updates the bounding box of path with new point
Parameter | Type | Description |
---|---|---|
x | Number | an x coordinate |
y | Number | a y coordinate |
m | undefined |
updates the parent matrix with new matrix
Parameter | Type | Description |
---|---|---|
matrix | dojox/gfx/Matrix2D | a 2D matrix or a matrix-like object |
updates the bounding box of path with new segment
Parameter | Type | Description |
---|---|---|
segment | Object | a segment |
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) |
multiplies the existing matrix with an argument on left side (matrix * this.matrix)
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) |
multiplies the existing matrix with an argument on right side (this.matrix * matrix)
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) |
a shortcut for dojox/gfx/shape.Shape.applyRightTransform
forms an elliptic arc segment
forms an elliptic arc segment
connects a handler to an event on this shape
Parameter | Type | Description |
---|---|---|
name | undefined | |
object | undefined | |
method | undefined |
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.
connects a handler by token from an event on this shape
Parameter | Type | Description |
---|---|---|
token | undefined |
Applies the right transform on text, according to renderer.
Finds the right transformation that should be applied on the text, according to renderer. Was tested in:
Renderers: canvas (FF, Chrome, Safari), vml (IE), svg (FF, Chrome, Safari, Opera), silverlight (IE8), svgWeb(FF, Chrome, Safari, Opera, IE).
Browsers: IE [6,7,8], FF [3.6], Chrome (latest for February 2011), Safari [5.0.3], Opera [11.01].
Parameter | Type | Description |
---|---|---|
text | String | the string for manipulation, by default return value. |
textDir | String | text direction direction. Can be:
|
the string for manipulation, by default return value.
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 a Node, which is used as a source of events for this shape
Returns the current fill object or null (see dojox/gfx.defaultLinearGradient, dojox/gfx.defaultRadialGradient, dojox/gfx.defaultPattern, or dojo/Color)
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 the parent Shape, Group or null if this Shape is unparented. (see dojox/gfx/shape.Surface, or dojox/gfx.Group)
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 the current stroke object or null (see dojox/gfx.defaultStroke)
Returns the current transformation matrix applied to this Shape or null
returns an array of four points or null four points represent four corners of the untransformed bounding box
forms a horizontal line segment
forms a horizontal line segment
moves a shape to back of its parent's list of shapes
moves a shape to back of its parent's list of shapes
moves a shape to front of its parent's list of shapes
moves a shape to front of its parent's list of shapes
Connects an event to this shape.
Parameter | Type | Description |
---|---|---|
type | undefined | |
listener | undefined |
forms a quadratic curve segment
forms a quadratic curve segment
forms a quadratic smooth curve segment
forms a quadratic smooth curve segment
removes the shape from its parent's list of shapes
Parameter | Type | Description |
---|---|---|
silently | Boolean | if true, do not redraw a picture yet |
removes the shape from its parent's list of shapes
sets an absolute or relative mode for path points
Parameter | Type | Description |
---|---|---|
mode | Boolean | true/false or "absolute"/"relative" to specify the mode |
sets an absolute or relative mode for path points
sets the clipping area of this shape.
This method overrides the dojox/gfx/shape.Shape.setClip() method.
Parameter | Type | Description |
---|---|---|
clip | Object | an object that defines the clipping geometry, or null to remove clip. |
sets the clipping area of this shape.
sets a fill object (Silverlight)
Parameter | Type | Description |
---|---|---|
fill | Object | a fill object (see dojox/gfx.defaultLinearGradient, dojox/gfx.defaultRadialGradient, dojox/gfx.defaultPattern, or dojo/_base/Color) |
sets a fill object (Silverlight)
sets a font for text
Parameter | Type | Description |
---|---|---|
newFont | undefined |
sets a font for text
assigns and clears the underlying node that will represent this shape. Once set, transforms, gradients, etc, can be applied. (no fill & stroke by default)
Parameter | Type | Description |
---|---|---|
rawNode | undefined |
forms a path using a shape (Silverlight)
Parameter | Type | Description |
---|---|---|
newShape | Object | an SVG path string or a path object (see dojox/gfx.defaultPath) |
sets a stroke object (Silverlight)
Parameter | Type | Description |
---|---|---|
stroke | Object | a stroke object (see dojox/gfx.defaultStroke) |
sets a stroke object (Silverlight)
sets a text to be drawn along the path
Parameter | Type | Description |
---|---|---|
newText | undefined |
sets a text to be drawn along the path
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) |
forms a smooth curve segment
forms a smooth curve segment
forms a vertical line segment
forms a vertical line segment