Class CSDeviceN


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

      Fields 
      Modifier and Type Field Description
      private PDDeviceN deviceN  
      private javax.swing.JPanel panel  
    • Constructor Summary

      Constructors 
      Constructor Description
      CSDeviceN​(COSArray array)
      Constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private DeviceNColorant[] getColorantData()
      Parses the colorant data from the array.
      private java.awt.Color getColorObj​(float[] rgbValues)  
      java.awt.Component getPanel()
      return the main panel that hold all the UI elements.
      private void initUI​(DeviceNColorant[] colorants)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • panel

        private javax.swing.JPanel panel
    • Constructor Detail

      • CSDeviceN

        public CSDeviceN​(COSArray array)
                  throws java.io.IOException
        Constructor
        Parameters:
        array - COSArray instance that holds the DeviceN color space
        Throws:
        java.io.IOException
    • Method Detail

      • getColorantData

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

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

        private java.awt.Color getColorObj​(float[] rgbValues)