java.awt
Interface Stroke
java.lang.Object
|
+--java.awt.Stroke
public interface Stroke
This interface allows a Graphics2D to grab the outline of a shape, as if
stroked by a marking pen of appropriate size and shape. The area inked
by the pen is the area of this stroke. Anything in the graphic which
traces an outline will use this stroke, such as drawLine
.
Strokes must be immutable, because the graphics object does not clone
them.
Since:Author:- Eric Blake <ebb9@email.byu.edu>
See Also:
createStrokedShape
public Shape createStrokedShape(java.awt.Shape s)
Returns a shape which outlines the boundary of the given shape, in
effect converting the infinitely thin line into a new shape.
Parameters:
Returns:
- the stroked outline shape
drawLine
. Strokes must be immutable, because the graphics object does not clone them.