Class CSDeviceN

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

public class CSDeviceN extends Object
A class that provides the necessary UI and functionalities to show the DeviceN color space.
  • Field Details

  • Constructor Details

    • CSDeviceN

      public CSDeviceN(COSArray array) throws IOException
      Constructor
      Parameters:
      array - COSArray instance that holds the DeviceN color space
      Throws:
      IOException
  • Method Details

    • getColorantData

      private DeviceNColorant[] getColorantData() throws IOException
      Parses the colorant data from the array.
      Returns:
      the parsed colorants.
      Throws:
      IOException - if the color conversion fails.
    • initUI

      private void initUI(DeviceNColorant[] colorants)
    • getPanel

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

      private Color getColorObj(float[] rgbValues)