|
|||||||||
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.MagnetometerStatusPanel.ManualControlsPanel
public class MagnetometerStatusPanel.ManualControlsPanel
Magnetometer manual controls. MeasurementControlsPanel disables these whenever a normal measurement step is going.
Nested Class Summary |
---|
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 Component[] |
components
|
private JTextField |
demagAmplitudeField
Demagnetization amplitude in mT, used when demagZ/YButton is clicked. |
private ComponentFlasher |
demagAmplitudeFieldFlasher
|
private JLabel |
demagAmplitudeLabel
|
private JButton |
demagButton
Demagnetizes in Z, X or Y, depending on current handler position and rotation. |
private String |
demagButtonBaseText
|
private ComponentFlasher |
demagButtonFlasher
|
private boolean |
demagButtonIsY
|
private JLabel |
demagLabel
|
private JButton |
demagYButton
Demagnetizes in Y (at current sample holder position) by calling project.doManualDemagY(double). |
private ComponentFlasher |
demagYButtonFlasher
|
private JButton |
demagZButton
Demagnetizes in Z (at current sample holder position) by calling project.doManualDemagZ(double). |
private ComponentFlasher |
demagZButtonFlasher
|
private JButton |
measureAllButton
Measures X, Y and Z (at current sample holder position) by calling project.doManualMeasure(). |
private String |
measureAllButtonBaseText
|
private ComponentFlasher |
measureAllButtonFlasher
|
private JLabel |
measureLabel
|
private JRadioButton |
moveBG
Moves sample holder to background position. |
private ButtonGroup |
moveButtonGroup
Groups together all sample holder moving RadioButtons (moveXXX). |
private JRadioButton |
moveDemagY
Moves sample holder to demagnetize-Y position. |
private JRadioButton |
moveDemagZ
Moves sample holder to demagnetize-Z position. |
private JRadioButton |
moveHome
Moves sample holder to home position. |
private JLabel |
moveLabel
|
private JRadioButton |
moveLeft
Moves sample holder to left limit position. |
private JRadioButton |
moveMeasure
Moves sample holder to measurement position. |
private JRadioButton |
moveRight
Moves sample holder to right limit position. |
private JButton |
nextLineButton
Moves to next measurement line (in main table). |
private ComponentFlasher |
nextLineButtonFlasher
|
private Project |
project
Currently open project. |
private JButton |
resetAllButton
Resets X, Y and Z by calling project.doManualReset()? |
private ComponentFlasher |
resetAllButtonFlasher
|
private JRadioButton |
rotate0
Rotates sample holder to angle 0. |
private JRadioButton |
rotate180
Rotates sample holder to angle 180. |
private JRadioButton |
rotate270
Rotates sample holder to angle 270. |
private JRadioButton |
rotate90
Rotates sample holder to angle 90. |
private ButtonGroup |
rotateButtonGroup
Groups together all sample holder rotating RadioButtons (rotateXXX). |
private JLabel |
rotateLabel
|
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 | |
---|---|
MagnetometerStatusPanel.ManualControlsPanel()
Creates our stupid ManualControlsPanel. |
Method Summary | |
---|---|
private void |
demagAmplitudeFieldError()
Notifies of an error in demagAmplitudeField double-value: requests focus and flashes it. |
private double |
getDemagAmplitude()
Reads demag amplitude from demagAmplitudeField. |
void |
setEnabled()
Updates our enabled-status according to current project and handler-availability. |
void |
setEnabled(boolean enabled)
Enables/disables all our components. |
void |
setProject(Project project)
Set active project, enable ourself if it's non-null. |
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 Project project
private final ButtonGroup moveButtonGroup
private final JRadioButton moveLeft
private final JRadioButton moveHome
private final JRadioButton moveDemagZ
private final JRadioButton moveDemagY
private final JRadioButton moveBG
private final JRadioButton moveMeasure
private final JRadioButton moveRight
private final ButtonGroup rotateButtonGroup
private final JRadioButton rotate0
private final JRadioButton rotate90
private final JRadioButton rotate180
private final JRadioButton rotate270
private final JButton measureAllButton
private final ComponentFlasher measureAllButtonFlasher
private final String measureAllButtonBaseText
private final JButton resetAllButton
private final ComponentFlasher resetAllButtonFlasher
private final JButton nextLineButton
private final ComponentFlasher nextLineButtonFlasher
private final JTextField demagAmplitudeField
private final JLabel demagAmplitudeLabel
private final ComponentFlasher demagAmplitudeFieldFlasher
private final JButton demagButton
private final ComponentFlasher demagButtonFlasher
private final String demagButtonBaseText
private boolean demagButtonIsY
private final JButton demagZButton
private final ComponentFlasher demagZButtonFlasher
private final JButton demagYButton
private final ComponentFlasher demagYButtonFlasher
private final JLabel moveLabel
private final JLabel rotateLabel
private final JLabel measureLabel
private final JLabel demagLabel
private final Component[] components
Constructor Detail |
---|
public MagnetometerStatusPanel.ManualControlsPanel()
Method Detail |
---|
private double getDemagAmplitude()
private void demagAmplitudeFieldError()
public void setEnabled(boolean enabled)
setEnabled
in class JComponent
enabled
- true==enabled, false==disabled.public void setEnabled()
public void setProject(Project project)
project
- active project, or null for none.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |