Interface CompatibilityInterface
public interface CompatibilityInterface
Legacy interface that implements some methods from the old 1.4 API.
Available in the Beanshell scripting interface as "mm.compat()" or
"mm.getCompatibilityInterface()".
-
Method Summary
Modifier and TypeMethodDescriptiongetCameraTransform(String config) Deprecated.- Use core.getPixelSizeAffineByID(config) insteadReturn the version of the running instance of Micro-Manager.voidsetCameraTransform(AffineTransform transform, String config) Deprecated.- Use core.setPixelSizeAffine(config, DoubleVector transform) insteadbooleanversionLessThan(String version) Displays an error message and returns true if the run-time Micro-Manager version is less than the one specified.
-
Method Details
-
versionLessThan
Displays an error message and returns true if the run-time Micro-Manager version is less than the one specified. Versions in Micro-Manager are of the format: major.minor.minute date where ' date' can be omitted Examples: 1.4.6 1.4.6 20110831 When a date is appended to a version number, it will be newer than the same version without a date- Parameters:
version- - minimum version needen to run this code- Returns:
- true if the run-time Micro-Manager version is less than the one specified
- Throws:
NumberFormatException- if the version number is not in the format expected.
-
getVersion
String getVersion()Return the version of the running instance of Micro-Manager.- Returns:
- the currently running Micro-Manager version
-
getCameraTransform
Deprecated.- Use core.getPixelSizeAffineByID(config) insteadRetrieve the affine transform describing how the camera image maps to stage coordinates, for a given pixel size config. This method will pull information from the profile if available, and failing that will look in the Java Preferences. Will return null if no transform is found.- Parameters:
config- The configuration (per core.getCurrentPixelSizeConfig()) to find the affine transform for.- Returns:
- The transform describing how the camera maps to the stage.
-
setCameraTransform
Deprecated.- Use core.setPixelSizeAffine(config, DoubleVector transform) insteadSet a new affine transform for describing how the camera image maps to the stage coordinates. The value will be stored in the user's profile.- Parameters:
transform- The new transform to use.config- The configuration (per core.getCurrentPixelSizeConfig()) to set the affine transform for.
-