All Packages Class Hierarchy This Package Previous Next Index
Interface CH.ifa.draw.framework.DrawingEditor
- public interface interface DrawingEditor
DrawingEditor defines the interface for coordinating
the different objects that participate in a drawing editor.
Design Patterns
Mediator
DrawingEditor is the mediator. It decouples the participants
of a drawing editor.
- See Also:
- Tool, DrawingView, Drawing
-
drawing()
- Gets the editor's drawing.
-
selectionChanged(DrawingView)
- Informs that the current selection has changed.
-
showStatus(String)
- Shows a status message in the editor's user interface
-
tool()
- Gets the editor's current tool.
-
toolDone()
- Informs the editor that a tool has done its interaction.
-
view()
- Gets the editor's drawing view.
view
public abstract DrawingView view()
- Gets the editor's drawing view.
drawing
public abstract Drawing drawing()
- Gets the editor's drawing.
tool
public abstract Tool tool()
- Gets the editor's current tool.
toolDone
public abstract void toolDone()
- Informs the editor that a tool has done its interaction.
This method can be used to switch back to the default tool.
selectionChanged
public abstract void selectionChanged(DrawingView view)
- Informs that the current selection has changed.
Override this method to handle selection changes.
showStatus
public abstract void showStatus(String string)
- Shows a status message in the editor's user interface
All Packages Class Hierarchy This Package Previous Next Index