Package sc.fiji.snt.annotation
Class DrosophilaCompartment
java.lang.Object
sc.fiji.snt.annotation.DrosophilaCompartment
- All Implemented Interfaces:
BrainAnnotation
Represents a brain region from the Drosophila Anatomy Ontology (FBbt).
- Author:
- Tiago Ferreira
-
Field Summary
Fields inherited from interface sc.fiji.snt.annotation.BrainAnnotation
ANY_HEMISPHERE, LEFT_HEMISPHERE, RIGHT_HEMISPHERE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacronym()Returns the compartment's acronym.String[]aliases()Returns the compartment's alias(es).org.scijava.util.ColorRGBcolor()Returns the display color of this compartment (if known).booleangetAncestor(int level) Returns the ancestor of this compartment at the specified level.getMesh()Returns the mesh associated with this compartment.intReturns the ontology depth of this compartment.Returns the parent of this compartment.inthashCode()intid()Returns the compartment's unique id.booleanisChildOf(BrainAnnotation annotation) Returns whether this compartment is a sub-compartment ofannotation.booleanReturns whether a mesh is available for this compartment.booleanisParentOf(BrainAnnotation annotation) Returns whether this compartment is a parent ofparentCompartment.name()Returns the compartment's name.toString()
-
Constructor Details
-
DrosophilaCompartment
public DrosophilaCompartment()
-
-
Method Details
-
id
public int id()Description copied from interface:BrainAnnotationReturns the compartment's unique id.- Specified by:
idin interfaceBrainAnnotation
-
name
Description copied from interface:BrainAnnotationReturns the compartment's name.- Specified by:
namein interfaceBrainAnnotation
-
acronym
Description copied from interface:BrainAnnotationReturns the compartment's acronym.- Specified by:
acronymin interfaceBrainAnnotation
-
aliases
Description copied from interface:BrainAnnotationReturns the compartment's alias(es).- Specified by:
aliasesin interfaceBrainAnnotation
-
getMesh
Description copied from interface:BrainAnnotationReturns the mesh associated with this compartment.- Specified by:
getMeshin interfaceBrainAnnotation
-
isMeshAvailable
public boolean isMeshAvailable()Description copied from interface:BrainAnnotationReturns whether a mesh is available for this compartment.- Specified by:
isMeshAvailablein interfaceBrainAnnotation
-
isChildOf
Description copied from interface:BrainAnnotationReturns whether this compartment is a sub-compartment ofannotation.- Specified by:
isChildOfin interfaceBrainAnnotation
-
isParentOf
Description copied from interface:BrainAnnotationReturns whether this compartment is a parent ofparentCompartment.- Specified by:
isParentOfin interfaceBrainAnnotation
-
getOntologyDepth
public int getOntologyDepth()Description copied from interface:BrainAnnotationReturns the ontology depth of this compartment.- Specified by:
getOntologyDepthin interfaceBrainAnnotation
-
getAncestor
Description copied from interface:BrainAnnotationReturns the ancestor of this compartment at the specified level.- Specified by:
getAncestorin interfaceBrainAnnotation- Parameters:
level- the ancestor level as negative 1-based index. E.g.,-1retrieves the last ancestor (parent),-2retrieves the second to last, etc- Returns:
- the ancestor at the given level
-
getParent
Description copied from interface:BrainAnnotationReturns the parent of this compartment.- Specified by:
getParentin interfaceBrainAnnotation
-
color
public org.scijava.util.ColorRGB color()Description copied from interface:BrainAnnotationReturns the display color of this compartment (if known).- Specified by:
colorin interfaceBrainAnnotation
-
toString
-
equals
-
hashCode
public int hashCode()
-