Class CSIndexed


  • public class CSIndexed
    extends java.lang.Object
    A class that provides the necessary UI and functionalities to show the Indexed colorspace.
    • Field Detail

      • panel

        private javax.swing.JPanel panel
      • colorCount

        private final int colorCount
    • Constructor Detail

      • CSIndexed

        public CSIndexed​(COSArray array)
                  throws java.io.IOException
        Constructor.
        Parameters:
        array - COSArray instance for Indexed color space.
        Throws:
        java.io.IOException
    • Method Detail

      • getColorantData

        private IndexedColorant[] getColorantData()
        Parses the colorant data from the array and return.
        Returns:
        the colorant data
      • getPanel

        public java.awt.Component getPanel()
        return the main panel that hold all the UI elements.
        Returns:
        JPanel instance
      • getHival

        private int getHival​(COSArray array)