Up: BLOX.BPolyline


1.32.1 BLOX.BPolyline: accessing

boundingBox
Answer `boundingBox'.


cap
Answer the way in which caps are to be drawn at the endpoints of the line.

This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.


cap: aSymbol
Set the way in which caps are to be drawn at the endpoints of the line. aSymbol may be #butt (the default), #projecting, or #round).

This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.


closed
Answer whether the polyline is an open or a closed one.


closed: aBoolean
Set whether the polyline is an open or a closed one. This option may be set only once.


join
Answer the way in which joints are to be drawn at the vertices of the line.

This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.


join: aSymbol
Answer the way in which joints are to be drawn at the vertices of the line. aSymbol can be #bevel, #miter (the default) or #round.

This option is only available for open polylines. If you want to set it for a closed polylines, draw an open one on top of it.


outlineColor
Answer the color with which the outline of the polyline is drawn. This option is only available for closed polylines.


outlineColor: color
Set the color with which the outline of the polyline is drawn. This option is only available for closed polylines.


points
Answer the points that are vertices of the polyline.

method

points: arrayOfPointsOrArrays
Set the points that are vertices of the polyline. Each of the items of arrayOfPointsOrArrays can be a Point or a two-element Array. Note that no changes take place until you invoke the #create (if the object has not been inserted in the canvas yet) or the #redraw method.


width
Answer the width with which the polyline (or its outline if it is a closed one) is drawn.


width: pixels
Set the width with which the polyline (or its outline if it is a closed one) is drawn.