Constructor.
Mixin common commands.
Get the anchor.
Set the anchor position.
Get the style of the arc.
Specifies how to draw the arc. If type is pie (the default) then the arc's region is defined by a section of the oval's perimeter plus two line segments, one between the center of the oval and each end of the perimeter section. If type is chord then the arc's region is defined by a section of the oval's perimeter plus a single line segment connecting the two end points of the perimeter section. If type is arc then the arc's region consists of a section of the perimeter alone. In this last case the fill color is ignored.
Get the extent of the arc.
Specifies the size of the angular range occupied by the arc. The arc's range extends for degrees counter-clockwise from the starting angle. Degrees may be negative. If it is greater than 360 or less than -360, then degrees modulo 360 is used as the extent.
Get the start angle of the arc.
Specifies the beginning of the angular range occupied by the arc. Degrees is given in units of degrees measured counter-clockwise from the 3-o'clock position; it may be either positive or negative.
Bind a callback to a particular event triggered by this item. This command is identical to UiElement's bind method.
Unbind a previous event binding.
Get the fill color.
Set the fill color. Use colors from the preset color list or a web style hex color.
Get the active fill color. An item's active state is triggered when the mouse rolls over the item.
Set the active fill color. An item's active state is triggered when the mouse rolls over the item. Use colors from the preset color list or a web style hex color.
Get the disabled fill color.
Set the disabled fill color. Use colors from the preset color list or a web style hex color.
Get the image.
Set the image.
Get the active image.
Set the active image.
Get the disabled image.
Set the disabled image.
Get the arrow position.
Indicates whether or not arrowheads are to be drawn at one or both ends of the line.
Get the arrow shape.
This option indicates how to draw arrowheads. The shape argument must be a list with three elements, each specifying a distance. The first element of the list gives the distance along the line from the neck of the arrowhead to its tip. The second element gives the distance along the line from the trailing points of the arrowhead to the tip, and the third element gives the distance from the outside edge of the line to the trailing points.
Get the cap style.
Specifies the ways in which caps are to be drawn at the endpoints of the line. When arrowheads are drawn the cap style is ignored.
Get the outline color.
Set the outline color. Use colors from the preset color list or a web style hex color.
Get the active outline color. An item's active state is triggered when the mouse rolls over the item.
Set the active outline color. An item's active state is triggered when the mouse rolls over the item. Use colors from the preset color list or a web style hex color.
Get the disabled outline color.
Set the disabled outline color. Use colors from the preset color list or a web style hex color.
Get the dash pattern.
Set the dash pattern of the outline. Each element represents the number of pixels of a line segment. Only the odd segments are drawn using the outline color. The other segments are drawn transparent.
Get the active dash pattern. An item's active state is triggered when the mouse rolls over the item.
Set the active dash pattern of the outline. Each element represents the number of pixels of a line segment. Only the odd segments are drawn using the outline color. The other segments are drawn transparent. An item's active state is triggered when the mouse rolls over the item.
Get the disabled dash pattern.
Set the disabled dash pattern of the outline. Each element represents the number of pixels of a line segment. Only the odd segments are drawn using the outline color. The other segments are drawn transparent.
Get the dash offset.
Set the dash offset.
Get the width of the outline.
Set the width of the outline.
Get the width of the active outline. An item's active state is triggered when the mouse rolls over the item.
Set the width of the active outline. An item's active state is triggered when the mouse rolls over the item.
Get the width of the disabled outline.
Set the width of the disabled outline.
Get the state of this item.
Set the item state. The only valid states are normal, disabled or hidden.
Get the text angle.
Specifies how many degrees to rotate the text anticlockwise about the positioning point for the text; it may have any floating-point value from 0.0 to 360.0. For example, if rotationDegrees is 90, then the text will be drawn vertically from bottom to top. This option defaults to 0.0. Degrees is given in units of degrees measured counter-clockwise from the 3-o'clock position; it may be either positive or negative.
Get the font.
Specifies the font to use for the text item. The format of the string to pass when specifing a font is as follows.
Get the alignment
Specifies how to justify the text within its bounding region.
Get the text.
Specifies the characters to be displayed in the text item. Newline characters cause line breaks.
Get max line length.
Specifies a maximum line length for the text. If this option is zero (the default) the text is broken into lines only at newline characters. However, if this option is non-zero then any line that would be longer than line length is broken just before a space character to make the line shorter than lineLength; the space character is treated as if it were a newline character.
Get the join style.
Specifies the ways in which joints are to be drawn at the vertices of the line. If this option is not specified then it defaults to round. If the line only contains two points then this option is irrelevant.
Get the smooth method.
If the smoothing method is bezier, this indicates that the line should be drawn as a curve, rendered as a set of quadratic splines: one spline is drawn for the first and second line segments, one for the second and third, and so on. Straight-line segments can be generated within a curve by duplicating the end-points of the desired line segment. If the smoothing method is raw, this indicates that the line should also be drawn as a curve but where the list of coordinates is such that the first coordinate pair (and every third coordinate pair thereafter) is a knot point on a cubic bezier curve, and the other coordinates are control points on the cubic bezier curve. Straight line segments can be generated within a curve by making control points equal to their neighbouring knot points. If the last point is a control point and not a knot point, the point is repeated (one or two times) so that it also becomes a knot point.
Get smooth method spline steps.
Specifies the degree of smoothness desired for curves: each spline will be approximated with number line segments.
Get the widget.
Specifies the widget to associate with this item. The widget specified must either be a child of the canvas widget or a child of some ancestor of the canvas widget.
Get the widget width.
Specifies the width to assign to the item's widget. If this option is not specified, or if it is specified as zero, then the widget is given whatever width it requests internally.
Get the widget height.
Specifies the height to assign to the item's widget. If this option is not specified, or if it is specified as zero, then the widget is given whatever height it requests internally.
The unique id of this element.
The parent element if any.
These are injected common commands that can also be used with this widget.
Anchor
ArcSpecific
Bind
FillColor
ImageSpecific
LineSpecific
OutlineColor
OutlineDash
OutlineWidth
State
TextSpecific
Vertex
WidgetSpecific
Class representing a tag configuration. Tags can be applied to numerous items on the canvas but keep in mind the tag options set in the configuration must be compatible for all items the tag is assigned to or an error will occur. Tags must be applied to items before they can be configured.