public class EllipseShapeFactory extends java.lang.Object implements IShapeFactory
Modifier and Type | Field and Description |
---|---|
static EllipseShapeFactory |
Singleton
Singleton pattern
|
Modifier | Constructor and Description |
---|---|
private |
EllipseShapeFactory() |
Modifier and Type | Method and Description |
---|---|
java.awt.Shape |
makeShape(double x,
double y,
double xScale,
double yScale)
Instantiates an ellipse
|
public static final EllipseShapeFactory Singleton
public java.awt.Shape makeShape(double x, double y, double xScale, double yScale)
makeShape
in interface IShapeFactory
x
- x-coordinate of the center of the ellipsey
- y-coordinate of the center of the ellipsexScale
- The x-radius of the ellipseyScale
- The y-radius of the ellipse