Revision 6900 org.gvsig.raster/branches/org.gvsig.raster.2.4/org.gvsig.raster/org.gvsig.raster.swing/org.gvsig.raster.swing.legend/org.gvsig.raster.swing.legend.impl/src/main/java/org/gvsig/raster/swing/legend/impl/colortable/editor/DefaultColorTableClassesTableModel.java
DefaultColorTableClassesTableModel.java | ||
---|---|---|
28 | 28 |
import javax.swing.table.AbstractTableModel; |
29 | 29 |
|
30 | 30 |
import org.gvsig.raster.lib.legend.api.colortable.ColorTable; |
31 |
import org.gvsig.raster.lib.legend.api.colortable.ColorTableClass; |
|
31 |
import org.gvsig.raster.lib.legend.api.colortable.colortableclass.ColorTableClass;
|
|
32 | 32 |
import org.gvsig.raster.swing.legend.colortable.editor.ColorTableClassesTableModel; |
33 | 33 |
import org.gvsig.raster.swing.legend.colortable.selector.ColorTablesTableModel; |
34 | 34 |
import org.gvsig.tools.ToolsLocator; |
... | ... | |
67 | 67 |
*/ |
68 | 68 |
@Override |
69 | 69 |
public int getRowCount() { |
70 |
if(colorTable==null){ |
|
71 |
return 0; |
|
72 |
} |
|
70 | 73 |
return colorTable.getClasses().size(); |
71 | 74 |
} |
72 | 75 |
|
... | ... | |
176 | 179 |
this.fireTableDataChanged(); |
177 | 180 |
} |
178 | 181 |
|
182 |
@Override |
|
183 |
public void setColorTable(ColorTable colorTable) { |
|
184 |
this.colorTable = colorTable; |
|
185 |
this.fireTableDataChanged(); |
|
186 |
} |
|
187 |
|
|
179 | 188 |
} |
Also available in: Unified diff