Class CSDeviceN
- java.lang.Object
-
- org.apache.pdfbox.debugger.colorpane.CSDeviceN
-
public class CSDeviceN extends java.lang.Object
A class that provides the necessary UI and functionalities to show the DeviceN color space.
-
-
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)
-
-
-
Field Detail
-
deviceN
private final PDDeviceN deviceN
-
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.
-
initUI
private void initUI(DeviceNColorant[] colorants)
-
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)
-
-