public class RectanglePaintStrategy extends ShapePaintStrategy
NullObject| Constructor and Description |
|---|
RectanglePaintStrategy()
No-parameter constructor that instantiates the
AffineTransform for internal use plus defines a
prototype Rectangle of a width = 8/3 and height = 2/3
which is an average radius of 1.
|
RectanglePaintStrategy(java.awt.geom.AffineTransform at,
double x,
double y,
double width,
double height)
Constructor that takes an external AffineTransform for internal use
and a Rectangle centered at (x, y) with the given half-width
and half-height (= x-radius and y-radius).
|
paintXfrmgetAT, init, paint, paintCfgpublic RectanglePaintStrategy()
public RectanglePaintStrategy(java.awt.geom.AffineTransform at,
double x,
double y,
double width,
double height)
at - The AffineTransform to usex - The x-coordinate of the center of the prototype rectangley - The y-coordinate of the center of the prototype rectanglewidth - The half-width of the rectangle, i.e. the width as measured from the center.height - The half-hieght of the rectangle, i.e. the height as measured from the center.