Package | Description |
---|---|
ini.trakem2 | |
ini.trakem2.persistence | |
ini.trakem2.tree |
Modifier and Type | Method and Description |
---|---|
TemplateThing |
Project.getRootTemplateThing() |
TemplateThing |
Project.getTemplateThing(String type)
Returns the proper TemplateThing for the given type, complete with children and attributes if any.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Project.addUniqueType(TemplateThing tt)
Returns false if the type exists already.
|
Object |
Project.makeObject(TemplateThing tt)
Make an object of the type the TemplateThing can hold.
|
static Project |
Project.newFSProject(String arg,
TemplateThing template_root) |
static Project |
Project.newFSProject(String arg,
TemplateThing template_root,
String storage_folder)
Creates a new project to be based on .xml and image files, not a database.
|
static Project |
Project.newFSProject(String arg,
TemplateThing template_root,
String storage_folder,
boolean autocreate_one_layer) |
void |
Project.resetRootTemplateThing(TemplateThing tt,
HashMap<Thing,Boolean> ttree_exp)
For undo purposes.
|
Modifier and Type | Method and Description |
---|---|
TemplateThing |
Loader.askForXMLTemplate(Project project)
Ask for the user to provide a template XML file to extract a root TemplateThing.
|
TemplateThing |
DBLoader.getTemplateRoot(Project project)
Fetch the root of the TemplateThing tree from the database-stored hierarchy of TemplateThing objects defined in the original XML file .
|
Modifier and Type | Method and Description |
---|---|
LayerThing |
DBLoader.getRootLayerThing(Project project,
ProjectThing project_thing,
TemplateThing layer_set_tt,
TemplateThing layer_tt)
Fetches the root LayerSet, fills it with children (recursively) and uses the profiles, pipes, etc., from the project_thing.
|
ProjectThing |
DBLoader.getRootProjectThing(Project project,
TemplateThing root_tt,
TemplateThing project_tt,
HashMap<Long,Displayable> hs_d)
Get all the Thing objects, recursively, for the root, and their corresponding encapsulated objects.
|
Modifier and Type | Method and Description |
---|---|
TemplateThing |
TemplateTree.addNewChildType(ProjectThing pt,
String new_child_type)
Add a new template thing to an existing ProjectThing, so that new instances of template new_child_type can be added to the ProjectThing pt.
|
TemplateThing |
TemplateTree.addNewChildType(TemplateThing tt_parent,
String new_child_type)
tt_parent is the parent TemplateThing
tet_child is the child to add to tt parent, and to insert as child to all nodes that host the tt parent.
|
TemplateThing |
TemplateThing.clone(Project pr,
boolean copy_id)
Recursive into children: clones the whole tree from this node downward.
|
static TemplateThing[] |
DTDParser.extractTemplate(String path)
Extracts the template by reading the ELEMENT and ATTLIST tags from a .dtd file or the DOCTYPE of an .xml file.
|
TemplateThing |
TemplateThing.getChildTemplate(String type) |
TemplateThing |
ProjectThing.getChildTemplate(String type) |
TemplateThing |
LayerThing.getChildTemplate(String type) |
TemplateThing |
ProjectThing.getTemplate() |
TemplateThing |
TrakEM2MLParser.getTemplateRoot()
Get the root node of the parsed XML template tree.
|
static TemplateThing[] |
DTDParser.parseDTD(StringBuilder data)
Parses a chunk of text into a hierarchy of TemplateThing instances, the roots of which are in the returned array.
|
static TemplateThing[] |
DTDParser.parseDTDFile(String dtd_path)
Parses the tags of a .dtd file.
|
static TemplateThing[] |
DTDParser.parseXMLFile(String xml_path)
Parses a !DOCTYPE chunk from an .xml file, if any.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<TemplateThing> |
TemplateThing.collectAllChildren(ArrayList<TemplateThing> al)
Recursive into children.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the given type that have the same immediate parent type as the given TemplateThing.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings2(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the same type as the given TemplateThing and whose number of children is the same to those of the given TemplateThing (to exclude nested types).
|
HashSet<TemplateThing> |
TemplateThing.collectThingsOfEqualType(TemplateThing tt,
HashSet<TemplateThing> hs)
Find things of the same type, even if their parents are different, recusively into children.
|
ArrayList<TemplateThing> |
TemplateThing.getChildren() |
ArrayList<TemplateThing> |
ProjectThing.getTemplatePathTo(String type)
Returns a list of parent types (String), in order, for the given Thing if it exists as a child in the traversed trees.
|
protected ArrayList<TemplateThing> |
TemplateThing.getTemplatePathTo(String type,
ArrayList<TemplateThing> al)
Returns the list of parents to reach a particular child, starting at this, and including the child.
|
HashMap<String,TemplateThing> |
TemplateThing.getUniqueTypes(HashMap<String,TemplateThing> ht)
Recursive into children.
|
Modifier and Type | Method and Description |
---|---|
TemplateThing |
TemplateTree.addNewChildType(TemplateThing tt_parent,
String new_child_type)
tt_parent is the parent TemplateThing
tet_child is the child to add to tt parent, and to insert as child to all nodes that host the tt parent.
|
HashSet<ProjectThing> |
ProjectThing.collectSimilarThings(TemplateThing tt,
HashSet<ProjectThing> hs)
Recursive into children, find those of the given type that have the same parent chain as the given TemplateThing.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the given type that have the same immediate parent type as the given TemplateThing.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings2(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the same type as the given TemplateThing and whose number of children is the same to those of the given TemplateThing (to exclude nested types).
|
HashSet<TemplateThing> |
TemplateThing.collectThingsOfEqualType(TemplateThing tt,
HashSet<TemplateThing> hs)
Find things of the same type, even if their parents are different, recusively into children.
|
int |
TemplateThing.compareTo(TemplateThing o)
Compares the String type, for sorting purposes.
|
boolean |
TemplateThing.removeChild(TemplateThing child) |
Modifier and Type | Method and Description |
---|---|
ArrayList<TemplateThing> |
TemplateThing.collectAllChildren(ArrayList<TemplateThing> al)
Recursive into children.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the given type that have the same immediate parent type as the given TemplateThing.
|
HashSet<TemplateThing> |
TemplateThing.collectSimilarThings2(TemplateThing tt,
HashSet<TemplateThing> hs)
Recursive into children, find those of the same type as the given TemplateThing and whose number of children is the same to those of the given TemplateThing (to exclude nested types).
|
HashSet<TemplateThing> |
TemplateThing.collectThingsOfEqualType(TemplateThing tt,
HashSet<TemplateThing> hs)
Find things of the same type, even if their parents are different, recusively into children.
|
protected ArrayList<TemplateThing> |
TemplateThing.getTemplatePathTo(String type,
ArrayList<TemplateThing> al)
Returns the list of parents to reach a particular child, starting at this, and including the child.
|
HashMap<String,TemplateThing> |
TemplateThing.getUniqueTypes(HashMap<String,TemplateThing> ht)
Recursive into children.
|
void |
TemplateThing.setup(ArrayList<TemplateThing> al_children)
For reconstruction purposes.
|
Constructor and Description |
---|
LayerThing(TemplateThing template,
Project project,
long id,
String title,
Object ob,
ArrayList<LayerThing> al_children)
Reconstruct from database, in combination with the setup() method.
|
LayerThing(TemplateThing template,
Project project,
Object ob) |
ProjectThing(TemplateThing template,
Project project,
long id,
Object ob,
ArrayList<ProjectThing> al_children)
Reconstruct a ProjectThing from the database, used in combination with the 'setup' method.
|
ProjectThing(TemplateThing template,
Project project,
Object ob)
Create a new ProjectThing of the given type to contain the given Object.
|
TemplateTree(Project project,
TemplateThing root) |
Copyright © 2015–2021 Fiji. All rights reserved.