|
JHotDraw 7.0.6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jhotdraw.beans.AbstractBean
org.jhotdraw.draw.DefaultDrawingEditor
public class DefaultDrawingEditor
DefaultDrawingEditor.
| Field Summary |
|---|
| Fields inherited from class org.jhotdraw.beans.AbstractBean |
|---|
propertySupport |
| Constructor Summary | |
|---|---|
DefaultDrawingEditor()
Creates a new instance. |
|
| Method Summary | |
|---|---|
void |
add(DrawingView view)
Adds a drawing view to the editor. |
void |
applyDefaultAttributesTo(Figure f)
Applies the default attributes to the specified figure. |
void |
areaInvalidated(ToolEvent evt)
Sent when an area of the drawing view needs to be repainted. |
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 |
setCursor(java.awt.Cursor c)
Sets the cursor on the view(s) of the drawing editor. |
void |
setDefaultAttribute(AttributeKey key,
java.lang.Object newValue)
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. |
void |
toolDone(ToolEvent evt)
Informs the listener that a tool has done its interaction. |
void |
toolStarted(ToolEvent evt)
Informs the listener that a tool has starteds interacting with a specific drawing view. |
| Methods inherited from class org.jhotdraw.beans.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, firePropertyChange, firePropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jhotdraw.draw.DrawingEditor |
|---|
addPropertyChangeListener, removePropertyChangeListener |
| Constructor Detail |
|---|
public DefaultDrawingEditor()
| Method Detail |
|---|
public void setTool(Tool t)
DrawingEditor
setTool in interface DrawingEditorpublic void areaInvalidated(ToolEvent evt)
ToolListener
areaInvalidated in interface ToolListenerpublic void toolStarted(ToolEvent evt)
ToolListener
toolStarted in interface ToolListenerpublic void setView(DrawingView newValue)
DrawingEditor
setView in interface DrawingEditorpublic void toolDone(ToolEvent evt)
ToolListener
toolDone in interface ToolListenerpublic Tool getTool()
DrawingEditor
getTool in interface DrawingEditorpublic DrawingView getView()
DrawingEditor
getView in interface DrawingEditorpublic DrawingView getFocusedView()
DrawingEditor
getFocusedView in interface DrawingEditorpublic void applyDefaultAttributesTo(Figure f)
DrawingEditor
applyDefaultAttributesTo in interface DrawingEditorpublic java.lang.Object getDefaultAttribute(AttributeKey key)
DrawingEditor
getDefaultAttribute in interface DrawingEditor
public void setDefaultAttribute(AttributeKey key,
java.lang.Object newValue)
DrawingEditor
setDefaultAttribute in interface DrawingEditorpublic void remove(DrawingView view)
DrawingEditor
remove in interface DrawingEditorpublic void add(DrawingView view)
DrawingEditor
add in interface DrawingEditorpublic void setCursor(java.awt.Cursor c)
DrawingEditor
setCursor in interface DrawingEditorpublic java.util.Collection<DrawingView> getDrawingViews()
DrawingEditor
getDrawingViews in interface DrawingEditorpublic DrawingView findView(java.awt.Container c)
DrawingEditor
findView in interface DrawingEditorpublic void setEnabled(boolean newValue)
DrawingEditor
setEnabled in interface DrawingEditorpublic boolean isEnabled()
DrawingEditor
isEnabled in interface DrawingEditor
|
Copyright 1996-2006 © JHotDraw.org | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||