|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
ikayaki.gui.DeviceSettingsPanel
public class DeviceSettingsPanel
Creates its components and updates changes to Settings and saves them in Configuration file. These settings are critical for SQUID to work.
Nested Class Summary | |
---|---|
private class |
DeviceSettingsPanel.MyFormatterFactory
Custom formatter factory for the JFormattedTextFields in this class. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
private JFormattedTextField |
acceleration
Handler acceleration |
private JFormattedTextField |
axialAFPosition
axial AF demag position in steps, must be divisible by 10. |
private JFormattedTextField |
backgroundPosition
Position in steps, must be divisible by 10. |
private Action |
cancelAction
|
private JButton |
cancelButton
|
private JPanel |
contentPane
Contains the layout. |
private JDialog |
creator
|
private JFormattedTextField |
deceleration
Handler deceleration |
private JComboBox |
demagDelay
How long SQUID waits on ramping? |
private JComboBox |
demagnetizerPort
COM port for demagnetizer, can be sharing same port with magnetometer |
private JComboBox |
demagRamp
how fast demagnetization goes |
private JComboBox |
handlerPort
COM port for sample handler |
private JComboBox |
magnetometerPort
COM port for magnetometer |
private JFormattedTextField |
maximumField
Maximum field to allow for equipment |
private JFormattedTextField |
measurementPosition
Position in steps, must be divisible by 10. |
private JFormattedTextField |
measurementVelocity
speed in measurement, should be small |
private JFormattedTextField |
rotation
steps to perform full rotation, must be clockwise, determined by sign |
private JFormattedTextField |
rotationAcc
rotation acceleration |
private JFormattedTextField |
rotationDec
rotation deceleration |
private JFormattedTextField |
rotationVelocity
rotation velocity |
private JFormattedTextField |
sampleLoadPosition
Position in steps, must be divisible by 10. |
private Action |
saveAction
|
private JButton |
saveButton
|
private JFormattedTextField |
transverseYAFPosition
AF demag position for transverse |
private JLabel |
warningLabel
|
private JFormattedTextField |
velocity
Handler Max speed |
private JFormattedTextField |
xAxisCalibration
Calibration constants with polarization (factory set?) |
private JFormattedTextField |
yAxisCalibration
Calibration constants with polarization (factory set?) |
private JFormattedTextField |
zAxisCalibration
Calibration constants with polarization (factory set?) |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DeviceSettingsPanel(JDialog creator)
Creates all components and puts them in right places. |
Method Summary | |
---|---|
private void |
$$$setupUI$$$()
Method generated by IntelliJ IDEA GUI Designer !!! |
private boolean |
correctValues()
Should check if COM ports are selected correctly |
Action |
getCancelAction()
|
Action |
getSaveAction()
|
void |
saveSettings()
Saves all settings to Settings-singleton and calls closeWindow(). |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private JComboBox magnetometerPort
private JComboBox demagnetizerPort
private JComboBox handlerPort
private JFormattedTextField xAxisCalibration
private JFormattedTextField yAxisCalibration
private JFormattedTextField zAxisCalibration
private JComboBox demagRamp
private JComboBox demagDelay
private JFormattedTextField acceleration
private JFormattedTextField deceleration
private JFormattedTextField velocity
private JFormattedTextField measurementVelocity
private JFormattedTextField transverseYAFPosition
private JFormattedTextField axialAFPosition
private JFormattedTextField sampleLoadPosition
private JFormattedTextField backgroundPosition
private JFormattedTextField measurementPosition
private JFormattedTextField rotation
private JFormattedTextField rotationVelocity
private JFormattedTextField rotationAcc
private JFormattedTextField rotationDec
private JFormattedTextField maximumField
private JPanel contentPane
private JLabel warningLabel
private JButton saveButton
private JButton cancelButton
private Action saveAction
private Action cancelAction
private JDialog creator
Constructor Detail |
---|
public DeviceSettingsPanel(JDialog creator)
Method Detail |
---|
public void saveSettings()
private boolean correctValues()
public Action getSaveAction()
public Action getCancelAction()
private void $$$setupUI$$$()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |