Class CSIndexed

java.lang.Object
org.apache.pdfbox.debugger.colorpane.CSIndexed

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

    • indexed

      private final PDIndexed indexed
    • panel

      private JPanel panel
    • colorCount

      private final int colorCount
  • Constructor Details

    • CSIndexed

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

    • getColorantData

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

      private void initUI(IndexedColorant[] colorants)
    • getPanel

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

      private int getHival(COSArray array)