|
JHotDraw 7.1 | ||||||||
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.
Field Summary | |
---|---|
static java.lang.String |
ACTIVE_VIEW_PROPERTY
The property name for the active view Property. |
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. |
DrawingView |
getActiveView()
Gets the editor's active drawing view. |
java.lang.Object |
getDefaultAttribute(AttributeKey key)
Gets a default attribute from the editor. |
java.util.Map<AttributeKey,java.lang.Object> |
getDefaultAttributes()
Returns an immutable Map with the default attributes of this editor. |
java.util.Collection<DrawingView> |
getDrawingViews()
Gets all drawing views associated with this editor. |
Tool |
getTool()
Gets the current tool. |
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 |
setActiveView(DrawingView newValue)
Sets the editor's active drawing view. |
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. |
Field Detail |
---|
static final java.lang.String ACTIVE_VIEW_PROPERTY
Method Detail |
---|
void add(DrawingView view)
void remove(DrawingView view)
java.util.Collection<DrawingView> getDrawingViews()
DrawingView getActiveView()
void setActiveView(DrawingView newValue)
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)
java.util.Map<AttributeKey,java.lang.Object> getDefaultAttributes()
void setEnabled(boolean newValue)
boolean isEnabled()
void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
|
Copyright 1996-2007 (c) JHotDraw.org. Some rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |