Polyline
-
class
Markup.Shapes.Polyline() This class reprsents a line defined by a list of points.
Index
Constructors
Methods
clearPointsgetEndcapsInvertedgetEndEndcapColorgetEndEndcapSizegetEndEndcapTypegetPointsgetStartEndcapColorgetStartEndcapSizegetStartEndcapTypegetStrokeColorgetStrokeWidthpushPointsetEndcapsInvertedsetEndcapTypesetEndEndcapColorsetEndEndcapSizesetEndEndcapTypesetStartEndcapColorsetStartEndcapSizesetStartEndcapTypesetStrokeColorsetStrokeWidth
Methods
-
Markup.Shapes.Polyline.clearPoints() - clearPoints(): void
Removes all points from this polyline
Returns: void
-
Markup.Shapes.Polyline.getEndcapsInverted() inherited
getEndcapsInverted(): booleanGets whether endcaps are inverted for this shape. The default value is false.
Returns: boolean
value indicating whether endcaps are inverted
-
Markup.Shapes.Polyline.getEndEndcapColor() inherited
getEndEndcapColor():ColorGets the color of the end endcap. Default value is black.
Returns:
Colorcolor for the end endcap.
-
Markup.Shapes.Polyline.getEndEndcapSize() inherited
getEndEndcapSize(): numberGets the size of the end endcap in pixels. Default value is 9.
Returns: number
size of the end endcap.
-
Markup.Shapes.Polyline.getEndEndcapType() inherited
getEndEndcapType():EndcapTypeGets the end endcap type for this shape. The default value is none.
Returns:
EndcapTypethe end endcap type
-
Markup.Shapes.Polyline.getPoints() - getPoints():
Point2[]Gets the points in this polyline
Returns:
Point2[]the points in this polyline
-
Markup.Shapes.Polyline.getStartEndcapColor() inherited
getStartEndcapColor():ColorGets the color of the start endcap. Default value is black.
Returns:
Colorcolor for the start endcap.
-
Markup.Shapes.Polyline.getStartEndcapSize() inherited
getStartEndcapSize(): numberGets the size of the start endcap in pixels. Default value is 9.
Returns: number
size of the start endcap.
-
Markup.Shapes.Polyline.getStartEndcapType() inherited
getStartEndcapType():EndcapTypeGets the start endcap type for this shape. The default Value is none.
Returns:
EndcapTypethe start endcap type
-
Markup.Shapes.Polyline.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.Polyline.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.Polyline.pushPoint() - pushPoint(point:
Point2): voidAdds a point to the polyline
Parameters
point:
Point2the point to add to the lineReturns: void
-
Markup.Shapes.Polyline.setEndcapsInverted() inherited
setEndcapsInverted(inverted: boolean): voidSets whether endcapsare inverted for this shape.
Parameters
inverted: boolean
value indicated whether endcaps should be invertedReturns: void
-
Markup.Shapes.Polyline.setEndcapType() inherited
setEndcapType(endcapType:EndcapType): voidConvenience for setting the start and eend endcap type for this shape
Parameters
endcapType:
EndcapTypethe new endcap typeReturns: void
-
Markup.Shapes.Polyline.setEndEndcapColor() inherited
setEndEndcapColor(color:Color): voidSets the color for the end endcap.
Parameters
color:
Colorthe end endcap color value.Returns: void
-
Markup.Shapes.Polyline.setEndEndcapSize() inherited
setEndEndcapSize(size: number): voidSets the size of the end endcap in pixels.
Parameters
size: number
the end endcap.Returns: void
-
Markup.Shapes.Polyline.setEndEndcapType() inherited
setEndEndcapType(endcapType:EndcapType): voidSets the end endcap type for this shape
Parameters
endcapType:
EndcapTypethe new endcap typeReturns: void
-
Markup.Shapes.Polyline.setStartEndcapColor() inherited
setStartEndcapColor(color:Color): voidSets the color for the start endcap.
Parameters
color:
Colorthe start endcap color value.Returns: void
-
Markup.Shapes.Polyline.setStartEndcapSize() inherited
setStartEndcapSize(size: number): voidSets the size of the start endcap in pixels.
Parameters
size: number
the start endcap.Returns: void
-
Markup.Shapes.Polyline.setStartEndcapType() inherited
setStartEndcapType(endcapType:EndcapType): voidSets the start endcap type for this shape
Parameters
endcapType:
EndcapTypethe new endcap typeReturns: void
-
Markup.Shapes.Polyline.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.Polyline.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void