|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectballworld.model.paint.shape.EllipseShapeFactory
public class EllipseShapeFactory
Concrete shape factory that instantiates Ellipse2D.Double shapes.
Field Summary | |
---|---|
static EllipseShapeFactory |
Singleton
Singleton pattern |
Constructor Summary | |
---|---|
private |
EllipseShapeFactory()
|
Method Summary | |
---|---|
java.awt.Shape |
makeShape(double x,
double y,
double xScale,
double yScale)
Instantiates an ellipse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final EllipseShapeFactory Singleton
Constructor Detail |
---|
private EllipseShapeFactory()
Method Detail |
---|
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |