Class JPanelEditImageOrientation

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class JPanelEditImageOrientation 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. All Mipav images use the options:
unknown -1
transverse or Axial 0
coronal 1
sagittal 2
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

    • JPanelEditImageOrientation

      public JPanelEditImageOrientation(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 0
      coronal 1
      sagittal 2
      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