Methods
- clear
Points - get
End Endcap Color - get
End Endcap Size - get
End Endcap Type - get
Endcaps Inverted - get
Points - get
Start Endcap Color - get
Start Endcap Size - get
Start Endcap Type - get
Stroke Color - get
Stroke Width - push
Point - set
End Endcap Color - set
End Endcap Size - set
End Endcap Type - set
Endcap Type - set
Endcaps Inverted - set
Start Endcap Color - set
Start Endcap Size - set
Start Endcap Type - set
Stroke Color - set
Stroke Width
Methods
clearPoints
-
Removes all points from this polyline
Returns void
getEndEndcapColor
-
Gets the color of the end endcap. Default value is black.
Returns Color
color for the end endcap.
getEndEndcapSize
-
Gets the size of the end endcap in pixels. Default value is 9.
Returns Pixels
size of the end endcap.
getEndEndcapType
-
Gets the end endcap type for this shape. The default value is none.
Returns EndcapType
the end endcap type
getEndcapsInverted
-
Gets whether endcaps are inverted for this shape. The default value is false.
Returns boolean
value indicating whether endcaps are inverted
getPoints
-
Gets the points in this polyline
Returns Point2[]
the points in this polyline
getStartEndcapColor
-
Gets the color of the start endcap. Default value is black.
Returns Color
color for the start endcap.
getStartEndcapSize
-
Gets the size of the start endcap in pixels. Default value is 9.
Returns Pixels
size of the start endcap.
getStartEndcapType
-
Gets the start endcap type for this shape. The default Value is none.
Returns EndcapType
the start endcap type
getStrokeColor
-
Gets the stroke color for this shape
Returns Color
the stroke color
getStrokeWidth
-
Gets the stroke width for this shape in pixels
Returns Pixels
the stroke width in pixels
pushPoint
-
Adds a point to the polyline
Parameters
-
point: Point2
the point to add to the line
Returns void
-
setEndEndcapColor
-
Sets the color for the end endcap.
Parameters
-
color: Color
the end endcap color value.
Returns void
-
setEndEndcapSize
-
Sets the size of the end endcap in pixels.
Parameters
-
size: Pixels
the end endcap.
Returns void
-
setEndEndcapType
-
Sets the end endcap type for this shape
Parameters
-
endcapType: EndcapType
the new endcap type
Returns void
-
setEndcapType
-
Convenience for setting the start and eend endcap type for this shape
Parameters
-
endcapType: EndcapType
the new endcap type
Returns void
-
setEndcapsInverted
-
Sets whether endcapsare inverted for this shape.
Parameters
-
inverted: boolean
value indicated whether endcaps should be inverted
Returns void
-
setStartEndcapColor
-
Sets the color for the start endcap.
Parameters
-
color: Color
the start endcap color value.
Returns void
-
setStartEndcapSize
-
Sets the size of the start endcap in pixels.
Parameters
-
size: Pixels
the start endcap.
Returns void
-
setStartEndcapType
-
Sets the start endcap type for this shape
Parameters
-
endcapType: EndcapType
the new endcap type
Returns void
-
setStrokeColor
-
Sets the stroke color for this shape
Parameters
-
color: Color
the stroke color
Returns void
-
setStrokeWidth
-
Sets the stroke width for this shape in pixels
Parameters
-
strokeWidth: Pixels
the stroke width in pixels
Returns void
-
This class reprsents a line defined by a list of points.