Packages that use Stroke
Package
Description
java.awt
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Classes in java.awt that implement Stroke
Modifier and Type
Class
Description
class
BasicStroke
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
.
Methods in java.awt that return Stroke
Modifier and Type
Method
Description
abstract Stroke
Graphics2D. getStroke ()
Returns the current Stroke
in the
Graphics2D
context.
Methods in java.awt with parameters of type Stroke
Modifier and Type
Method
Description
abstract void
Graphics2D. setStroke (Stroke s)
Sets the Stroke
for the Graphics2D
context.
Java SE 14 & JDK 14 DRAFT 14-crac+0-adhoc..jdk
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. 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 . DRAFT 14-crac+0-adhoc..jdk