Class CheckeredPaint

  • All Implemented Interfaces:
    java.awt.Paint, java.awt.Transparency

    public class CheckeredPaint
    extends java.lang.Object
    implements java.awt.Paint
    Paints shapes with a pattern of checkered boxes in two colours.
    Since:
    3.00
    Author:
    Chris Jennings
    • Field Summary

      • Fields inherited from interface java.awt.Transparency

        BITMASK, OPAQUE, TRANSLUCENT
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.awt.PaintContext createContext​(java.awt.image.ColorModel cm, java.awt.Rectangle deviceBounds, java.awt.geom.Rectangle2D userBounds, java.awt.geom.AffineTransform xform, java.awt.RenderingHints hints)  
      int getBoxSize()  
      java.awt.Color getColor1()  
      java.awt.Color getColor2()  
      int getTransparency()  
      • Methods inherited from class java.lang.Object

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

      • CheckeredPaint

        public CheckeredPaint()
      • CheckeredPaint

        public CheckeredPaint​(int boxSize)
      • CheckeredPaint

        public CheckeredPaint​(java.awt.Color color1,
                              java.awt.Color color2)
      • CheckeredPaint

        public CheckeredPaint​(int boxSize,
                              java.awt.Color color1,
                              java.awt.Color color2)
    • Method Detail

      • createContext

        public final java.awt.PaintContext createContext​(java.awt.image.ColorModel cm,
                                                         java.awt.Rectangle deviceBounds,
                                                         java.awt.geom.Rectangle2D userBounds,
                                                         java.awt.geom.AffineTransform xform,
                                                         java.awt.RenderingHints hints)
        Specified by:
        createContext in interface java.awt.Paint
      • getTransparency

        public final int getTransparency()
        Specified by:
        getTransparency in interface java.awt.Transparency
      • getBoxSize

        public int getBoxSize()
      • getColor1

        public java.awt.Color getColor1()
      • getColor2

        public java.awt.Color getColor2()