Added support for cloning scene models (we love doing multiple inheritance
by hand!). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@754 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: EditableSceneModel.java,v 1.2 2001/12/05 03:38:09 mdb Exp $
|
||||
// $Id: EditableSceneModel.java,v 1.3 2001/12/12 02:47:17 mdb Exp $
|
||||
|
||||
package com.threerings.whirled.tools;
|
||||
|
||||
@@ -34,6 +34,22 @@ public class EditableSceneModel
|
||||
return buf.append("]").toString();
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public Object clone ()
|
||||
throws CloneNotSupportedException
|
||||
{
|
||||
return cloneWithDelegate((SceneModel)sceneModel.clone());
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
protected Object cloneWithDelegate (SceneModel sceneModel)
|
||||
throws CloneNotSupportedException
|
||||
{
|
||||
EditableSceneModel esm = (EditableSceneModel)super.clone();
|
||||
esm.sceneModel = sceneModel;
|
||||
return esm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Derived classes override this to tack their <code>toString</code>
|
||||
* data on to the string buffer.
|
||||
|
||||
Reference in New Issue
Block a user