Uses of Interface
java.awt.Paint
Package
Description
Contains all of the classes for creating user interfaces and for painting
graphics and images.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interface for drawing specialized borders around a Swing
component.
Provides one interface and many abstract classes that Swing uses to provide
its pluggable look-and-feel capabilities.
-
Uses of Paint in java.awt
Modifier and TypeClassDescriptionclass
TheColor
class is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by aColorSpace
.class
TheGradientPaint
class provides a way to fill aShape
with a linear color gradient pattern.class
TheLinearGradientPaint
class provides a way to fill aShape
with a linear color gradient pattern.class
This is the superclass for Paints which use a multiple color gradient to fill in their raster.class
TheRadialGradientPaint
class provides a way to fill a shape with a circular radial color gradient pattern.class
A class to encapsulate symbolic colors representing the color of native GUI objects on a system.class
TheTexturePaint
class provides a way to fill aShape
with a texture that is specified as aBufferedImage
. -
Uses of Paint in javax.swing
Modifier and TypeMethodDescriptionstatic 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
Modifier and TypeMethodDescriptionStrokeBorder.getPaint()
Returns thePaint
object used to generate a color during the border rendering.ModifierConstructorDescriptionStrokeBorder(BasicStroke stroke, Paint paint)
Creates a border of the specifiedstroke
andpaint
. -
Uses of Paint in javax.swing.plaf
Modifier and TypeClassDescriptionclass
A subclass of Color that implements UIResource.