LineAttributes Object

A LineAttributes object describes the way a line or border edge appears on screen.

LineAttributes Type Commands

LineAttributes.newInvisible v2.0.5

Returns invisible line attributes, ie: draws nothing on screen.

LineAttributes.newSolid v2.0.5

Returns line attributes that draw as a solid black 1pt wide line.

LineAttributes.newWithLineType styleName v2.0.5

Returns line attributes that draws using one of the given named styles:

Invisible

Solid

Double

Triple


Dotted

Dashed

DashedSmall

DotDash

DotDotDash

ThickThinSmall

ThinThickSmall

ThinThickThinSmall



ThickThin

ThinThick

ThinThickThin



ThickThinLarge

ThinThickLarge

ThinThickThinLarge



Striped

Wave

WaveDouble



Embossed

Engraved




LineAttributes Object Properties

.lineType v2.0.5

Returns the name of the line style which the attributes draw, which is one of those listed in LineAttributes.newWithLineType. You may change this property.

.weight v2.0.5

The weight of the line(s) in points. Changing this value will have different effects on different line types. For example, a weight of 2pts for the “solid” line type will display on screen at 2pts. However, that same 2pt weight will use 6pts on screen for the “Double” line type.

.thickness v2.0.5

The effective width of the drawn line(s) on screen, taking into account the line type. Read-only.

.color v2.0.5

The Color object specifying the line’s color. The returned object follows value semantics, ie: changes to the color will not automatically update the line attributes.


Previous Chapter
ShadingAttributes Object
<<  index  >>
 
Next Chapter
Miscellaneous Commands