CH.ifa.draw.framework
Interface DrawingEditor
-
- All Known Implementing Classes:
- DrawApplet, DrawApplication, JavaDrawApp, JavaDrawApplet, JavaDrawViewer, JoonEdit, MDI_DrawApplication, NetApp, NothingApp, NothingApplet, PertApplet, PertApplication, SplitPaneDrawApplication
public interface DrawingEditorDrawingEditor 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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description Drawingdrawing()Gets the editor's drawing.voidselectionChanged(DrawingView view)Informs that the current selection has changed.voidshowStatus(java.lang.String string)Shows a status message in the editor's user interfaceTooltool()Gets the editor's current tool.voidtoolDone()Informs the editor that a tool has done its interaction.DrawingViewview()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
-
-
DataMelt 3.0 © DataMelt by jWork.ORG