Class CSIndexed
- java.lang.Object
-
- org.apache.pdfbox.debugger.colorpane.CSIndexed
-
public class CSIndexed extends java.lang.Object
A class that provides the necessary UI and functionalities to show the Indexed colorspace.
-
-
Field Summary
Fields Modifier and Type Field Description private int
colorCount
private PDIndexed
indexed
private javax.swing.JPanel
panel
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private IndexedColorant[]
getColorantData()
Parses the colorant data from the array and return.private int
getHival(COSArray array)
java.awt.Component
getPanel()
return the main panel that hold all the UI elements.private void
initUI(IndexedColorant[] colorants)
-
-
-
Field Detail
-
indexed
private final PDIndexed indexed
-
panel
private javax.swing.JPanel panel
-
colorCount
private final int colorCount
-
-
Constructor Detail
-
CSIndexed
public CSIndexed(COSArray array) throws java.io.IOException
Constructor.- Parameters:
array
- COSArray instance for Indexed color space.- Throws:
java.io.IOException
-
-
Method Detail
-
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 java.awt.Component getPanel()
return the main panel that hold all the UI elements.- Returns:
- JPanel instance
-
getHival
private int getHival(COSArray array)
-
-