Ignore:
Timestamp:
2012-01-01T14:00:11+01:00 (13 years ago)
Author:
malcolmh
Message:

save

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java

    r27230 r27373  
    2727        public JRadioButton spheres2TopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/Spheres2TopButton.png")));
    2828        public JRadioButton boardDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BoardDayButton.png")));
    29         public JRadioButton diamondDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/DiamondDayButton.png")));
     29        public JRadioButton rhombusDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/DiamondDayButton.png")));
    3030        public JRadioButton triangleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TriangleDayButton.png")));
    3131        public JRadioButton triangleInvDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TriangleInvDayButton.png")));
     
    6565                add(getTopButton(spheres2TopButton, 120, 35, 27, 27, "Spheres2Top", Top.SPHERES2));
    6666                add(getTopButton(boardDayButton, 0, 65, 27, 27, "BoardDay", Top.BOARD));
    67                 add(getTopButton(diamondDayButton, 30, 65, 27, 27, "DiamondDay", Top.DIAMOND));
     67                add(getTopButton(rhombusDayButton, 30, 65, 27, 27, "DiamondDay", Top.RHOMBUS));
    6868                add(getTopButton(triangleDayButton, 60, 65, 27, 27, "TriangleDay", Top.TRIANGLE));
    6969                add(getTopButton(triangleInvDayButton, 90, 65, 27, 27, "TriangleInvDay", Top.TRIANGLE_INV));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/seamarks/SeaMark.java

    r27317 r27373  
    712712
    713713        public enum Top {
    714                 NOTOP, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2, BOARD, DIAMOND, CIRCLE, TRIANGLE, TRIANGLE_INV, SQUARE
     714                NOTOP, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2, BOARD, RHOMBUS, CIRCLE, TRIANGLE, TRIANGLE_INV, SQUARE
    715715        }
    716716
     
    727727                TopSTR.put(Top.SPHERES2, "2 spheres");
    728728                TopSTR.put(Top.BOARD, "board");
    729                 TopSTR.put(Top.DIAMOND, "diamond");
     729                TopSTR.put(Top.RHOMBUS, "rhombus");
    730730                TopSTR.put(Top.CIRCLE, "circle");
    731731                TopSTR.put(Top.TRIANGLE, "triangle, point up");
     
    20022002                                if (getLightAtt(Att.COL, i) != Col.UNKCOL) {
    20032003                                        g2.setPaint(ColMAP.get(getLightAtt(Att.COL, i)));
    2004                                         Double a0 = 270 - Double.parseDouble((String) getLightAtt(Att.BEG, i));
    2005                                         Double da = 270 - Double.parseDouble((String) getLightAtt(Att.END, i)) - a0;
     2004                                        Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.BEG, i));
     2005                                        Double da = 270 - Double.parseDouble((String)getLightAtt(Att.END, i)) - a0;
    20062006                                        da -= da > 0 ? 360 : 0;
    20072007                                        g2.draw(new Arc2D.Double(12, 15, 140, 140, a0, da, Arc2D.OPEN));
     
    20092009                                if (getLightAtt(Att.ALT, i) != Col.UNKCOL) {
    20102010                                        g2.setPaint(ColMAP.get(getLightAtt(Att.ALT, i)));
    2011                                         Double a0 = 270 - Double.parseDouble((String) getLightAtt(Att.BEG, i));
    2012                                         Double da = 270 - Double.parseDouble((String) getLightAtt(Att.END, i)) - a0;
     2011                                        Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.BEG, i));
     2012                                        Double da = 270 - Double.parseDouble((String)getLightAtt(Att.END, i)) - a0;
    20132013                                        da -= da > 0 ? 360 : 0;
     2014                                        g2.draw(new Arc2D.Double(17, 20, 130, 130, a0, da, Arc2D.OPEN));
     2015                                }
     2016            } else if ((getLightAtt(Att.LIT, i) == Lit.DIR) && !((String)getLightAtt(Att.ORT, i)).isEmpty()) {
     2017                                if (getLightAtt(Att.COL, i) != Col.UNKCOL) {
     2018                                        g2.setPaint(ColMAP.get(getLightAtt(Att.COL, i)));
     2019                                        Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.ORT, i)) + 2.0;
     2020                                        Double da = -4.0;
     2021                                        g2.draw(new Arc2D.Double(12, 15, 140, 140, a0, da, Arc2D.OPEN));
     2022                                }
     2023                                if (getLightAtt(Att.ALT, i) != Col.UNKCOL) {
     2024                                        g2.setPaint(ColMAP.get(getLightAtt(Att.ALT, i)));
     2025                                        Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.ORT, i)) + 2.0;
     2026                                        Double da = -4.0;
    20142027                                        g2.draw(new Arc2D.Double(17, 20, 130, 130, a0, da, Arc2D.OPEN));
    20152028                                }
Note: See TracChangeset for help on using the changeset viewer.