LineCollection
-
class
Markup.Shapes.LineCollection() This class is useful for specifying multiple lines that all share the same visual appearance.
Constructors
Methods
addLine()clear()getEndEndcapColor()getEndEndcapSize()getEndEndcapType()getEndcapsInverted()getLines()getStartEndcapColor()getStartEndcapSize()getStartEndcapType()getStrokeColor()getStrokeWidth()setEndEndcapColor()setEndEndcapSize()setEndEndcapType()setEndcapType()setEndcapsInverted()setStartEndcapColor()setStartEndcapSize()setStartEndcapType()setStrokeColor()setStrokeWidth()
Methods
addLine
getEndEndcapColor
-
LineCollection.getEndEndcapColor() Gets the color of the end endcap. Default value is black.
Returns: color for the end endcap. Return type: Color
getEndEndcapSize
-
LineCollection.getEndEndcapSize() Gets the size of the end endcap in pixels. Default value is 9.
Returns: size of the end endcap. Return type: number
getEndEndcapType
-
LineCollection.getEndEndcapType() Gets the end endcap type for this shape. The default value is none.
Returns: the end endcap type Return type: EndcapType
getEndcapsInverted
-
LineCollection.getEndcapsInverted() Gets whether endcaps are inverted for this shape. The default value is false.
Returns: value indicating whether endcaps are inverted Return type: boolean
getStartEndcapColor
-
LineCollection.getStartEndcapColor() Gets the color of the start endcap. Default value is black.
Returns: color for the start endcap. Return type: Color
getStartEndcapSize
-
LineCollection.getStartEndcapSize() Gets the size of the start endcap in pixels. Default value is 9.
Returns: size of the start endcap. Return type: number
getStartEndcapType
-
LineCollection.getStartEndcapType() Gets the start endcap type for this shape. The default Value is none.
Returns: the start endcap type Return type: EndcapType
getStrokeColor
-
LineCollection.getStrokeColor() Gets the stroke color for this shape
Returns: the stroke color Return type: Color
getStrokeWidth
-
LineCollection.getStrokeWidth() Gets the stroke width for this shape in pixels
Returns: the stroke width in pixels Return type: number
setEndEndcapColor
setEndEndcapSize
-
LineCollection.setEndEndcapSize(size) Arguments: - size (
number()) – the end endcap.
Sets the size of the end endcap in pixels.
Return type: void - size (
setEndEndcapType
-
LineCollection.setEndEndcapType(endcapType) Arguments: - endcapType (
EndcapType()) – the new endcap type
Sets the end endcap type for this shape
Return type: void - endcapType (
setEndcapType
-
LineCollection.setEndcapType(endcapType) Arguments: - endcapType (
EndcapType()) – the new endcap type
Convenience for setting the start and eend endcap type for this shape
Return type: void - endcapType (
setEndcapsInverted
-
LineCollection.setEndcapsInverted(inverted) Arguments: - inverted (
boolean()) – value indicated whether endcaps should be inverted
Sets whether endcapsare inverted for this shape.
Return type: void - inverted (
setStartEndcapColor
setStartEndcapSize
-
LineCollection.setStartEndcapSize(size) Arguments: - size (
number()) – the start endcap.
Sets the size of the start endcap in pixels.
Return type: void - size (
setStartEndcapType
-
LineCollection.setStartEndcapType(endcapType) Arguments: - endcapType (
EndcapType()) – the new endcap type
Sets the start endcap type for this shape
Return type: void - endcapType (