public void remove(){
if(getParent() instanceof SceneGraphObjectHolder){
SceneGraphObjectHolder owner=(SceneGraphObjectHolder)getParent();
owner.removeSceneGraphObject((SceneGraphObject)getGraphObject(), null);
RemoveEdit re=new RemoveEdit(owner, (SceneGraphObject)getGraphObject());
getTree().getUndoableEditListener().undoableEditHappened(
new UndoableEditEvent(this, re));
}
else{
throw new RuntimeException("Can not remove node from "+ getParent().getClass());