mima.presentation.gwt.figures
Class CanvasFigureFactory
java.lang.Object
mima.presentation.gwt.figures.CanvasFigureFactory
- All Implemented Interfaces:
- FigureFactory
public class CanvasFigureFactory
- extends java.lang.Object
- implements FigureFactory
Implements the Design Pattern Abstract Factory. This interface takes the role
of the Concrete Factory.
- Author:
- Virginio Carfagno
Method Summary |
com.google.gwt.user.client.ui.Widget |
createBezierEdge(int width,
int height,
boolean isUp,
boolean isRight)
|
com.google.gwt.user.client.ui.Widget |
createCircle(int radius)
|
com.google.gwt.user.client.ui.Widget |
createLine(int length)
|
com.google.gwt.user.client.ui.Widget |
createRectangle(int width,
int height)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CanvasFigureFactory
public CanvasFigureFactory()
createBezierEdge
public com.google.gwt.user.client.ui.Widget createBezierEdge(int width,
int height,
boolean isUp,
boolean isRight)
- Specified by:
createBezierEdge
in interface FigureFactory
createCircle
public com.google.gwt.user.client.ui.Widget createCircle(int radius)
- Specified by:
createCircle
in interface FigureFactory
createLine
public com.google.gwt.user.client.ui.Widget createLine(int length)
- Specified by:
createLine
in interface FigureFactory
createRectangle
public com.google.gwt.user.client.ui.Widget createRectangle(int width,
int height)
- Specified by:
createRectangle
in interface FigureFactory