CH.ifa.draw.framework
Interface DrawingEditor

All Known Implementing Classes:
DrawApplet, DrawApplication, JavaDrawApp, JavaDrawApplet, JavaDrawViewer, MDI_DrawApplication, NetApp, NothingApp, NothingApplet, PertApplet, PertApplication, SplitPaneDrawApplication

public 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 Summary
 Drawing drawing()
          Gets the editor's drawing.
 void selectionChanged(DrawingView view)
          Informs that the current selection has changed.
 void showStatus(java.lang.String string)
          Shows a status message in the editor's user interface
 Tool tool()
          Gets the editor's current tool.
 void toolDone()
          Informs the editor that a tool has done its interaction.
 DrawingView view()
          Gets the editor's drawing view.
 

Method Detail

view

DrawingView view()
Gets the editor's drawing view.


drawing

Drawing drawing()
Gets the editor's drawing.


tool

Tool tool()
Gets the editor's current tool.


toolDone

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

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


showStatus

void showStatus(java.lang.String string)
Shows a status message in the editor's user interface