Graphics.getPen

Overview | Methods | This Package | All 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