|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DrawingEditor
DrawingEditor defines the interface for coordinating the different objects that participate in a drawing editor.
For applications with a single document interface (SDI) there is typically one DrawingEditor instance per document window. So that each window can have its own toolbars and drawing palettes.
For applications with a Windows-style multiple document interface (MDI) there is typically one DrawingEditor instance per parent window. All document windows within a parent window share the toolbars and drawing palettes provided be the parent window.
For applications with a Mac OS X-style application document interface (OSX) there is typically a single DrawingEditor instance for the application. All document windows within the application share a single set of toolbars and drawing palettes.
| Method Summary | |
|---|---|
void |
add(DrawingView view)
Adds a drawing view to the editor. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
applyDefaultAttributesTo(Figure f)
Applies the default attributes to the specified figure. |
DrawingView |
findView(java.awt.Container c)
Finds a drawing view. |
java.lang.Object |
getDefaultAttribute(AttributeKey key)
Gets a default attribute from the editor. |
java.util.Collection<DrawingView> |
getDrawingViews()
Gets all drawing views associated with this editor. |
DrawingView |
getFocusedView()
Gets the editor's focused view. |
Tool |
getTool()
Gets the current tool. |
DrawingView |
getView()
Gets the editor's active drawing view. |
boolean |
isEnabled()
Gets the enabled state of the drawing editor. |
void |
remove(DrawingView view)
Removes a drawing view from the editor. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
void |
setCursor(java.awt.Cursor c)
Sets the cursor on the view(s) of the drawing editor. |
void |
setDefaultAttribute(AttributeKey key,
java.lang.Object value)
Sets a default attribute of the editor. |
void |
setEnabled(boolean newValue)
Sets the enabled state of the drawing editor. |
void |
setTool(Tool t)
Calls deactivate on the previously active tool of this drawing editor. |
void |
setView(DrawingView newValue)
Sets the editor's active drawing view. |
| Method Detail |
|---|
void add(DrawingView view)
void remove(DrawingView view)
java.util.Collection<DrawingView> getDrawingViews()
DrawingView getView()
void setView(DrawingView newValue)
DrawingView getFocusedView()
void setTool(Tool t)
Tool getTool()
void setCursor(java.awt.Cursor c)
DrawingView findView(java.awt.Container c)
void setDefaultAttribute(AttributeKey key,
java.lang.Object value)
java.lang.Object getDefaultAttribute(AttributeKey key)
void applyDefaultAttributesTo(Figure f)
void setEnabled(boolean newValue)
boolean isEnabled()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||