Line
- class Communicator.Markup.Shape.Line()
This class represents a single line consisting of two points. P1 is considered the start and P2 is considered the end of the line. Each Point may have its endcap settings adjusted independently.
Constructors
Methods
Constructors
Methods
getEndEndcapColor
getEndEndcapSize
getEndEndcapType
- Line.getEndEndcapType()
Gets the end endcap type for this shape. The default value is none.
- Return type
- Returns
the end endcap type
getEndcapsInverted
- Line.getEndcapsInverted()
Gets whether endcaps are inverted for this shape. The default value is false.
- Return type
boolean
- Returns
value indicating whether endcaps are inverted
getP1
getP2
getStartEndcapColor
getStartEndcapSize
getStartEndcapType
- Line.getStartEndcapType()
Gets the start endcap type for this shape. The default Value is none.
- Return type
- Returns
the start endcap type
getStrokeColor
getStrokeWidth
set
setEndEndcapColor
setEndEndcapSize
setEndEndcapType
- Line.setEndEndcapType(endcapType)
Sets the end endcap type for this shape
- Arguments
endcapType (EndcapType) – the new endcap type
- Return type
void
setEndcapType
- Line.setEndcapType(endcapType)
Convenience for setting the start and eend endcap type for this shape
- Arguments
endcapType (EndcapType) – the new endcap type
- Return type
void
setEndcapsInverted
- Line.setEndcapsInverted(inverted)
Sets whether endcapsare inverted for this shape.
- Arguments
inverted (
boolean()
) – value indicated whether endcaps should be inverted
- Return type
void
setP1
setP2
setStartEndcapColor
setStartEndcapSize
setStartEndcapType
- Line.setStartEndcapType(endcapType)
Sets the start endcap type for this shape
- Arguments
endcapType (EndcapType) – the new endcap type
- Return type
void