Line
-
class
Markup.Shapes.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.
Index
Constructors
Methods
getEndcapsInvertedgetEndEndcapColorgetEndEndcapSizegetEndEndcapTypegetP1getP2getStartEndcapColorgetStartEndcapSizegetStartEndcapTypegetStrokeColorgetStrokeWidthsetsetEndcapsInvertedsetEndcapTypesetEndEndcapColorsetEndEndcapSizesetEndEndcapTypesetP1setP2setStartEndcapColorsetStartEndcapSizesetStartEndcapTypesetStrokeColorsetStrokeWidth
Constructors
Methods
-
Markup.Shapes.Line.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.Line.getEndEndcapColor() inherited
getEndEndcapColor():ColorGets the color of the end endcap. Default value is black.
Returns:
Colorcolor for the end endcap.
-
Markup.Shapes.Line.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.Line.getEndEndcapType() inherited
getEndEndcapType():EndcapTypeGets the end endcap type for this shape. The default value is none.
Returns:
EndcapTypethe end endcap type
-
Markup.Shapes.Line.getP1() - getP1():
Point2Gets the first point of the line segment
Returns:
Point2the first point of the line segment
-
Markup.Shapes.Line.getP2() - getP2():
Point2Gets the second point of the line segment
Returns:
Point2the second point of the line segment
-
Markup.Shapes.Line.getStartEndcapColor() inherited
getStartEndcapColor():ColorGets the color of the start endcap. Default value is black.
Returns:
Colorcolor for the start endcap.
-
Markup.Shapes.Line.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.Line.getStartEndcapType() inherited
getStartEndcapType():EndcapTypeGets the start endcap type for this shape. The default Value is none.
Returns:
EndcapTypethe start endcap type
-
Markup.Shapes.Line.getStrokeColor() inherited
getStrokeColor():ColorGets the stroke color for this shape
Returns:
Colorthe stroke color
-
Markup.Shapes.Line.getStrokeWidth() inherited
getStrokeWidth(): numberGets the stroke width for this shape in pixels
Returns: number
the stroke width in pixels
-
Markup.Shapes.Line.set() -
Sets the points that define the line segment
Parameters
Returns: void
-
Markup.Shapes.Line.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.Line.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.Line.setEndEndcapColor() inherited
setEndEndcapColor(color:Color): voidSets the color for the end endcap.
Parameters
color:
Colorthe end endcap color value.Returns: void
-
Markup.Shapes.Line.setEndEndcapSize() inherited
setEndEndcapSize(size: number): voidSets the size of the end endcap in pixels.
Parameters
size: number
the end endcap.Returns: void
-
Markup.Shapes.Line.setEndEndcapType() inherited
setEndEndcapType(endcapType:EndcapType): voidSets the end endcap type for this shape
Parameters
endcapType:
EndcapTypethe new endcap typeReturns: void
-
Markup.Shapes.Line.setP1() - setP1(p1:
Point2): voidSets the first point of the line segment
Parameters
p1:
Point2first point of the line segmentReturns: void
-
Markup.Shapes.Line.setP2() - setP2(p2:
Point2): voidsets the first point of the line segment
Parameters
p2:
Point2second point of the line segmentReturns: void
-
Markup.Shapes.Line.setStartEndcapColor() inherited
setStartEndcapColor(color:Color): voidSets the color for the start endcap.
Parameters
color:
Colorthe start endcap color value.Returns: void
-
Markup.Shapes.Line.setStartEndcapSize() inherited
setStartEndcapSize(size: number): voidSets the size of the start endcap in pixels.
Parameters
size: number
the start endcap.Returns: void
-
Markup.Shapes.Line.setStartEndcapType() inherited
setStartEndcapType(endcapType:EndcapType): voidSets the start endcap type for this shape
Parameters
endcapType:
EndcapTypethe new endcap typeReturns: void
-
Markup.Shapes.Line.setStrokeColor() inherited
setStrokeColor(color:Color): voidSets the stroke color for this shape
Parameters
color:
Colorthe stroke colorReturns: void
-
Markup.Shapes.Line.setStrokeWidth() inherited
setStrokeWidth(strokeWidth: number): voidSets the stroke width for this shape in pixels
Parameters
strokeWidth: number
the stroke width in pixelsReturns: void