Changeset 33054 in osm for applications/editors/josm/plugins/smed/src/panels/PanelSectors.java
- Timestamp:
- 2016-11-12T04:42:33+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/src/panels/PanelSectors.java
r32911 r33054 1 // License: GPL. For details, see LICENSE file. 1 2 package panels; 2 3 … … 130 131 private class SectorTable extends AbstractTableModel { 131 132 132 private String[] headings = { 133 private String[] headings = {Messages.getString("Sector"), Messages.getString("Colour"), Messages.getString("Character"), 133 134 Messages.getString("Group"), Messages.getString("Sequence"), Messages.getString("Period"), Messages.getString("Directional"), 134 135 Messages.getString("Start"), Messages.getString("End"), Messages.getString("Radius"), Messages.getString("Height"), 135 136 Messages.getString("Range"), Messages.getString("Visibility"), Messages.getString("Exhibition") }; 136 137 137 publicSectorTable() {138 SectorTable() { 138 139 } 139 140 … … 182 183 return row; 183 184 case 1: 184 if (((String) SmedAction.panelMain.mark.getLightAtt(Att.CHR, row)).contains("Al")) {185 if (((String) SmedAction.panelMain.mark.getLightAtt(Att.CHR, row)).contains("Al")) { 185 186 if (SmedAction.panelMain.mark.getLightAtt(Att.COL, row) == Col.UNKCOL) 186 187 return Col.UNKCOL; … … 213 214 ImageIcon img = colours.get(colour); 214 215 if (img == value) 215 if (((String) SmedAction.panelMain.mark.getLightAtt(Att.CHR, row)).contains("Al")) {216 if (((String) SmedAction.panelMain.mark.getLightAtt(Att.CHR, row)).contains("Al")) { 216 217 if (((colour == Col.UNKCOL) && (SmedAction.panelMain.mark.getLightAtt(Att.ALT, row) == Col.UNKCOL)) 217 218 || (SmedAction.panelMain.mark.getLightAtt(Att.COL, row) == Col.UNKCOL)) { … … 272 273 273 274 static class CentreRenderer extends DefaultTableCellRenderer { 274 publicCentreRenderer() {275 CentreRenderer() { 275 276 super(); 276 277 setHorizontalAlignment(SwingConstants.CENTER); … … 291 292 add(col2Label); 292 293 } 293 @Override 294 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int rowIndex, int vColIndex) { 295 if (!((String)SmedAction.panelMain.mark.getLightAtt(Att.CHR, rowIndex)).contains("Al")) { 294 295 @Override 296 public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, 297 int rowIndex, int vColIndex) { 298 if (!((String) SmedAction.panelMain.mark.getLightAtt(Att.CHR, rowIndex)).contains("Al")) { 296 299 col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, rowIndex))); 297 300 } else {
Note:
See TracChangeset
for help on using the changeset viewer.