Retrieves the pen associated with the Graphics object.
public final Pen getPen()
Returns a Pen object that specifies the current pen if a pen is set; otherwise, returns null.
See Also setPen