Class JPanelEditOrientation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditOrientation extends JPanelEdit
An EditPanel which allows the user to select among the Analyze possibilities for image orientation. The possibility of "Unknown" is an option, but is coded as -1. Analyze images use the options:
unknown -1
transverse unflipped 0
coronal unflipped 1
sagittal unflipped 2
transverse flipped 3
coronal flipped 4
sagittal flipped 5
Its values need not be verified.
Version:
1.0
Author:
David Parsons
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Use serialVersionUID for interoperability.
      See Also:
    • orientationBox

      private JComboBox orientationBox
      DOCUMENT ME!
  • Constructor Details

    • JPanelEditOrientation

      public JPanelEditOrientation(String initialText)
      Sets the panel to contain a standard, white JComboBox.
      Parameters:
      initialText - the text to which the box will be set when begun
      See Also:
  • Method Details

    • checkFields

      public boolean checkFields()
      There is nothing to check in this Panel. Returns true.
      Specified by:
      checkFields in class JPanelEdit
      Returns:
      true
    • getCodedValue

      public Object getCodedValue()
      If the information held by the panel is stored as a code (as in 'M' for "male" or 'F' for "female"), then this code will be returned by this method.

      The codes returned are a Byte format for the following entry

      unknown -1
      transverse unflipped 0
      coronal unflipped 1
      sagittal unflipped 2
      transverse flipped 3
      coronal flipped 4
      sagittal flipped 5
      Specified by:
      getCodedValue in class JPanelEdit
      Returns:
      a Byte. returned by getPanelValue().
    • getPanelValue

      public String getPanelValue()
      gets the data which the user could redefine within this panel.
      Specified by:
      getPanelValue in class JPanelEdit
      Returns:
      This is the value translated from the user-editable fields