Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Graphics.getPen

Retrieves the pen associated with the Graphics object.

Syntax

public final Pen getPen()

Return Value

Returns a Pen object that specifies the current pen if a pen is set; otherwise, returns null.

See Also setPen