| 40 | * Since we need to supply at least two implementations on a scene, we will have an extension point !SceneEngine implementations. |
| 41 | * !SceneEngine will be an interface with a single method that provides the !JComponent to be drawn in the !PageWorkArea: |
| 42 | |
| 43 | {{{ |
| 44 | public interface SceneEngine { |
| 45 | /** |
| 46 | * Transforms the object model given in the scene parameter to a graphical representation. |
| 47 | * @param scene |
| 48 | * The Scene object to be visualized |
| 49 | * @return A swing component that holds the desired graphical representation. |
| 50 | */ |
| 51 | JComponent makeSceneUIComponent(Scene scene); |
| 52 | } |
| 53 | }}} |