Class ViewJComponentVolOpacityRGB

All Implemented Interfaces:
MouseListener, MouseMotionListener, ImageObserver, MenuContainer, Serializable, EventListener

public class ViewJComponentVolOpacityRGB extends ViewJComponentVolOpacityBase
This class extends the ViewJComponentVolOpacityBase class and used to coordinate how a histogram and LUT for an image are to be displayed to the screen. For display purposes, this component has a LUT Model.
Version:
0.1 Aug 1, 1997
Author:
Matthew J. McAuliffe, Ph.D. (primary)
See Also:
  • Field Details

    • serialVersionUID

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

      private int[] lutIndexBuffer
      DOCUMENT ME!
  • Constructor Details

    • ViewJComponentVolOpacityRGB

      public ViewJComponentVolOpacityRGB(ViewJComponentVolOpacityListener parent, ModelHistogram _histo, ModelImage _image)
      Creates new component histogram LUT.
      Parameters:
      parent - Frame where histogram is to be displayed -- must implement ViewJComponentVolOpacityListener
      _histo - histogram model
      _image - image of the displayed histogram and associated LUT
    • ViewJComponentVolOpacityRGB

      public ViewJComponentVolOpacityRGB(JPanelVolOpacityRGB opacityPanel, ModelHistogram _histo, ModelImage _image)
      Creates a Histogram RGB component.
      Parameters:
      opacityPanel - Frame where histogram is to be displayed
      _histo - DOCUMENT ME!
      _image - image of the displayed histogram
  • Method Details

    • dispose

      public void dispose()
      Sets variables to null and gets rid of frame.
      Overrides:
      dispose in class ViewJComponentVolOpacityBase
    • getActiveTransferFunction

      public TransferFunction getActiveTransferFunction()
      Get the transfer function.
      Returns:
      TransferFunction trans function
    • getTransferFunction

      public TransferFunction getTransferFunction(int channel)
      Get the transfer function.
      Parameters:
      channel - int channel flag.
      Returns:
      TransferFunction trans function
    • showHistogram

      public void showHistogram(ModelLUT lut)
      Filters the histogram through the LUT and produces an int array (aRGB) that can be converted to a java image of the histogram for display purposes.
      Specified by:
      showHistogram in class ViewJComponentVolOpacityBase
      Parameters:
      lut - LUT to filter with
    • finalize

      protected void finalize() throws Throwable
      Clean up some resources!
      Overrides:
      finalize in class ViewJComponentVolOpacityBase
      Throws:
      Throwable - DOCUMENT ME!
    • setupMinMax

      private void setupMinMax()
      Set the image min, max values.
    • showRGB

      private void showRGB()
      Show RGB histogram.