|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.grelf.grip.Calibration
public class Calibration
This class is concerned with distance calibration which should be done before measuring an image, in order to measure in real physical units rather than in pixels.
Constructor Summary | |
---|---|
Calibration()
Default constructor sets the units to pixels and the scale factor to 1.0 and isCalibrated () will return false. |
|
Calibration(Calibration other)
Copy constructor, for copying calibration from one Im to another. |
|
Calibration(java.lang.String someUnits,
double aScale)
Constructor setting fields from the arguments. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object other)
|
double |
getScale()
|
java.lang.String |
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(java.lang.String units)
|
void |
setValue(double scale,
java.lang.String 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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Calibration()
public Calibration(java.lang.String someUnits, double aScale)
public Calibration(Calibration other)
Method Detail |
---|
public boolean isCalibrated()
public void setCalibrated(boolean calibrated)
public java.lang.String getUnits()
public void setUnits(java.lang.String 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, java.lang.String units, boolean calibrated)
public void show()
public void uncalibrate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |