Class CSIndexed
- java.lang.Object
-
- org.apache.pdfbox.debugger.colorpane.CSIndexed
-
public class CSIndexed extends java.lang.ObjectA class that provides the necessary UI and functionalities to show the Indexed colorspace.
-
-
Field Summary
Fields Modifier and Type Field Description private intcolorCountprivate PDIndexedindexedprivate javax.swing.JPanelpanel
-
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 intgetHival(COSArray array)java.awt.ComponentgetPanel()return the main panel that hold all the UI elements.private voidinitUI(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- if the instance could not be created
-
-
Method Detail
-
getColorantData
private IndexedColorant[] getColorantData()
Parses the colorant data from the array and return.- Returns:
-
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)
-
-