Class ImageChannel

  • All Implemented Interfaces:, java.lang.Comparable<ImageChannel>

    public class ImageChannel
    extends java.lang.Object
    implements, java.lang.Comparable<ImageChannel>
    A class that represents an image channel.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructor Description
      ImageChannel​(java.lang.String code, java.lang.String label)  
      ImageChannel​(java.lang.String code, java.lang.String label, java.lang.String description, java.lang.Integer wavelength, java.util.List<ImageTransformationInfo> transformations)  
    • Constructor Detail

      • ImageChannel

        public ImageChannel​(java.lang.String code,
                            java.lang.String label)
      • ImageChannel

        public ImageChannel​(java.lang.String code,
                            java.lang.String label,
                            java.lang.String description,
                            java.lang.Integer wavelength,
                            java.util.List<ImageTransformationInfo> transformations)
    • Method Detail

      • getCode

        public java.lang.String getCode()
        Returns the channel code.
      • getLabel

        public java.lang.String getLabel()
        Returns the channel label.
      • tryGetDescription

        public java.lang.String tryGetDescription()
        Returns the channel' description or null, if this channel has no description.
      • tryGetWavelength

        public java.lang.Integer tryGetWavelength()
        Returns the channel's wavelength or null, if the wavelength is not known.
      • getTransformations

        public java.util.List<ImageTransformationInfo> getTransformations()
        Returns the transformations defined for this channel. May be empty, if there are no transformations defined.
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • compareTo

        public int compareTo​(ImageChannel imageChannel)
        Specified by:
        compareTo in interface java.lang.Comparable<ImageChannel>