Class BrightnessContrastChannelPane

All Implemented Interfaces:
Styleable, EventTarget

public class BrightnessContrastChannelPane extends BorderPane
A pane responsible for the display and selection of channels from an image display. This uses a table to display the channels, and allows the user to adjust the selection of channels - as well as names and colors.
  • Property Details

  • Constructor Details

    • BrightnessContrastChannelPane

      public BrightnessContrastChannelPane()
  • Method Details

    • disableToggleMenuItemsProperty

      public BooleanProperty disableToggleMenuItemsProperty()
      Property to disable options to toggle the visibility of channels.
      Returns:
    • currentChannelVisible

      public ReadOnlyBooleanProperty currentChannelVisible()
      Read-only property indicating whether the currently-selected channel is visible, i.e. it is part of ImageDisplay.selectedChannels().
      Returns:
    • setShowChannel

      public void setShowChannel(ChannelDisplayInfo channel)
      Request that the specified channel is shown.
      Parameters:
      channel -
    • setHideChannel

      public void setHideChannel(ChannelDisplayInfo channel)
      Request that the specified channel is hidden.
      Parameters:
      channel -
    • toggleShowHideChannel

      public void toggleShowHideChannel(ChannelDisplayInfo channel)
      Toggle the visibility of the specified channel.
      Parameters:
      channel -
    • updateTable

      public void updateTable()
      Ensure the table is up-to-date. This should not need to be called often, but is useful if a change is made to the image display that could not be identified by listeners.
    • currentChannelProperty

      public ReadOnlyObjectProperty<ChannelDisplayInfo> currentChannelProperty()
      Get the currently-selected channel. This is not necessarily showing in the image; see #currentChannelVisible() for that.
      Returns:
    • isEmpty

      public boolean isEmpty()
      Query if the table is empty, i.e. there are no channels to display.
      Returns:
    • getSelectionModel

      public MultipleSelectionModel<ChannelDisplayInfo> getSelectionModel()
      Get the selection model for the channels.
      Returns:
    • imageDisplayProperty

      public ObjectProperty<ImageDisplay> imageDisplayProperty()
      Property for the image display that should be shown and managed by this pane.
      Returns: