3 TrakEM2 plugin for ImageJ(C).
4 Copyright (C) 2005,2006 Albert Cardona and Rodney Douglas.
6 This program is free software; you can redistribute it and/or
7 modify it under the terms of the GNU General Public License
8 as published by the Free Software Foundation (http://www.gnu.org/licenses/gpl.txt )
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 You may contact Albert Cardona at acardona at ini.phys.ethz.ch
20 Institute of Neuroinformatics, University of Zurich / ETH, Switzerland.
23 package ini
.trakem2
.tree
;
25 import java
.util
.ArrayList
;
26 import java
.util
.HashMap
;
28 public interface Thing
{
30 public boolean canHaveAsChild(Thing thing
);
32 public boolean canHaveAsAttribute(String type
);
34 public String
getType();
36 public String
getTitle();
38 public String
toString();
40 public HashMap
getAttributes();
42 public ArrayList
getChildren();
44 public Object
getObject();
46 public boolean addChild(Thing thing
);
48 public void setParent(Thing thing
);
50 public Thing
getParent();
52 public Thing
findChild(Object ob
);
54 public void debug(String indent
);
56 public boolean isExpanded();
58 public String
getInfo();
60 public Thing
shallowCopy();