41 |
import java.awt.Component; |
import java.awt.Component; |
42 |
import java.awt.Graphics; |
import java.awt.Graphics; |
43 |
import java.awt.Graphics2D; |
import java.awt.Graphics2D; |
|
import java.awt.Image; |
|
|
import java.awt.Rectangle; |
|
|
import java.awt.Shape; |
|
44 |
import java.awt.TexturePaint; |
import java.awt.TexturePaint; |
45 |
import java.awt.geom.Rectangle2D; |
import java.awt.geom.Rectangle2D; |
46 |
import java.awt.image.BufferedImage; |
import java.awt.image.BufferedImage; |
113 |
/** |
/** |
114 |
* Fills a rectangle with the typical Metal pattern using Java2D. |
* Fills a rectangle with the typical Metal pattern using Java2D. |
115 |
* |
* |
116 |
* @param g the <code>Graphics2D</code> context to use |
* @param g2d the <code>Graphics2D</code> context to use |
117 |
* @param x the X coordinate of the upper left corner of the rectangle to |
* @param x the X coordinate of the upper left corner of the rectangle to |
118 |
* fill |
* fill |
119 |
* @param y the Y coordinate of the upper left corner of the rectangle to |
* @param y the Y coordinate of the upper left corner of the rectangle to |