java.awt
Interface Stroke
- All Known Implementing Classes:
- BasicStroke
public interface Stroke
The Stroke interface allows a
Graphics2D object to obtain a Shape that is the
decorated outline, or stylistic representation of the outline,
of the specified Shape.
The objects of the classes implementing Stroke
must be read-only because Graphics2D does not
clone these objects either when they are set as an attribute
with the setStroke method or when the
Graphics2D object is itself cloned.
If a Stroke object is modified after it is set in
the Graphics2D context then the behavior
of subsequent rendering would be undefined.
Note:
Implementations of Stroke in this Profile:
- The method in this interface has been removed in this profile due
to performance concerns. This interface was retained in this profile
to maintain upward compatibility Java 2 Standard Edition.
- Version:
- 1.21, 01/23/03
- See Also:
BasicStroke,
Graphics2D.setStroke(java.awt.Stroke)
Copyright © 2011. All Rights Reserved.