Uses of Interface
java.awt.Paint
-
Packages that use Paint Package Description java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.swing.border Provides classes and interface for drawing specialized borders around a Swing component.javax.swing.plaf Provides one interface and many abstract classes that Swing uses to provide its pluggable look-and-feel capabilities. -
-
Uses of Paint in java.awt
Classes in java.awt that implement Paint Modifier and Type Class and Description class
Color
TheColor
class is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by aColorSpace
.class
GradientPaint
TheGradientPaint
class provides a way to fill aShape
with a linear color gradient pattern.class
LinearGradientPaint
TheLinearGradientPaint
class provides a way to fill aShape
with a linear color gradient pattern.class
MultipleGradientPaint
This is the superclass for Paints which use a multiple color gradient to fill in their raster.class
RadialGradientPaint
TheRadialGradientPaint
class provides a way to fill a shape with a circular radial color gradient pattern.class
SystemColor
A class to encapsulate symbolic colors representing the color of native GUI objects on a system.class
TexturePaint
TheTexturePaint
class provides a way to fill aShape
with a texture that is specified as aBufferedImage
.Methods in java.awt that return Paint Modifier and Type Method and Description abstract Paint
Graphics2D. getPaint()
Returns the currentPaint
of theGraphics2D
context.Methods in java.awt with parameters of type Paint Modifier and Type Method and Description abstract void
Graphics2D. setPaint(Paint paint)
Sets thePaint
attribute for theGraphics2D
context. -
Uses of Paint in javax.swing
Methods in javax.swing with parameters of type Paint Modifier and Type Method and Description static Border
BorderFactory. createDashedBorder(Paint paint)
Creates a dashed border of the specifiedpaint
.static Border
BorderFactory. createDashedBorder(Paint paint, float length, float spacing)
Creates a dashed border of the specifiedpaint
, relativelength
, and relativespacing
.static Border
BorderFactory. createDashedBorder(Paint paint, float thickness, float length, float spacing, boolean rounded)
Creates a dashed border of the specifiedpaint
,thickness
, line shape, relativelength
, and relativespacing
.static Border
BorderFactory. createStrokeBorder(BasicStroke stroke, Paint paint)
Creates a border of the specifiedstroke
andpaint
. -
Uses of Paint in javax.swing.border
Methods in javax.swing.border that return Paint Modifier and Type Method and Description Paint
StrokeBorder. getPaint()
Returns thePaint
object used to generate a color during the border rendering.Constructors in javax.swing.border with parameters of type Paint Constructor and Description StrokeBorder(BasicStroke stroke, Paint paint)
Creates a border of the specifiedstroke
andpaint
. -
Uses of Paint in javax.swing.plaf
Classes in javax.swing.plaf that implement Paint Modifier and Type Class and Description class
ColorUIResource
-
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, 2022, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.