Ignore:
Timestamp:
2016-11-12T04:42:33+01:00 (8 years ago)
Author:
donvip
Message:

checkstyle

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.
    12package panels;
    23
     
    130131    private class SectorTable extends AbstractTableModel {
    131132
    132         private String[] headings = { Messages.getString("Sector"), Messages.getString("Colour"), Messages.getString("Character"),
     133        private String[] headings = {Messages.getString("Sector"), Messages.getString("Colour"), Messages.getString("Character"),
    133134                Messages.getString("Group"), Messages.getString("Sequence"), Messages.getString("Period"), Messages.getString("Directional"),
    134135                Messages.getString("Start"), Messages.getString("End"), Messages.getString("Radius"), Messages.getString("Height"),
    135136                Messages.getString("Range"), Messages.getString("Visibility"), Messages.getString("Exhibition") };
    136137
    137         public SectorTable() {
     138        SectorTable() {
    138139        }
    139140
     
    182183                    return row;
    183184            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")) {
    185186                    if (SmedAction.panelMain.mark.getLightAtt(Att.COL, row) == Col.UNKCOL)
    186187                        return Col.UNKCOL;
     
    213214                    ImageIcon img = colours.get(colour);
    214215                    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")) {
    216217                            if (((colour == Col.UNKCOL) && (SmedAction.panelMain.mark.getLightAtt(Att.ALT, row) == Col.UNKCOL))
    217218                                    || (SmedAction.panelMain.mark.getLightAtt(Att.COL, row) == Col.UNKCOL)) {
     
    272273
    273274    static class CentreRenderer extends DefaultTableCellRenderer {
    274         public CentreRenderer() {
     275        CentreRenderer() {
    275276            super();
    276277            setHorizontalAlignment(SwingConstants.CENTER);
     
    291292            add(col2Label);
    292293        }
    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")) {
    296299                col2Label.setBackground(SeaMark.ColMAP.get(SmedAction.panelMain.mark.getLightAtt(Att.COL, rowIndex)));
    297300            } else {
Note: See TracChangeset for help on using the changeset viewer.