Class SolidPainter

  • All Implemented Interfaces:
    javax.swing.Painter<java.lang.Object>

    public class SolidPainter
    extends java.lang.Object
    implements javax.swing.Painter<java.lang.Object>
    A painter that simply paints the entire surface with a Color or other Paint.
    Since:
    3.0
    Author:
    Chris Jennings
    • Constructor Summary

      Constructors 
      Constructor Description
      SolidPainter​(java.awt.Paint paint)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void paint​(java.awt.Graphics2D g, java.lang.Object object, int width, int height)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SolidPainter

        public SolidPainter​(java.awt.Paint paint)
    • Method Detail

      • paint

        public void paint​(java.awt.Graphics2D g,
                          java.lang.Object object,
                          int width,
                          int height)
        Specified by:
        paint in interface javax.swing.Painter<java.lang.Object>