Contains all of the classes for creating user interfaces and for painting
graphics and images.
class
The
BasicStroke
class defines a basic set of rendering
attributes for the outlines of graphics primitives, which are rendered
with a
Graphics2D
object that has its Stroke attribute set to
this
BasicStroke
.
Returns the current Stroke
in the
Graphics2D
context.
abstract void
Sets the Stroke
for the Graphics2D
context.
Report a bug or suggest an enhancement For further API reference and developer documentation see the Java SE Documentation , which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples. Other versions. Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries. Copyright © 1993, 2021, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA. All rights reserved. Use is subject to license terms and the documentation redistribution policy .