Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.setPen

Associates a Pen object with the Graphics object.

Syntax

public final void setPen( Pen pen )

Parameters

pen

A Pen object that describes the pen to associate with this object.

Remarks

After you associate a pen with a Graphics object, the object uses that pen to draw all lines, polygons, and ellipses. You can change the pen associated with a Graphics object as often as you want.

See Also getPen