|
JHotDraw 7.0.9 | ||||||||
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.action.DrawingEditorProxy
public class DrawingEditorProxy
DrawingEditorProxy.
Field Summary |
---|
Fields inherited from class org.jhotdraw.beans.AbstractBean |
---|
propertySupport |
Fields inherited from interface org.jhotdraw.draw.DrawingEditor |
---|
PROP_ACTIVE_VIEW |
Constructor Summary | |
---|---|
DrawingEditorProxy()
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. |
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. |
DrawingView |
getFocusedView()
|
DrawingEditor |
getTarget()
Gets the target of the proxy. |
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 |
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 |
setTarget(DrawingEditor newValue)
Sets the target of the proxy. |
void |
setTool(Tool t)
Calls deactivate on the previously active tool of this drawing editor. |
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 DrawingEditorProxy()
Method Detail |
---|
public void setTarget(DrawingEditor newValue)
public DrawingEditor getTarget()
public void add(DrawingView view)
DrawingEditor
add
in interface DrawingEditor
public void remove(DrawingView view)
DrawingEditor
remove
in interface DrawingEditor
public java.util.Collection<DrawingView> getDrawingViews()
DrawingEditor
getDrawingViews
in interface DrawingEditor
public DrawingView getActiveView()
DrawingEditor
getActiveView
in interface DrawingEditor
public void setActiveView(DrawingView newValue)
DrawingEditor
setActiveView
in interface DrawingEditor
public DrawingView getFocusedView()
public void setTool(Tool t)
DrawingEditor
setTool
in interface DrawingEditor
public Tool getTool()
DrawingEditor
getTool
in interface DrawingEditor
public void setCursor(java.awt.Cursor c)
DrawingEditor
setCursor
in interface DrawingEditor
public DrawingView findView(java.awt.Container c)
DrawingEditor
findView
in interface DrawingEditor
public void setDefaultAttribute(AttributeKey key, java.lang.Object value)
DrawingEditor
setDefaultAttribute
in interface DrawingEditor
public java.lang.Object getDefaultAttribute(AttributeKey key)
DrawingEditor
getDefaultAttribute
in interface DrawingEditor
public void applyDefaultAttributesTo(Figure f)
DrawingEditor
applyDefaultAttributesTo
in interface DrawingEditor
public java.util.Map<AttributeKey,java.lang.Object> getDefaultAttributes()
DrawingEditor
getDefaultAttributes
in interface DrawingEditor
public void setEnabled(boolean newValue)
DrawingEditor
setEnabled
in interface DrawingEditor
public boolean isEnabled()
DrawingEditor
isEnabled
in interface DrawingEditor
|
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 |