| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| Modifier and Type | Class and Description | 
|---|---|
| class  | BasicStrokeThe  BasicStrokeclass defines a basic set of rendering
 attributes for the outlines of graphics primitives, which are rendered
 with aGraphics2Dobject that has its Stroke attribute set to
 thisBasicStroke. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Stroke | Graphics2D. getStroke()Returns the current  Strokein theGraphics2Dcontext. | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract void | Graphics2D. setStroke(Stroke s)Sets the  Strokefor theGraphics2Dcontext. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2015, Oracle and/or its affiliates.  All rights reserved.