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

public Class DeviceNTableModel

extends AbstractTableModel
Class Inheritance
Annotations
@SuppressWarnings:serial, squid:S1948
Imports
java.awt.Color, javax.swing.table.AbstractTableModel

This the table model for showing DeviceN color space which extends AbstractTableModel.
Author
Khyrul Bashar.

Field Summary

Modifier and TypeField and Description
private static final String[]
private final DeviceNColorant[]
Inherited from javax.swing.table.AbstractTableModel:
listenerList

Constructor Summary

AccessConstructor and Description
public
DeviceNTableModel(DeviceNColorant[]
array of DeviceNColorant
colorants
)

Constructor

Method Summary

Modifier and TypeMethod and Description
public Class<?>
getColumnClass(int
the column being queried
columnIndex
)

Overrides javax.swing.table.AbstractTableModel.getColumnClass.

Implements javax.swing.table.TableModel.getColumnClass.

Returns Object.class regardless of columnIndex.

public int
getColumnCount()

Implements javax.swing.table.TableModel.getColumnCount.

Returns the number of columns in the model.

public String
getColumnName(int
the column being queried
column
)

Overrides javax.swing.table.AbstractTableModel.getColumnName.

Implements javax.swing.table.TableModel.getColumnName.

Returns a default name for the column using spreadsheet conventions: A, B, C, ...

public int
getRowCount()

Implements javax.swing.table.TableModel.getRowCount.

Returns the number of rows in the model.

public Object
getValueAt(int
the row whose value is to be queried
row
,
int
the column whose value is to be queried
column
)

Implements javax.swing.table.TableModel.getValueAt.

Returns the value for the cell at columnIndex and rowIndex.

Inherited from javax.swing.table.AbstractTableModel:
addTableModelListenerfindColumnfireTableCellUpdatedfireTableChangedfireTableDataChangedfireTableRowsDeletedfireTableRowsInsertedfireTableRowsUpdatedfireTableStructureChangedgetListenersgetTableModelListenersisCellEditableremoveTableModelListenersetValueAt

Field Detail

COLUMNNAMESback to summary
private static final String[] COLUMNNAMES
databack to summary
private final DeviceNColorant[] data

Constructor Detail

DeviceNTableModelback to summary
public DeviceNTableModel(DeviceNColorant[] colorants)

Constructor

Parameters
colorants:DeviceNColorant[]

array of DeviceNColorant

Method Detail

getColumnClassback to summary
public Class<?> getColumnClass(int columnIndex)

Overrides javax.swing.table.AbstractTableModel.getColumnClass.

Implements javax.swing.table.TableModel.getColumnClass.

Doc from javax.swing.table.AbstractTableModel.getColumnClass.

Returns Object.class regardless of columnIndex.

Parameters
columnIndex:int

the column being queried

Returns:Class<?>

the Object.class

Annotations
@Override
getColumnCountback to summary
public int getColumnCount()

Implements javax.swing.table.TableModel.getColumnCount.

Doc from javax.swing.table.TableModel.getColumnCount.

Returns the number of columns in the model. A JTable uses this method to determine how many columns it should create and display by default.

Returns:int

the number of columns in the model

Annotations
@Override
getColumnNameback to summary
public String getColumnName(int column)

Overrides javax.swing.table.AbstractTableModel.getColumnName.

Implements javax.swing.table.TableModel.getColumnName.

Doc from javax.swing.table.AbstractTableModel.getColumnName.

Returns a default name for the column using spreadsheet conventions: A, B, C, ... Z, AA, AB, etc. If column cannot be found, returns an empty string.

Parameters
column:int

the column being queried

Returns:String

a string containing the default name of column

Annotations
@Override
getRowCountback to summary
public int getRowCount()

Implements javax.swing.table.TableModel.getRowCount.

Doc from javax.swing.table.TableModel.getRowCount.

Returns the number of rows in the model. A JTable uses this method to determine how many rows it should display. This method should be quick, as it is called frequently during rendering.

Returns:int

the number of rows in the model

Annotations
@Override
getValueAtback to summary
public Object getValueAt(int row, int column)

Implements javax.swing.table.TableModel.getValueAt.

Doc from javax.swing.table.TableModel.getValueAt.

Returns the value for the cell at columnIndex and rowIndex.

Parameters
row:int

the row whose value is to be queried

column:int

the column whose value is to be queried

Returns:Object

the value Object at the specified cell

Annotations
@Override