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

public Class CSIndexed

extends Object
Class Inheritance
Imports
java.awt.Color, .Component, .Dimension, .Font, .GridBagConstraints, .GridBagLayout, java.io.IOException, javax.swing.Box, .JLabel, .JPanel, .JScrollPane, .JTable, org.apache.pdfbox.cos.COSArray, .COSNumber, org.apache.pdfbox.pdmodel.graphics.color.PDIndexed

A class that provides the necessary UI and functionalities to show the Indexed colorspace.
Author
Khyrul Bashar.

Field Summary

Modifier and TypeField and Description
private final int
private final PDIndexed
private JPanel

Constructor Summary

AccessConstructor and Description
public
CSIndexed(COSArray
COSArray instance for Indexed color space.
array
)

Constructor.

Method Summary

Modifier and TypeMethod and Description
private IndexedColorant[]
getColorantData()

Parses the colorant data from the array and return.

private int
public Component

Returns:

JPanel instance
getPanel
()

return the main panel that hold all the UI elements.

private void
initUI(IndexedColorant[] colorants)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

colorCountback to summary
private final int colorCount
indexedback to summary
private final PDIndexed indexed
panelback to summary
private JPanel panel

Constructor Detail

CSIndexedback to summary
public CSIndexed(COSArray array) throws IOException

Constructor.

Parameters
array:COSArray

COSArray instance for Indexed color space.

Exceptions
IOException:
if the instance could not be created

Method Detail

getColorantDataback to summary
private IndexedColorant[] getColorantData()

Parses the colorant data from the array and return.

getHivalback to summary
private int getHival(COSArray array)
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(IndexedColorant[] colorants)