/** * Specifies the squareSize of the squares. By default, it is 8. A squareSize of <= * 0 will cause an IllegalArgumentException to be thrown. * * @param squareSize the squareSize of one side of a square tile. Must be > 0. */ public void setSquareSize(double squareSize) { if (squareSize <= 0) { throw new IllegalArgumentException("Length must be > 0"); } double old = getSquareSize(); this.squareSize = squareSize; checkerPaint = null; setDirty(true); firePropertyChange("squareSize", old, getSquareSize()); }
/** * Specifies the squareSize of the squares. By default, it is 8. A squareSize of <= * 0 will cause an IllegalArgumentException to be thrown. * * @param squareSize the squareSize of one side of a square tile. Must be > 0. */ public void setSquareSize(double squareSize) { if (squareSize <= 0) { throw new IllegalArgumentException("Length must be > 0"); } double old = getSquareSize(); this.squareSize = squareSize; checkerPaint = null; setDirty(true); firePropertyChange("squareSize", old, getSquareSize()); }
/** * Specifies the squareSize of the squares. By default, it is 8. A squareSize of <= * 0 will cause an IllegalArgumentException to be thrown. * * @param squareSize the squareSize of one side of a square tile. Must be > 0. */ public void setSquareSize(double squareSize) { if (squareSize <= 0) { throw new IllegalArgumentException("Length must be > 0"); } double old = getSquareSize(); this.squareSize = squareSize; checkerPaint = null; setDirty(true); firePropertyChange("squareSize", old, getSquareSize()); }
/** * Specifies the squareSize of the squares. By default, it is 8. A squareSize of <= * 0 will cause an IllegalArgumentException to be thrown. * * @param squareSize the squareSize of one side of a square tile. Must be > 0. */ public void setSquareSize(double squareSize) { if (squareSize <= 0) { throw new IllegalArgumentException("Length must be > 0"); } double old = getSquareSize(); this.squareSize = squareSize; checkerPaint = null; setDirty(true); firePropertyChange("squareSize", old, getSquareSize()); }
/** * Specifies the paint to use for dark tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the background color of the component is used. * * @param color the Paint to use for painting the "dark" tiles. May be null. */ public void setDarkPaint(Paint color) { Paint old = getDarkPaint(); this.darkPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("darkPaint", old, getDarkPaint()); }
/** * Specifies the paint to use for light tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the foreground color of the component is used. * * @param color the Paint to use for painting the "light" tiles. May be null. */ public void setLightPaint(Paint color) { Paint old = getLightPaint(); this.lightPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("lightPaint", old, getLightPaint()); }
/** * Specifies the paint to use for dark tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the background color of the component is used. * * @param color the Paint to use for painting the "dark" tiles. May be null. */ public void setDarkPaint(Paint color) { Paint old = getDarkPaint(); this.darkPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("darkPaint", old, getDarkPaint()); }
/** * Specifies the paint to use for dark tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the background color of the component is used. * * @param color the Paint to use for painting the "dark" tiles. May be null. */ public void setDarkPaint(Paint color) { Paint old = getDarkPaint(); this.darkPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("darkPaint", old, getDarkPaint()); }
/** * Specifies the paint to use for light tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the foreground color of the component is used. * * @param color the Paint to use for painting the "light" tiles. May be null. */ public void setLightPaint(Paint color) { Paint old = getLightPaint(); this.lightPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("lightPaint", old, getLightPaint()); }
/** * Specifies the paint to use for light tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the foreground color of the component is used. * * @param color the Paint to use for painting the "light" tiles. May be null. */ public void setLightPaint(Paint color) { Paint old = getLightPaint(); this.lightPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("lightPaint", old, getLightPaint()); }
/** * Specifies the paint to use for dark tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the background color of the component is used. * * @param color the Paint to use for painting the "dark" tiles. May be null. */ public void setDarkPaint(Paint color) { Paint old = getDarkPaint(); this.darkPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("darkPaint", old, getDarkPaint()); }
/** * Specifies the paint to use for light tiles. This is a Paint and * may be anything, including a TexturePaint for painting images. If null, * the foreground color of the component is used. * * @param color the Paint to use for painting the "light" tiles. May be null. */ public void setLightPaint(Paint color) { Paint old = getLightPaint(); this.lightPaint = color; checkerPaint = null; setDirty(true); firePropertyChange("lightPaint", old, getLightPaint()); }