Class ColorThemingTableModel
- java.lang.Object
-
- com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
-
- com.vividsolutions.jump.workbench.ui.renderer.style.ColorThemingTableModel
-
- All Implemented Interfaces:
TableModel
public class ColorThemingTableModel extends ColumnBasedTableModel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
ColorThemingTableModel.AttributeMapping
static class
ColorThemingTableModel.AttributeValueTableModelEvent
-
Nested classes/interfaces inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
ColumnBasedTableModel.Column
-
-
Field Summary
Fields Modifier and Type Field Description static int
ATTRIBUTE_COLUMN
protected List<ColorThemingTableModel.AttributeMapping>
attributeMappings
protected String
attributeName
static int
COLOR_COLUMN
static int
LABEL_COLUMN
-
Constructor Summary
Constructors Constructor Description ColorThemingTableModel(BasicStyle defaultStyle, String attributeName, Map attributeValueToBasicStyleMap, Map attributeValueToLabelMap, FeatureSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
apply(ColorScheme colorScheme, boolean skipDefaultAttributeMapping)
protected ColorThemingTableModel.AttributeMapping
attributeMapping(int i)
void
clear()
boolean
containsNullAttributeValues()
protected List
createColumns(FeatureSchema schema)
Object
findDuplicateAttributeValue()
Map
getAttributeValueToBasicStyleMap()
Map
getAttributeValueToLabelMap()
BasicStyle
getDefaultStyle()
int
getRowCount()
int
insertAttributeValue(int row, ColorScheme colorScheme)
boolean
isCellEditable(int rowIndex, int columnIndex)
protected List<ColorThemingTableModel.AttributeMapping>
nonDefaultAttributeMappings()
void
removeAttributeValues(int[] rows)
void
setAttributeName(String attributeName)
void
setMaps(Map<Object,BasicStyle> attributeValueToBasicStyleMap, Map<Object,String> attributeValueToLabelMap)
void
sort()
void
sort(boolean ascending)
boolean
wasLastSortAscending()
-
Methods inherited from class com.vividsolutions.jump.workbench.ui.ColumnBasedTableModel
addTableModelListener, fireTableChanged, getColumn, getColumnClass, getColumnCount, getColumnName, getValueAt, indexOfColumn, isFiringEvents, removeTableModelListener, setColumns, setFiringEvents, setValueAt
-
-
-
-
Field Detail
-
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
-
LABEL_COLUMN
public static final int LABEL_COLUMN
- See Also:
- Constant Field Values
-
attributeMappings
protected List<ColorThemingTableModel.AttributeMapping> attributeMappings
-
attributeName
protected String attributeName
-
-
Constructor Detail
-
ColorThemingTableModel
public ColorThemingTableModel(BasicStyle defaultStyle, String attributeName, Map attributeValueToBasicStyleMap, Map attributeValueToLabelMap, FeatureSchema schema)
-
-
Method Detail
-
setMaps
public void setMaps(Map<Object,BasicStyle> attributeValueToBasicStyleMap, Map<Object,String> attributeValueToLabelMap)
-
clear
public void clear()
-
containsNullAttributeValues
public boolean containsNullAttributeValues()
-
attributeMapping
protected ColorThemingTableModel.AttributeMapping attributeMapping(int i)
-
getDefaultStyle
public BasicStyle getDefaultStyle()
-
findDuplicateAttributeValue
public Object findDuplicateAttributeValue()
-
createColumns
protected List createColumns(FeatureSchema schema)
-
apply
public void apply(ColorScheme colorScheme, boolean skipDefaultAttributeMapping)
-
getRowCount
public int getRowCount()
-
setAttributeName
public void setAttributeName(String attributeName)
-
getAttributeValueToBasicStyleMap
public Map getAttributeValueToBasicStyleMap()
-
getAttributeValueToLabelMap
public Map getAttributeValueToLabelMap()
-
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)
-
nonDefaultAttributeMappings
protected List<ColorThemingTableModel.AttributeMapping> nonDefaultAttributeMappings()
-
-