Search
Pen Members
Constructors Methods
 


A Pen specifies how the outline of an element should be stroked.

The following tables list the members exposed by the Pen type.

 Public Constructors

  Name Description

Pen

Overloaded.  

 Public Methods

  Name Description

applyTo

Overloaded.  

clone

Creates a copy of this pen.

getBrush

Gets the Brush of this pen.

getCap

 

getColor

Gets the color of this pen.

getDashStyle

Gets the dash style of this pen.

getEffectiveWidth

Gets the effective width of the lines drawn with this pen once it has been applied to a Graphics2D object.

getLineJoin

Gets the line join.

getWidth

Gets the width of the lines drawn with this pen.

readExternal

Implements Externalizable.

setBrush

Gets a Brush of this pen.

setCap

 

setColor

Sets the color of this pen.

setDashStyle

Sets the dash style of this pen.

setLineJoin

Sets the line join.

setWidth

Sets what the width of the lines drawn with this pen should be.

toColor

 

writeExternal

Implements Externalizable.

 See Also