Java™ Platform
Standard Ed. 6

Uses of Interface
java.awt.Paint

Packages that use Paint
java.awt Contains all of the classes for creating user interfaces and for painting graphics and images. 
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
 class Color
          The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary color spaces identified by a ColorSpace.
 class GradientPaint
          The GradientPaint class provides a way to fill a Shape with a linear color gradient pattern.
 class LinearGradientPaint
          The LinearGradientPaint class provides a way to fill a Shape 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
          The RadialGradientPaint 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
          The TexturePaint class provides a way to fill a Shape with a texture that is specified as a BufferedImage.
 

Methods in java.awt that return Paint
abstract  Paint Graphics2D.getPaint()
          Returns the current Paint of the Graphics2D context.
 

Methods in java.awt with parameters of type Paint
abstract  void Graphics2D.setPaint(Paint paint)
          Sets the Paint attribute for the Graphics2D context.
 

Uses of Paint in javax.swing.plaf
 

Classes in javax.swing.plaf that implement Paint
 class ColorUIResource
           
 


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer 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. Use is subject to license terms. Also see the documentation redistribution policy.

Scripting on this page tracks web page traffic, but does not change the content in any way.