com.vividsolutions.jump.workbench.ui.renderer.style
Class ColorThemingTableModel

java.lang.Object
  extended by com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
      extended by com.vividsolutions.jump.workbench.ui.renderer.style.ColorThemingTableModel
All Implemented Interfaces:
javax.swing.table.TableModel

public class ColorThemingTableModel
extends ColumnBasedTableModel


Nested Class Summary
static class ColorThemingTableModel.AttributeValueTableModelEvent
           
 
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
ColumnBasedTableModel.Column
 
Field Summary
static int ATTRIBUTE_COLUMN
           
static int COLOR_COLUMN
           
static java.lang.String COLOR_COLUMN_TITLE
           
 
Constructor Summary
ColorThemingTableModel(BasicStyle defaultStyle, java.lang.String attributeName, java.util.Map attributeValueToBasicStyleMap, FeatureSchema schema)
           
 
Method Summary
 void apply(ColorScheme colorScheme, boolean skipDefaultAttributeMapping)
           
 void clear()
           
 boolean containsNullAttributeValues()
           
 java.lang.Object findDuplicateAttributeValue()
           
 java.util.Map getAttributeValueToBasicStyleMap()
           
 BasicStyle getDefaultStyle()
           
 int getRowCount()
           
 int insertAttributeValue(int row, ColorScheme colorScheme)
           
 boolean isCellEditable(int rowIndex, int columnIndex)
           
 void removeAttributeValues(int[] rows)
           
 void setAttributeName(java.lang.String attributeName)
           
 void setAttributeValueToBasicStyleMap(java.util.Map map)
           
 void sort()
           
 void sort(boolean ascending)
           
 boolean wasLastSortAscending()
           
 
Methods inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
addTableModelListener, getColumnClass, getColumnCount, getColumnName, getValueAt, indexOfColumn, removeTableModelListener, setValueAt
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLOR_COLUMN_TITLE

public static final java.lang.String COLOR_COLUMN_TITLE
See Also:
Constant Field Values

COLOR_COLUMN

public static final int COLOR_COLUMN
See Also:
Constant Field Values

ATTRIBUTE_COLUMN

public static final int ATTRIBUTE_COLUMN
See Also:
Constant Field Values
Constructor Detail

ColorThemingTableModel

public ColorThemingTableModel(BasicStyle defaultStyle,
                              java.lang.String attributeName,
                              java.util.Map attributeValueToBasicStyleMap,
                              FeatureSchema schema)
Method Detail

setAttributeValueToBasicStyleMap

public void setAttributeValueToBasicStyleMap(java.util.Map map)

clear

public void clear()

containsNullAttributeValues

public boolean containsNullAttributeValues()

getDefaultStyle

public BasicStyle getDefaultStyle()

findDuplicateAttributeValue

public java.lang.Object findDuplicateAttributeValue()

apply

public void apply(ColorScheme colorScheme,
                  boolean skipDefaultAttributeMapping)

getRowCount

public int getRowCount()

setAttributeName

public void setAttributeName(java.lang.String attributeName)

getAttributeValueToBasicStyleMap

public java.util.Map getAttributeValueToBasicStyleMap()

wasLastSortAscending

public boolean wasLastSortAscending()

sort

public void sort()

sort

public void sort(boolean ascending)

removeAttributeValues

public void removeAttributeValues(int[] rows)

insertAttributeValue

public int insertAttributeValue(int row,
                                ColorScheme colorScheme)
Returns:
row

isCellEditable

public boolean isCellEditable(int rowIndex,
                              int columnIndex)