Class DefinableNotchInterface
java.lang.Object
|
+--DefinableNotchInterface
- public class DefinableNotchInterface
- extends java.lang.Object
Class containing the GUI for the DefinableNotch operator, for inclusion
in the FFTInterface.
- Author:
- Simon Horne.
Method Summary |
javax.swing.JPanel |
createPanel()
Method to create the panel for inclusion in the GUI. |
int[] |
getCoords(int s)
Gets the coordinates of the selected area as an array of four ints
between 0 and size of image (negative if error in data entry). |
int |
getX1()
|
int |
getX2()
|
int |
getY1()
|
int |
getY2()
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
x1tf
public javax.swing.JTextField x1tf
y1tf
public javax.swing.JTextField y1tf
x2tf
public javax.swing.JTextField x2tf
y2tf
public javax.swing.JTextField y2tf
notchButton
public javax.swing.JButton notchButton
notchKeepButton
public javax.swing.JButton notchKeepButton
DefinableNotchInterface
public DefinableNotchInterface()
createPanel
public javax.swing.JPanel createPanel()
- Method to create the panel for inclusion in the GUI.
getX1
public int getX1()
- Returns:
- The top-left x coordinate.
getY1
public int getY1()
- Returns:
- The top-left y coordinate.
getX2
public int getX2()
- Returns:
- The bottom-right x coordinate.
getY2
public int getY2()
- Returns:
- The bottom-right y coordinate.
getCoords
public int[] getCoords(int s)
- Gets the coordinates of the selected area as an array of four ints
between 0 and size of image (negative if error in data entry).
- Returns:
- An array of coordinates {x1,y1,x2,y2}.