Changeset 17518 in josm
- Timestamp:
- 2021-02-22T00:07:10+01:00 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/history/NodeListTableCellRenderer.java
r16490 r17518 18 18 /** 19 19 * A {@link TableCellRenderer} for the {@link NodeListViewer}. 20 * 20 * 21 21 * Renders information about a node when comparing the node list of two 22 22 * historical versions of a way. … … 24 24 public class NodeListTableCellRenderer extends JLabel implements TableCellRenderer { 25 25 26 /** Color of selected background */ 26 27 public static final Color BGCOLOR_SELECTED = new Color(143, 170, 255); 27 28 … … 63 64 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 64 65 int row, int column) { 65 66 66 if (value == null) return this; 67 67 TwoColumnDiff.Item item = (TwoColumnDiff.Item) value; 68 68 GuiHelper.setBackgroundReadable(this, item.state.getColor(isSelected, hasFocus)); 69 switch(column) { 70 case NodeListTableColumnModel.INDEX_COLUMN: 69 if (column == NodeListTableColumnModel.INDEX_COLUMN) { 71 70 renderIndex((DiffTableModel) table.getModel(), row); 72 break; 73 case NodeListTableColumnModel.NODE_COLUMN: 71 } else if (column == NodeListTableColumnModel.NODE_COLUMN) { 74 72 renderNode(item); 75 break;76 73 } 77 74 return this;
Note:
See TracChangeset
for help on using the changeset viewer.