Click or drag to resize

Telogis.GeoBase.Canvas.Shapes.Path

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Path Class

Path inherits from Canvas.Shapes.AbstractShape.

Represents an arbitrary figure described by a sequence of commands, as displayed in a Canvas renderer. This should not be constructed explicitly, but rather generated as the result of a call to Canvas.path.

Constructor
NameDescription
Path(canvas)

Arguments

Properties
NameTypeDescription
commandsArray

The list of instructions describing the path. Each entry in this array should itself be an array whose first element is a Canvas instruction code (currently one of Canvas.COMMAND_MOVE, Canvas.COMMAND_LINE or Canvas.COMMAND_BEZIER) and whose successive entries are Point parameters associated with this command. In the case of Canvas.COMMAND_MOVE and Canvas.COMMAND_LINE, there should be one parameter: the destination of the action. If the command is Canvas.COMMAND_BEZIER, the arguments should consist of start and end control points, followed by the destination point.