| Constructor and Description |
|---|
DemoPaintable(int width, int height, String
|
| Modifier and Type | Method and Description |
|---|---|
static AffineTransform |
createAffineTransform(Rectangle2D
Create an AffineTransform that transforms from r1 to r2.
|
int |
getHeight()
|
int |
getWidth()
|
void |
paint(Graphics2D
|
static void |
paint(Graphics2D
|
public DemoPaintable(int width,
int height,
String id) public int getHeight()
public int getWidth()
public void paint(Graphics2Dg)
public static void paint(Graphics2Dg, int width, int height, Color [] colors, String id)
public static AffineTransformcreateAffineTransform(Rectangle2D r1, Rectangle2D r2)
r1 - the initial rectangle
r2 - the rectangle to transform r1 into.