public class XYAndFocusPosition extends java.lang.Object implements java.lang.Cloneable, java.io.Serializable, java.lang.Comparable<XYAndFocusPosition>
Constructor and Description |
---|
XYAndFocusPosition()
The default constructor.
|
XYAndFocusPosition(double x,
double y)
Constructor.
|
XYAndFocusPosition(double x,
double y,
double focus)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone() |
int |
compareTo(XYAndFocusPosition otherPosition)
Compares the two positions.
|
boolean |
equals(java.lang.Object obj) |
double |
getFocus()
Returns the focus position.
|
double |
getX()
Returns the value of the x-position in um.
|
double |
getY()
Returns the value of the y-position in um.
|
int |
hashCode() |
void |
setFocus(double focus)
Sets the focus position.
|
void |
setX(double x)
Sets the value of the x-position in um.
|
void |
setY(double y)
Sets the value of the y-position in um.
|
public XYAndFocusPosition()
public XYAndFocusPosition(double x, double y)
x
- The x position.y
- The y positionpublic XYAndFocusPosition(double x, double y, double focus)
x
- The x position.y
- The y positionfocus
- The focus position.public void setFocus(double focus)
focus
- the focus position.public double getFocus()
public void setX(double x)
x
- x-position in um.public double getX()
public void setY(double y)
y
- y-position in um.public double getY()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int compareTo(XYAndFocusPosition otherPosition)
compareTo
in interface java.lang.Comparable<XYAndFocusPosition>
otherPosition
- The object to which this object should be compared to.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException