public interface Factory
Modifier and Type | Method and Description |
---|---|
Drawing |
createDrawing(DrawingEditor editor)
Create the drawing (Model role of the MVC pattern).
|
DrawingView |
createDrawingView(DrawingEditor editor)
Create the drawing view (View role of the MVC pattern).
|
javax.swing.JTextField |
createStatusField(DrawingEditor editor)
Create the text field used for messages.
|
DrawingView createDrawingView(DrawingEditor editor)
editor
- the editor that the view will be associated with.Drawing createDrawing(DrawingEditor editor)
editor
- the editor that the view will be associated withjavax.swing.JTextField createStatusField(DrawingEditor editor)
editor
- the editor that the view will be associated withFrom the book: Flexible, Reliable Software, © CRC Press 2010. Author: Henrik B. Christensen, Aarhus University, Denmark