Back: BLOX.BOval Up: BLOX package Forward: BLOX.BPolyline-accessing   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document

1.32 BLOX.BPolyline

Defined in namespace BLOX
Superclass: BLOX.BCanvasObject
Category: Graphics-Windows

I can draw closed or open polylines, and even fill them!

1.32.1 BLOX.BPolyline: accessing  (instance)


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.

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.



Back: BLOX.BPolyline Up: BLOX.BPolyline Forward: BLOX.BPopupMenu   Top: GNU Smalltalk Library Reference Contents: Table of Contents Index: Class index About: About this document


This document was generated on August, 19 2010 using texi2html