T - the type of Paintables used to create this composite.
public class CompositePaintable<T extends Paintable> extends Objectimplements Paintable
| Modifier and Type | Class and Description |
|---|---|
static class |
CompositePaintable
|
| Constructor and Description |
|---|
CompositePaintable()
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPaintable(T paintable, AffineTransform
|
void |
addPaintable(T paintable, Rectangle2D
|
int |
getCount()
|
int |
getHeight()
|
T |
getPaintable(int i)
|
AffineTransform |
getTransform(int i)
|
Rectangle2D |
getTransformedBounds(int a)
Return the transformed bounds of a child paintable.
|
int |
getWidth()
|
void |
paint(Graphics2D
|
void |
setTiling(CompositePaintable
|
public void addPaintable(T paintable, Rectangle2Dbounds)
public void setTiling(CompositePaintable.Tiling t)
public void addPaintable(T paintable, AffineTransformtx)
public AffineTransformgetTransform(int i)
public int getCount()
public T getPaintable(int i)
public int getWidth()
public int getHeight()
public void paint(Graphics2Dg)
public Rectangle2DgetTransformedBounds(int a)
(The untransformed bounds of a paintable are assumed to be anchored at (0,0), and span to (width, height).)
a - the index of the paintable to get the transformed bounds of.