Package | Description |
---|---|
ini.trakem2 | |
ini.trakem2.persistence | |
ini.trakem2.tree | |
ini.trakem2.utils |
Modifier and Type | Method and Description |
---|---|
void |
Project.resetRootLayerThing(LayerThing lt,
HashMap<Thing,Boolean> ltree_exp)
For undo purposes.
|
void |
Project.resetRootProjectThing(ProjectThing pt,
HashMap<Thing,Boolean> ptree_exp)
For undo purposes.
|
void |
Project.resetRootTemplateThing(TemplateThing tt,
HashMap<Thing,Boolean> ttree_exp)
For undo purposes.
|
Modifier and Type | Field and Description |
---|---|
HashMap<Thing,Boolean> |
XMLOptions.expanded_states
Is filled up when reading the expanded states of the
ProjectTree nodes. |
Modifier and Type | Interface and Description |
---|---|
interface |
TitledThing |
Modifier and Type | Class and Description |
---|---|
class |
LayerThing |
class |
ProjectThing |
class |
TemplateThing |
Modifier and Type | Method and Description |
---|---|
Thing |
DNDTree.duplicate(HashMap<Thing,Boolean> expanded_state)
Shallow copy of the tree: returns a clone of the root node and cloned children, recursively, with all Thing cloned as well, but the Thing object is the same.
|
Thing |
Thing.findChild(Object ob) |
Thing |
TemplateThing.findChild(Object ob)
Ah, we love interfaces don't we.
|
Thing |
ProjectThing.findChild(Object ob)
Recursive search for the thing that contains the given object.
|
Thing |
LayerThing.findChild(Object ob)
Recursive search for the thing that contains the given object.
|
Thing |
Thing.getParent() |
Thing |
TemplateThing.getParent() |
Thing |
ProjectThing.getParent() |
Thing |
LayerThing.getParent() |
protected Thing |
TemplateTree.getRootThing() |
protected Thing |
ProjectTree.getRootThing() |
protected Thing |
LayerTree.getRootThing() |
protected abstract Thing |
DNDTree.getRootThing() |
Thing |
Thing.shallowCopy() |
Thing |
TemplateThing.shallowCopy()
A new copy with same type, same project, same id, but no parent and no children.
|
Thing |
ProjectThing.shallowCopy()
A new copy with same template, same object and cloned table of same attributes, but no parent and no children.
|
Thing |
LayerThing.shallowCopy()
A new copy with same template, same project, same id, same object and cloned table of same attributes, and same title, but no parent and no children.
|
Modifier and Type | Method and Description |
---|---|
ArrayList<? extends Thing> |
Thing.getChildren() |
HashMap<Thing,Boolean> |
DNDTree.getExpandedStates()
Get the map of Thing vs.
|
HashMap<Thing,Boolean> |
DNDTree.getExpandedStates(HashMap<Thing,Boolean> m)
Get the map of Thing vs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Thing.addChild(Thing thing) |
boolean |
TemplateThing.addChild(Thing child) |
boolean |
ProjectThing.addChild(Thing child) |
boolean |
LayerThing.addChild(Thing child) |
protected DefaultMutableTreeNode |
DNDTree.addChild(Thing child,
DefaultMutableTreeNode parent_node)
Appends at the end of the parent_node child list, and waits until the tree's UI is updated.
|
boolean |
Thing.canHaveAsChild(Thing thing) |
boolean |
TemplateThing.canHaveAsChild(Thing thing) |
boolean |
ProjectThing.canHaveAsChild(Thing thing) |
boolean |
LayerThing.canHaveAsChild(Thing thing) |
boolean |
DNDTree.isExpanded(Thing thing)
Check if there is a node holding the given Thing, and whether such node is expanded.
|
static DefaultMutableTreeNode |
DNDTree.makeNode(Thing thing) |
static DefaultMutableTreeNode |
DNDTree.makeNode(Thing thing,
boolean childless_nested)
Returns a DefaultMutableTreeNode with all its children.
|
void |
DNDTree.rebuild(Thing thing)
Rebuilds the entire tree, starting at the given Thing object.
|
protected void |
DNDTree.set(DefaultMutableTreeNode root,
Thing root_thing,
HashMap<Thing,Boolean> expanded_state)
Recursive
|
void |
DNDTree.setExpandedSilently(Thing thing,
boolean b)
Does not incur in firing a TreeExpansion event, and affects the node only, not any of its parents.
|
void |
Thing.setParent(Thing thing) |
void |
TemplateThing.setParent(Thing parent) |
void |
ProjectThing.setParent(Thing parent) |
void |
LayerThing.setParent(Thing parent) |
void |
DNDTree.updateList(Thing thing)
Rebuilds the part of the tree under the given node, one level deep only, for reordering purposes.
|
Modifier and Type | Method and Description |
---|---|
void |
DNDTree.addLeafs(List<? extends Thing> leafs,
Runnable after)
Will add only those for which a node doesn't exist already.
|
Thing |
DNDTree.duplicate(HashMap<Thing,Boolean> expanded_state)
Shallow copy of the tree: returns a clone of the root node and cloned children, recursively, with all Thing cloned as well, but the Thing object is the same.
|
HashMap<Thing,Boolean> |
DNDTree.getExpandedStates(HashMap<Thing,Boolean> m)
Get the map of Thing vs.
|
void |
DNDTree.reset(HashMap<Thing,Boolean> expanded_state)
Set the root Thing, and the expanded state of all nodes if
expanded_state is not null. |
protected void |
DNDTree.set(DefaultMutableTreeNode root,
Thing root_thing,
HashMap<Thing,Boolean> expanded_state)
Recursive
|
Modifier and Type | Method and Description |
---|---|
void |
Render.render(Thing thing)
Recursive search for profile_list and pipe objects
|
Constructor and Description |
---|
Render(Thing thing) |
Copyright © 2015–2021 Fiji. All rights reserved.