Class DefaultColorTablesTableModel
java.lang.Object
javax.swing.table.AbstractTableModel
org.gvsig.raster.swing.legend.impl.colortable.selector.DefaultColorTablesTableModel
- All Implemented Interfaces:
Serializable,TableModel,org.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
public class DefaultColorTablesTableModel
extends AbstractTableModel
implements org.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
- Author:
- fdiaz
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intFields inherited from class javax.swing.table.AbstractTableModel
listenerList -
Constructor Summary
ConstructorsConstructorDescriptionDefaultColorTablesTableModel(List<org.apache.commons.lang3.tuple.Pair<File, org.gvsig.raster.lib.legend.api.colortable.ColorTable>> colorTables) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColorTable(org.apache.commons.lang3.tuple.Pair<File, org.gvsig.raster.lib.legend.api.colortable.ColorTable> colorTable) org.apache.commons.lang3.tuple.Pair<File, org.gvsig.raster.lib.legend.api.colortable.ColorTable> getColorTable(int index) List<org.apache.commons.lang3.tuple.Pair<File, org.gvsig.raster.lib.legend.api.colortable.ColorTable>> Class<?> getColumnClass(int col) intgetColumnName(int column) intgetValueAt(int rowIndex, int columnIndex) booleanisCellEditable(int row, int col) voidremoveColorTable(int index) voidsetColorTable(int index, org.gvsig.raster.lib.legend.api.colortable.ColorTable colorTableEdited) Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getListeners, getTableModelListeners, removeTableModelListener, setValueAtMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.swing.table.TableModel
addTableModelListener, removeTableModelListener, setValueAt
-
Field Details
-
COLUMN_PREVIEW
public static final int COLUMN_PREVIEW- See Also:
-
COLUMN_NAME
public static final int COLUMN_NAME- See Also:
-
COLUMN_CLASSES
public static final int COLUMN_CLASSES- See Also:
-
COLUMN_INTERPOLATED
public static final int COLUMN_INTERPOLATED- See Also:
-
-
Constructor Details
-
Method Details
-
getRowCount
public int getRowCount()- Specified by:
getRowCountin interfaceTableModel
-
getColumnCount
public int getColumnCount()- Specified by:
getColumnCountin interfaceTableModel
-
getValueAt
- Specified by:
getValueAtin interfaceTableModel
-
getColumnName
- Specified by:
getColumnNamein interfaceTableModel- Overrides:
getColumnNamein classAbstractTableModel
-
isCellEditable
public boolean isCellEditable(int row, int col) - Specified by:
isCellEditablein interfaceTableModel- Overrides:
isCellEditablein classAbstractTableModel
-
getColumnClass
- Specified by:
getColumnClassin interfaceTableModel- Overrides:
getColumnClassin classAbstractTableModel
-
addColorTable
public void addColorTable(org.apache.commons.lang3.tuple.Pair<File, org.gvsig.raster.lib.legend.api.colortable.ColorTable> colorTable) - Specified by:
addColorTablein interfaceorg.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
-
removeColorTable
public void removeColorTable(int index) - Specified by:
removeColorTablein interfaceorg.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
-
getColorTable
public org.apache.commons.lang3.tuple.Pair<File,org.gvsig.raster.lib.legend.api.colortable.ColorTable> getColorTable(int index) - Specified by:
getColorTablein interfaceorg.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
-
setColorTable
public void setColorTable(int index, org.gvsig.raster.lib.legend.api.colortable.ColorTable colorTableEdited) - Specified by:
setColorTablein interfaceorg.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
-
getColorTables
public List<org.apache.commons.lang3.tuple.Pair<File,org.gvsig.raster.lib.legend.api.colortable.ColorTable>> getColorTables()- Specified by:
getColorTablesin interfaceorg.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel
-