Class JDialogRecordLUT

All Implemented Interfaces:
DialogDefaultsInterface, ActionListener, FocusListener, ItemListener, WindowListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class JDialogRecordLUT extends JDialogBase
DOCUMENT ME!
See Also:
  • Field Details

    • serialVersionUID

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

      protected int offsetX
      Offset to draw the tick mark and value label.
    • offsetY

      protected int offsetY
      DOCUMENT ME!
    • x

      protected float[] x
      control points coordinate of LUT transfer function .
    • xN

      protected int[] xN
      DOCUMENT ME!
    • y

      protected float[] y
      DOCUMENT ME!
    • yN

      protected int[] yN
      DOCUMENT ME!
    • z

      protected float[] z
      DOCUMENT ME!
    • zN

      protected int[] zN
      DOCUMENT ME!
    • compLUT

      private ViewJComponentLUTTable compLUT
      Lookup table of image. The rectangular LUT table.
    • image

      private ModelImage image
      ModelImage reference.
    • lut

      private ModelLUT lut
      LUT table renference.
    • lutTablePanel

      private JPanel lutTablePanel
      LUT table panel.
    • tBarPanel

      private JPanel tBarPanel
      Panel to hold the toolbar.
    • toolBar

      private JToolBar toolBar
      Toolbar.
  • Constructor Details

    • JDialogRecordLUT

      public JDialogRecordLUT(ModelImage _image, ModelLUT _lut)
      Create the LUT recorder dialog to record LUT.
      Parameters:
      _image - ModelImage model image renferencce
      _lut - ModelLUT LUT table reference
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Only perform the save LUT action.
      Specified by:
      actionPerformed in interface ActionListener
      Overrides:
      actionPerformed in class JDialogBase
      Parameters:
      event - ActionEvent
    • buildLUTPanel

      public void buildLUTPanel()
      Construct the panel LUT table viewing panel.
    • dragPoint

      public void dragPoint(ModelLUT _lut)
      Update the LUT view when drag the control points.
      Parameters:
      _lut - ModelLUT LUT reference with LUT changes.
    • init

      public void init()
      Build the dialog panel.
    • updateLUT

      public void updateLUT(ModelLUT _lut)
      Switching the different types of LUT view invoke this method to update the the LUT view.
      Parameters:
      _lut - ModelLUT LUT reference with LUT changes.
    • buildToolbar

      private void buildToolbar()
      Build the toolbar, for now, only one save button.
    • writeImage

      private boolean writeImage()
      Writes the image captured from the screen, using currentRectangle as the bounding box of the capture. Converts pixels grabbed using a Robot to an RGB TIFF file.
      Returns:
      DOCUMENT ME!