Class Tile
A higher-level aggregate structure that arranges other
StackArranger
s in a tabular
pattern.
The table is defined by a number of rows and columns.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionarrangeStacks
(Iterator<Extent> extents, OperationContext context) Arranges stacks to that they fit together in a single raster.How to align a smaller image inside a larger cell.Used to define an individual cell, when no specific entry is found incells
for a particular cell.getCells()
Defines the correspondingStackArranger
for an individual cell in table.int
The number of columns to use in the table produced when tiling.int
The number of rows to use in the table produced when tiling.void
setAligner
(BoxAligner aligner) How to align a smaller image inside a larger cell.void
setCellDefault
(StackArranger cellDefault) Used to define an individual cell, when no specific entry is found incells
for a particular cell.void
Defines the correspondingStackArranger
for an individual cell in table.void
setNumberColumns
(int numberColumns) The number of columns to use in the table produced when tiling.void
setNumberRows
(int numberRows) The number of rows to use in the table produced when tiling.Methods inherited from class org.anchoranalysis.image.bean.spatial.arrange.StackArranger
combine, combine
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Tile
public Tile(int numberColumns, int numberRows) Creates for a particular number of columns and rows.- Parameters:
numberColumns
- the number of columns to use in the table produced when tiling.numberRows
- the number of rows to use in the table produced when tiling.
-
Tile
public Tile()
-
-
Method Details
-
arrangeStacks
public StackArrangement arrangeStacks(Iterator<Extent> extents, OperationContext context) throws ArrangeStackException Description copied from class:StackArranger
Arranges stacks to that they fit together in a single raster.- Specified by:
arrangeStacks
in classStackArranger
- Parameters:
extents
- the size of each respective stack for the arrangement.context
- objects for the operation.- Returns:
- bounding-boxes for each respective
RGBStack
in the unified plane. - Throws:
ArrangeStackException
- if a bounding-box cannot be determined for any stack.
-
getNumberColumns
public int getNumberColumns()The number of columns to use in the table produced when tiling. -
setNumberColumns
public void setNumberColumns(int numberColumns) The number of columns to use in the table produced when tiling. -
getNumberRows
public int getNumberRows()The number of rows to use in the table produced when tiling. -
setNumberRows
public void setNumberRows(int numberRows) The number of rows to use in the table produced when tiling. -
getCells
Defines the correspondingStackArranger
for an individual cell in table.Each cell should be specified zero or one times, via a reference to the corresponding row and column.
If a particular cell is unspecified,
cellDefault
is used. -
setCells
Defines the correspondingStackArranger
for an individual cell in table.Each cell should be specified zero or one times, via a reference to the corresponding row and column.
If a particular cell is unspecified,
cellDefault
is used. -
getCellDefault
Used to define an individual cell, when no specific entry is found incells
for a particular cell. -
setCellDefault
Used to define an individual cell, when no specific entry is found incells
for a particular cell. -
getAligner
How to align a smaller image inside a larger cell. -
setAligner
How to align a smaller image inside a larger cell.
-