Package qupath.lib.display.settings
Class ChannelSettings
java.lang.Object
qupath.lib.display.settings.ChannelSettings
A simple class to store the main information needed by QuPath to display an image channel
 with a requested color and brightness/contrast setting.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ChannelSettingscreate(String name, float minDisplay, float maxDisplay, ChannelColor color, boolean isShowing) Create a new channel settings object.getColor()Get the color used to display the channel, or null if a color is not relevant.floatGet the requested maximum display value for the channel, This should be used with the last entry in any lookup table.floatGet the requested minimum display value for the channel.getName()Get the name of the channel.booleanGet whether the channel should be displayed.
- 
Constructor Details- 
ChannelSettingspublic ChannelSettings()
 
- 
- 
Method Details- 
createpublic static ChannelSettings create(String name, float minDisplay, float maxDisplay, ChannelColor color, boolean isShowing) Create a new channel settings object.- Parameters:
- name-
- minDisplay-
- maxDisplay-
- color-
- isShowing-
- Returns:
 
- 
getNameGet the name of the channel.- Returns:
 
- 
getMinDisplaypublic float getMinDisplay()Get the requested minimum display value for the channel. This should be used with the first entry in any lookup table.- Returns:
 
- 
getMaxDisplaypublic float getMaxDisplay()Get the requested maximum display value for the channel, This should be used with the last entry in any lookup table.- Returns:
 
- 
getColorGet the color used to display the channel, or null if a color is not relevant.- Returns:
 
- 
isShowingpublic boolean isShowing()Get whether the channel should be displayed.- Returns:
 
 
-