public class Calibration
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Calibration.Units |
Constructor and Description |
---|
Calibration()
Default constructor sets the units to pixels and the scale factor
to 1.0 and isCalibrated () will return false.
|
Calibration(Calibration.Units units,
double scale)
Constructor setting fields from the arguments.
|
Calibration(Calibration other)
Copy constructor, for copying calibration from one Image to another.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other) |
double |
getScale() |
Calibration.Units |
getUnits() |
java.lang.String |
getValue()
Get the calibration as text suitable for display.
|
java.lang.String |
getValue(boolean html)
Get the calibration as text or HTML suitable for display.
|
int |
hashCode()
Enable objects of this class to be used as hash keys.
|
boolean |
isCalibrated() |
void |
setCalibrated(boolean calibrated) |
void |
setScale(double scale) |
void |
setUnits(Calibration.Units units) |
void |
setValue(double scale,
Calibration.Units units,
boolean calibrated)
Set the calibration.
|
void |
show()
Display the calibration in a message box.
|
java.lang.String |
toString()
Get a simple description of the Calibration object
|
void |
uncalibrate()
Set this calibration as if it has not been calibrated.
|
public Calibration()
public Calibration(Calibration.Units units, double scale)
public Calibration(Calibration other)
public boolean isCalibrated()
public void setCalibrated(boolean calibrated)
public Calibration.Units getUnits()
public void setUnits(Calibration.Units units)
public double getScale()
public void setScale(double scale)
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getValue()
public java.lang.String getValue(boolean html)
public void setValue(double scale, Calibration.Units units, boolean calibrated)
public void show()
public void uncalibrate()