Package ca.cgjennings.graphics.paints
Class CheckeredPaint
- java.lang.Object
-
- ca.cgjennings.graphics.paints.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
-
-
Constructor Summary
Constructors Constructor Description CheckeredPaint()
CheckeredPaint(int boxSize)
CheckeredPaint(int boxSize, java.awt.Color color1, java.awt.Color color2)
CheckeredPaint(java.awt.Color color1, java.awt.Color color2)
-
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()
-
-
-
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 interfacejava.awt.Paint
-
getTransparency
public final int getTransparency()
- Specified by:
getTransparency
in interfacejava.awt.Transparency
-
getBoxSize
public int getBoxSize()
-
getColor1
public java.awt.Color getColor1()
-
getColor2
public java.awt.Color getColor2()
-
-