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

 o Mediator
DrawingEditor is the mediator. It decouples the participants of a drawing editor.

See Also:
Tool, DrawingView, Drawing

Method Index

 o drawing()
Gets the editor's drawing.
 o selectionChanged(DrawingView)
Informs that the current selection has changed.
 o showStatus(String)
Shows a status message in the editor's user interface
 o tool()
Gets the editor's current tool.
 o toolDone()
Informs the editor that a tool has done its interaction.
 o view()
Gets the editor's drawing view.

Methods

 o view
 public abstract DrawingView view()
Gets the editor's drawing view.

 o drawing
 public abstract Drawing drawing()
Gets the editor's drawing.

 o tool
 public abstract Tool tool()
Gets the editor's current tool.

 o 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.

 o selectionChanged
 public abstract void selectionChanged(DrawingView view)
Informs that the current selection has changed. Override this method to handle selection changes.

 o 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