public class ShapePaintStrategy extends APaintStrategy
| Modifier and Type | Field and Description |
|---|---|
private java.awt.Shape |
shape
The Shape to be painted
|
NullObject| Constructor and Description |
|---|
ShapePaintStrategy(java.awt.geom.AffineTransform at,
java.awt.Shape shape)
Constructor that uses a supplied AffineTransform for internal use.
|
ShapePaintStrategy(java.awt.Shape shape)
Constructor that allocates a new AffineTransform for internal use.
|
| Modifier and Type | Method and Description |
|---|---|
void |
paintXfrm(java.awt.Graphics g,
Ball host,
java.awt.geom.AffineTransform at)
Paints the shape on the given Graphics context using the
supplied AffineTransform.
|
getAT, init, paint, paintCfgpublic ShapePaintStrategy(java.awt.Shape shape)
shape - The Shape to be painted.public ShapePaintStrategy(java.awt.geom.AffineTransform at,
java.awt.Shape shape)
at - The AffineTransform to useshape - The Shape to be painted.public void paintXfrm(java.awt.Graphics g,
Ball host,
java.awt.geom.AffineTransform at)
paintXfrm in class APaintStrategyg - The Graphics context to paint upon.host - The host Ballat - The AffineTransform to use