JHotDraw 6.0b1

org.jhotdraw.framework
Interface DrawingEditor

All Superinterfaces:
FigureSelectionListener
All Known Implementing Classes:
ConnectorApp, DrawApplet, DrawApplication, JavaDrawApp, JavaDrawApplet, JavaDrawViewer, MDI_DrawApplication, MiniMapApplication, NetApp, NothingApp, NothingApplet, PertApplet, PertApplication, SplitPaneDrawApplication, SVGDrawApp

public interface DrawingEditor
extends FigureSelectionListener

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
 void addViewChangeListener(ViewChangeListener vsl)
           
 void figureSelectionChanged(DrawingView view)
          Informs that the current figure selection has changed.
 UndoManager getUndoManager()
           
 void removeViewChangeListener(ViewChangeListener vsl)
           
 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.
 DrawingView[] views()
           
 

Method Detail

view

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


views

DrawingView[] views()

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.


figureSelectionChanged

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

Specified by:
figureSelectionChanged in interface FigureSelectionListener
Parameters:
view - DrawingView

addViewChangeListener

void addViewChangeListener(ViewChangeListener vsl)

removeViewChangeListener

void removeViewChangeListener(ViewChangeListener vsl)

showStatus

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


getUndoManager

UndoManager getUndoManager()

JHotDraw 6.0b1