public class UprightShapePaintStrategy extends ShapePaintStrategy
NullObject| Constructor and Description |
|---|
UprightShapePaintStrategy(java.awt.geom.AffineTransform at,
java.awt.Shape shape)
Constructor that takes both a Shape and an affine transform
|
UprightShapePaintStrategy(java.awt.Shape shape)
Constructor that takes a Shape, generates its own affine transform.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
paintCfg(java.awt.Graphics g,
Ball host)
Override paintCfg to add the transform needed to
keep the shape upright at all times.
|
paintXfrmgetAT, init, paintpublic UprightShapePaintStrategy(java.awt.Shape shape)
shape - The prototype shape to be painted.public UprightShapePaintStrategy(java.awt.geom.AffineTransform at,
java.awt.Shape shape)
at - The affine transform object to useshape - The prototype shape to use.protected void paintCfg(java.awt.Graphics g,
Ball host)
paintCfg in class APaintStrategyg - The Graphics context that will be drawn upon.host - The Ball to be painted.