Package qupath.lib.objects.hierarchy
Class DefaultTMAGrid
java.lang.Object
qupath.lib.objects.hierarchy.DefaultTMAGrid
- All Implemented Interfaces:
- Serializable,- TMAGrid
Default implementation of a TMAGrid.
- See Also:
- 
Method SummaryModifier and TypeMethodDescriptionstatic TMAGridcreate(List<TMACoreObject> cores, int gridWidth) Create a new TMAGrid based on a list of cores and grid width.intNumber of cores along the vertical axis of the grid.intNumber of cores along the horizontal axis of the grid.getTMACore(int row, int col) Get the TMACoreObject for a specified grid location.getTMACore(String coreName) Retrieve a TMA core based upon its name.Get an unmodifiable list of all TMA core objects.intnCores()Total number of cores in the TMA grid.toString()
- 
Method Details- 
createCreate a new TMAGrid based on a list of cores and grid width.It is assumed that the grid height may be calculated as cores.size() / gridWidth.- Parameters:
- cores-
- gridWidth-
- Returns:
 
- 
nCorespublic int nCores()Description copied from interface:TMAGridTotal number of cores in the TMA grid.
- 
getGridWidthpublic int getGridWidth()Description copied from interface:TMAGridNumber of cores along the horizontal axis of the grid.- Specified by:
- getGridWidthin interface- TMAGrid
- Returns:
 
- 
getGridHeightpublic int getGridHeight()Description copied from interface:TMAGridNumber of cores along the vertical axis of the grid.- Specified by:
- getGridHeightin interface- TMAGrid
- Returns:
 
- 
getTMACoreDescription copied from interface:TMAGridGet the TMACoreObject for a specified grid location.- Specified by:
- getTMACorein interface- TMAGrid
- Parameters:
- row-
- col-
- Returns:
 
- 
getTMACoreListDescription copied from interface:TMAGridGet an unmodifiable list of all TMA core objects.- Specified by:
- getTMACoreListin interface- TMAGrid
- Returns:
 
- 
getTMACoreDescription copied from interface:TMAGridRetrieve a TMA core based upon its name.The behavior is undefined if multiple cores have the same name. - Specified by:
- getTMACorein interface- TMAGrid
- Parameters:
- coreName-
- Returns:
 
- 
toString
 
-