flatscape.editor
Class ToolEditorModel
java.lang.Object
|
+--flatscape.editor.EditorModel
|
+--flatscape.editor.ToolEditorModel
- public class ToolEditorModel
- extends EditorModel
Editor model for editing of default properties of a create tool.
Copyright (c) 2001 Rutgers, The State University of New Jersey
- Since:
- flatscape %Version%
- Version:
- %Version%, %Time%
|
Method Summary |
java.lang.Object |
getProperty(java.lang.String key)
Gets a property from the model. |
CreateTool |
getTool()
|
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a property of the model. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tool_
protected CreateTool tool_
- The UForm
propertiesEditor_
protected PropertiesEditor propertiesEditor_
- The Properties editor
ToolEditorModel
public ToolEditorModel(PropertiesEditor propertiesEditor,
EditorPanel editorPanel,
CreateTool tool)
- Parameters:
propertiesEditor - the parent PropertiesEditoreditorPanel - the EditorPanel which uses this model
setProperty
public void setProperty(java.lang.String key,
java.lang.Object value)
- Sets a property of the model. Calls
addDefaultProperty on the tool.
- Specified by:
setProperty in class EditorModel
getProperty
public java.lang.Object getProperty(java.lang.String key)
- Gets a property from the model.
- Specified by:
getProperty in class EditorModel
getTool
public CreateTool getTool()
- Returns:
- the
CreateTool associated with this model.
Copyright (c) 2003 Rutgers, The State University of New Jersey