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%

Field Summary
protected  PropertiesEditor propertiesEditor_
          The Properties editor
protected  CreateTool tool_
          The UForm
 
Fields inherited from class flatscape.editor.EditorModel
editorPanel_
 
Constructor Summary
ToolEditorModel(PropertiesEditor propertiesEditor, EditorPanel editorPanel, CreateTool tool)
           
 
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 flatscape.editor.EditorModel
cleanUp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

tool_

protected CreateTool tool_
The UForm


propertiesEditor_

protected PropertiesEditor propertiesEditor_
The Properties editor

Constructor Detail

ToolEditorModel

public ToolEditorModel(PropertiesEditor propertiesEditor,
                       EditorPanel editorPanel,
                       CreateTool tool)
Parameters:
propertiesEditor - the parent PropertiesEditor
editorPanel - the EditorPanel which uses this model
Method Detail

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