Top Description Fields Constructors Methods
org.apache.pdfbox.debugger.colorpane

public Class CSDeviceN

extends Object
Class Inheritance
Imports
java.awt.Color, .Component, .Dimension, .Font, javax.swing.BoxLayout, .JLabel, .JPanel, .JScrollPane, .JTable, java.io.IOException, java.util.List, org.apache.pdfbox.cos.COSArray, org.apache.pdfbox.pdmodel.graphics.color.PDDeviceN

A class that provides the necessary UI and functionalities to show the DeviceN color space.
Author
Khyrul Bashar.

Field Summary

Modifier and TypeField and Description
private final PDDeviceN
private JPanel

Constructor Summary

AccessConstructor and Description
public
CSDeviceN(COSArray
COSArray instance that holds the DeviceN color space
array
)

Constructor

Method Summary

Modifier and TypeMethod and Description
private DeviceNColorant[]

Returns:

the parsed colorants.
getColorantData
()

Parses the colorant data from the array.

private Color
getColorObj(float[] rgbValues)

public Component

Returns:

JPanel instance
getPanel
()

return the main panel that hold all the UI elements.

private void
initUI(DeviceNColorant[] colorants)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

deviceNback to summary
private final PDDeviceN deviceN
panelback to summary
private JPanel panel

Constructor Detail

CSDeviceNback to summary
public CSDeviceN(COSArray array) throws IOException

Constructor

Parameters
array:COSArray

COSArray instance that holds the DeviceN color space

Exceptions
IOException:
if the instance could not be created

Method Detail

getColorantDataback to summary
private DeviceNColorant[] getColorantData() throws IOException

Parses the colorant data from the array.

Returns:DeviceNColorant[]

the parsed colorants.

Exceptions
IOException:
if the color conversion fails.
getColorObjback to summary
private Color getColorObj(float[] rgbValues)
getPanelback to summary
public Component getPanel()

return the main panel that hold all the UI elements.

Returns:Component

JPanel instance

initUIback to summary
private void initUI(DeviceNColorant[] colorants)