Class ColorThemingTableModel
- java.lang.Object
-
- org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
-
- org.locationtech.jts.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 classColorThemingTableModel.AttributeMappingstatic classColorThemingTableModel.AttributeValueTableModelEvent-
Nested classes/interfaces inherited from class org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
ColumnBasedTableModel.Column
-
-
Field Summary
Fields Modifier and Type Field Description static intATTRIBUTE_COLUMNprotected ListattributeMappingsprotected StringattributeNamestatic intCOLOR_COLUMNstatic StringCOLOR_COLUMN_TITLE
-
Constructor Summary
Constructors Constructor Description ColorThemingTableModel(BasicStyle defaultStyle, String attributeName, Map attributeValueToBasicStyleMap, FeatureSchema schema)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapply(ColorScheme colorScheme, boolean skipDefaultAttributeMapping)protected ColorThemingTableModel.AttributeMappingattributeMapping(int i)voidclear()booleancontainsNullAttributeValues()protected ListcreateColumns(FeatureSchema schema)ObjectfindDuplicateAttributeValue()MapgetAttributeValueToBasicStyleMap()BasicStylegetDefaultStyle()intgetRowCount()intinsertAttributeValue(int row, ColorScheme colorScheme)booleanisCellEditable(int rowIndex, int columnIndex)protected ListnonDefaultAttributeMappings()voidremoveAttributeValues(int[] rows)voidsetAttributeName(String attributeName)voidsetAttributeValueToBasicStyleMap(Map map)voidsort()voidsort(boolean ascending)booleanwasLastSortAscending()-
Methods inherited from class org.locationtech.jts.jump.workbench.ui.ColumnBasedTableModel
addTableModelListener, fireTableChanged, getColumn, getColumnClass, getColumnCount, getColumnName, getValueAt, indexOfColumn, isFiringEvents, removeTableModelListener, setColumns, setFiringEvents, setValueAt
-
-
-
-
Field Detail
-
COLOR_COLUMN_TITLE
public static final 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
-
attributeMappings
protected List attributeMappings
-
attributeName
protected String attributeName
-
-
Constructor Detail
-
ColorThemingTableModel
public ColorThemingTableModel(BasicStyle defaultStyle, String attributeName, Map attributeValueToBasicStyleMap, FeatureSchema schema)
-
-
Method Detail
-
setAttributeValueToBasicStyleMap
public void setAttributeValueToBasicStyleMap(Map map)
-
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()
-
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 nonDefaultAttributeMappings()
-
-