Interface ChannelDisplayInfo.ModifiableChannelDisplayInfo

All Superinterfaces:
ChannelDisplayInfo
All Known Implementing Classes:
DirectServerChannelInfo
Enclosing interface:
ChannelDisplayInfo

public static interface ChannelDisplayInfo.ModifiableChannelDisplayInfo extends ChannelDisplayInfo
Helper interface to indicate that the display ranges can be modified.
  • Method Details

    • setMinMaxAllowed

      void setMinMaxAllowed(float minAllowed, float maxAllowed)
      Set the maximum permissible range for the image display.

      For an 8-bit image, that should be 0 and 255.

      For a 16-bit image, fewer bits might actually be used... therefore the full range of 0-2^16-1 may be too much.

      Also, for a 32-bit floating point image the limits are rather harder to define in a general way. This method makes it possible to restrict the permissible range to something sensible. Brightness/contrast/min/max sliders may make use of this.

      Parameters:
      minAllowed -
      maxAllowed -
    • setMinDisplay

      void setMinDisplay(float minDisplay)
      Set the min display value for this channel. Note that it is *strongly* advised to use ImageDisplay.setMinMaxDisplay instead since this helps ensure that the ImageDisplay fires appropriate events etc.
      Parameters:
      minDisplay -
      See Also:
    • setMaxDisplay

      void setMaxDisplay(float maxDisplay)
      Set the max display value for this channel. Note that it is *strongly* advised to use ImageDisplay.setMinMaxDisplay instead since this helps ensure that the ImageDisplay fires appropriate events etc.
      Parameters:
      maxDisplay -
      See Also: