Changeset 27373 in osm for applications/editors/josm/plugins/smed/plugs/oseam/src
- Timestamp:
- 2012-01-01T14:00:11+01:00 (13 years ago)
- 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 27 27 public JRadioButton spheres2TopButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/Spheres2TopButton.png"))); 28 28 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"))); 30 30 public JRadioButton triangleDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TriangleDayButton.png"))); 31 31 public JRadioButton triangleInvDayButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/TriangleInvDayButton.png"))); … … 65 65 add(getTopButton(spheres2TopButton, 120, 35, 27, 27, "Spheres2Top", Top.SPHERES2)); 66 66 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)); 68 68 add(getTopButton(triangleDayButton, 60, 65, 27, 27, "TriangleDay", Top.TRIANGLE)); 69 69 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 712 712 713 713 public enum Top { 714 NOTOP, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2, BOARD, DIAMOND, CIRCLE, TRIANGLE, TRIANGLE_INV, SQUARE714 NOTOP, CAN, CONE, SPHERE, X_SHAPE, NORTH, SOUTH, EAST, WEST, SPHERES2, BOARD, RHOMBUS, CIRCLE, TRIANGLE, TRIANGLE_INV, SQUARE 715 715 } 716 716 … … 727 727 TopSTR.put(Top.SPHERES2, "2 spheres"); 728 728 TopSTR.put(Top.BOARD, "board"); 729 TopSTR.put(Top. DIAMOND, "diamond");729 TopSTR.put(Top.RHOMBUS, "rhombus"); 730 730 TopSTR.put(Top.CIRCLE, "circle"); 731 731 TopSTR.put(Top.TRIANGLE, "triangle, point up"); … … 2002 2002 if (getLightAtt(Att.COL, i) != Col.UNKCOL) { 2003 2003 g2.setPaint(ColMAP.get(getLightAtt(Att.COL, i))); 2004 Double a0 = 270 - Double.parseDouble((String) 2005 Double da = 270 - Double.parseDouble((String) 2004 Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.BEG, i)); 2005 Double da = 270 - Double.parseDouble((String)getLightAtt(Att.END, i)) - a0; 2006 2006 da -= da > 0 ? 360 : 0; 2007 2007 g2.draw(new Arc2D.Double(12, 15, 140, 140, a0, da, Arc2D.OPEN)); … … 2009 2009 if (getLightAtt(Att.ALT, i) != Col.UNKCOL) { 2010 2010 g2.setPaint(ColMAP.get(getLightAtt(Att.ALT, i))); 2011 Double a0 = 270 - Double.parseDouble((String) 2012 Double da = 270 - Double.parseDouble((String) 2011 Double a0 = 270 - Double.parseDouble((String)getLightAtt(Att.BEG, i)); 2012 Double da = 270 - Double.parseDouble((String)getLightAtt(Att.END, i)) - a0; 2013 2013 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; 2014 2027 g2.draw(new Arc2D.Double(17, 20, 130, 130, a0, da, Arc2D.OPEN)); 2015 2028 }
Note:
See TracChangeset
for help on using the changeset viewer.