| Modifier | Constructor and Description | 
|---|---|
  | 
SciViewSNT(Context context)
Instantiates a new SciViewSNT instance. 
 | 
  | 
SciViewSNT(sc.iview.SciView sciView)
Instantiates SciViewSNT from an existing SciView instance. 
 | 
protected  | 
SciViewSNT(SNT snt)  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addTree(Tree tree)
Adds a tree to the associated SciView instance. 
 | 
sc.iview.SciView | 
getSciView()
Gets the SciView instance currently in use. 
 | 
graphics.scenery.Node | 
getTreeAsSceneryNode(Tree tree)
Gets the specified Tree as a Scenery Node. 
 | 
static void | 
main(String[] args)  | 
boolean | 
removeTree(Tree tree)
Removes the specified Tree. 
 | 
void | 
setSciView(sc.iview.SciView sciView)
Sets the SciView to be used. 
 | 
protected boolean | 
syncPathManagerList()
(Re)loads the current list of Paths in the Path Manager list. 
 | 
public SciViewSNT(Context context) throws NoClassDefFoundError
context - the SciJava application context providing the services
                required by the classNoClassDefFoundError - if SciView/scenery are not availableNullContextException - If context is nullpublic SciViewSNT(sc.iview.SciView sciView)
sciView - the SciView instance to be associated with this SciViewSNT
                instanceNullPointerException - If sciView is nullprotected SciViewSNT(SNT snt) throws NoClassDefFoundError
NoClassDefFoundErrorpublic sc.iview.SciView getSciView()
public void setSciView(sc.iview.SciView sciView)
sciView - the SciView instance. Null allowed.public void addTree(Tree tree)
setSciView(SciView) has not been
 called.tree - the Tree to be added. The Tree's label will be used as
             identifier. It is expected to be unique when rendering multiple
             Trees, if not (or no label exists) a unique label will be
             generated.Tree.getLabel(), 
Tree.setColor(ColorRGB)public graphics.scenery.Node getTreeAsSceneryNode(Tree tree)
tree - the tree previously added to SciView using addTree(Tree)public boolean removeTree(Tree tree)
tree - the tree previously added to SciView using addTree(Tree)addTree(Tree)protected boolean syncPathManagerList()
IllegalArgumentException - if SNT is not runningpublic static void main(String[] args) throws InterruptedException
InterruptedExceptionCopyright © 2015–2021 Fiji. All rights reserved.