public class MicroplatePositionConfiguration extends MicroplateConfiguration
Constructor and Description |
---|
MicroplatePositionConfiguration()
Default constructor.
|
MicroplatePositionConfiguration(int numPositions)
Constructor for a microplate type, when no microplate is used, but the functionality of the microplate
measurement methods should be used for custom positions.
|
MicroplatePositionConfiguration(int numWellsX,
int numWellsY,
double wellWidth,
double wellHeight)
Constructor for a custom defined microplate.
|
MicroplatePositionConfiguration(Microplate microplateType)
Constructor for a predefined microplate type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
void |
createDefaultPath(double zeroPositionX,
double zeroPositionY)
Creates a default path given this configuration.
|
void |
createDefaultPath(double zeroPositionX,
double zeroPositionY,
double zeroPositionFocus)
Creates a default path given this configuration.
|
boolean[][] |
getMeasuredPositionsInWell()
Returns a matrix of the size of the positions in a well, where each element is indicating if the respective position should be measured or not.
|
boolean[][] |
getMeasuredWells()
Returns a matrix of the size of the microplate, where each element is indicating if the respective well should be measured or not.
|
int |
getNumMeasuredPos()
Returns the number of positions in a well which are measured.
|
int |
getNumMeasuredWells()
Returns the number of wells which are measured in the microplate.
|
XYAndFocusPosition |
getPosition(Well well,
int posY,
int posX)
Returns the previously initialized x, y, and focus value for the given position in the given well, or NULL if the data was yet not initialized
or the given position or the given well should not be measured.
|
int |
getTotalMeasuredPositions()
Returns the total number of measured positions in a well times the number of measured wells.
|
boolean |
isAllPositionsSelected()
Returns true if all positions in each well of the microplate are selected to be measured.
|
boolean |
isAllWellsSelected()
Returns true if all wells of the microplate are selected to be measured.
|
boolean |
isInitialized()
Returns true if the exact x/y position for every well is initialized.
|
boolean |
isMeasurePosition(int posY,
int posX)
Returns if a given position in a well should be measured.
|
boolean |
isMeasureWell(Well well)
Returns true if the given well should be measured.
|
boolean |
isNoneSelected()
Returns if either no well or no position inside a well is selected/should be measured.
|
boolean |
isSinglePosition()
Returns true if this configuration is configured such that only one position per well is defined
(and not necessarily if only one position is activated).
|
void |
setMeasurePosition(boolean measure,
int posY,
int posX)
Sets if a given position in a well should be measured.
|
void |
setMeasureWell(boolean measure,
Well well)
Sets if the given well should be measured or not.
|
boolean |
setMicroplateDimensions(int numWellsX,
int numWellsY,
double wellWidth,
double wellHeight,
int wellPositionsX,
int wellPositionsY,
double wellMarginX,
double wellMarginY)
Sets the dimensions of the microplate and the measured positions.
|
boolean |
setNumPositions(int numPositions)
Microplate measurements can be "misused" to measure just some arbitrary positions.
|
void |
setPosition(XYAndFocusPosition position,
Well well,
int posY,
int posX)
Sets the x, y, and focus value for the given position in the given well.
|
void |
setSelectAllWellPositions(boolean select)
Select or unselects all positions in a well.
|
void |
setSelectAllWells(boolean select)
Select or unselects all wells in a microplate.
|
checkConfiguration, getMicroplateTypeID, getNumPositions, getNumWellsX, getNumWellsY, getTypeIdentifier, getWellHeight, getWellMarginX, getWellMarginY, getWellNumPositionsX, getWellNumPositionsY, getWellPositionDistanceX, getWellPositionDistanceY, getWellWidth, isAliasMicroplate, setMicroplateType, setNumWellsX, setNumWellsY, setWellHeight, setWellMarginX, setWellMarginY, setWellNumPositionsX, setWellNumPositionsY, setWellWidth
public MicroplatePositionConfiguration()
public MicroplatePositionConfiguration(Microplate microplateType)
microplateType
- The predefined microplate type.public MicroplatePositionConfiguration(int numWellsX, int numWellsY, double wellWidth, double wellHeight)
numWellsX
- number of wells in the horizontal direction.numWellsY
- number of wells in the vertical direction.wellWidth
- width of a well (well-well distance).wellHeight
- height of a well (well-well distance).public MicroplatePositionConfiguration(int numPositions)
numPositions
- Number of positions.public void setMeasureWell(boolean measure, Well well)
measure
- True if the given well should be measured during the microplate measurement.well
- The well.public boolean isSinglePosition()
public boolean isMeasureWell(Well well)
well
- The well.public void setMeasurePosition(boolean measure, int posY, int posX)
measure
- True if the position should be measured.posY
- The y-index of the position in a well, starting with 0.posX
- The x-index of the position in a well, starting with 0.public boolean isMeasurePosition(int posY, int posX)
posY
- The y-index of the position in a well, starting with 0.posX
- The x-index of the position in a well, starting with 0.public boolean setNumPositions(int numPositions)
MicroplateConfiguration
isAliasMicroplate()
to true.setNumPositions
in class MicroplateConfiguration
numPositions
- The number of abitrary positions to measure.public boolean setMicroplateDimensions(int numWellsX, int numWellsY, double wellWidth, double wellHeight, int wellPositionsX, int wellPositionsY, double wellMarginX, double wellMarginY)
MicroplateConfiguration
setMicroplateDimensions
in class MicroplateConfiguration
numWellsX
- Number of wells in the x-direction.numWellsY
- Number of wells in the y-direction.wellWidth
- Width of a well.wellHeight
- Height of a well.wellPositionsX
- Number of measured positions in one well in the x-direction.wellPositionsY
- Number of measured positions in one well in the y-direction.wellMarginX
- Relative margin between the well border and the first measured position in the x-direction.wellMarginY
- Relative margin between the well border and the first measured position in the y-direction.public boolean[][] getMeasuredWells()
public boolean[][] getMeasuredPositionsInWell()
public void createDefaultPath(double zeroPositionX, double zeroPositionY)
createDefaultPath(zeroPositionX, zeroPositionY, 0)
.zeroPositionX
- The x-position of the center of the well A1;zeroPositionY
- The y-position of the center of the well A1;public void createDefaultPath(double zeroPositionX, double zeroPositionY, double zeroPositionFocus)
zeroPositionX
- The x-position of the center of the well A1;zeroPositionY
- The y-position of the center of the well A1;zeroPositionFocus
- The focus with which the positions should be initialized.public boolean isInitialized()
public int getNumMeasuredWells()
public int getNumMeasuredPos()
public int getTotalMeasuredPositions()
public void setSelectAllWells(boolean select)
select
- True if all wells should be selected/measured, false if all wells should be unselected.public void setSelectAllWellPositions(boolean select)
select
- True if all positions should be selected/measured, false if all positions should be unselected.public boolean isNoneSelected()
public boolean isAllWellsSelected()
public boolean isAllPositionsSelected()
public void setPosition(XYAndFocusPosition position, Well well, int posY, int posX)
position
- The x, y, and focus value.well
- The well.posY
- The y-index of the position in the well, starting with 0.posX
- The x-index of the position in the well, starting with 0.public XYAndFocusPosition getPosition(Well well, int posY, int posX)
well
- The well.posY
- The y-index of the position in the well, starting with 0.posX
- The x-index of the position in the well, starting with 0.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class MicroplateConfiguration
java.lang.CloneNotSupportedException