Ignore:
Timestamp:
2010-12-13T16:39:42+01:00 (14 years ago)
Author:
malcolmh
Message:

colour panel

Location:
applications/editors/josm/plugins/smed/plugs/oseam/src
Files:
2 added
22 edited
1 copied

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/AmberButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
    2898      inkscape:cx="-4.239711"
     2897     inkscape:zoom="22.627416"
     2898     inkscape:cx="34.651164"
    28992899     inkscape:cy="14.585448"
    29002900     inkscape:document-units="px"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#ffbf00;fill-opacity:1;stroke:#000000;stroke-width:0.96017593000000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#ffbf00;fill-opacity:1;stroke:#000000;stroke-width:0.74682963;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect5912"
    2939        width="49.039825"
    2940        height="15.039824"
    2941        x="0.48008797"
    2942        y="1036.8422"
    2943        rx="4.9039822"
    2944        ry="4.699945" />
     2939       width="29.25317"
     2940       height="15.25317"
     2941       x="0.37341481"
     2942       y="1036.7355"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="14.495688"
    2949        y="1048.5615"
     2948       x="4.5519986"
     2949       y="1048.6941"
    29502950       id="text8133"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan8135"
    2954          x="14.495688"
    2955          y="1048.5615">Am</tspan></text>
     2954         x="4.5519986"
     2955         y="1048.6941">Am</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/BlackButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
     2897     inkscape:zoom="22.627416"
    28982898     inkscape:cx="25.896642"
    28992899     inkscape:cy="15.827314"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.93155312999999995;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.72447377;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect6844"
    2939        width="49.068447"
    2940        height="15.068447"
    2941        x="0.46577656"
    2942        y="1036.8279"
    2943        rx="4.8357673"
    2944        ry="4.4863157" />
     2939       width="29.275526"
     2940       height="15.275527"
     2941       x="0.36223689"
     2942       y="1036.7244"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="20.417709"
    2949        y="1048.7383"
     2948       x="10.297243"
     2949       y="1048.6941"
    29502950       id="text9524"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan9526"
    2954          x="20.417709"
    2955          y="1048.7383">B</tspan></text>
     2954         x="10.297243"
     2955         y="1048.6941">B</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/BlueButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="14.49"
     2897     inkscape:zoom="20.491955"
    28982898     inkscape:cx="25"
    2899      inkscape:cy="16.53442"
     2899     inkscape:cy="-1.0334503"
    29002900     inkscape:document-units="px"
    29012901     inkscape:current-layer="layer1"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#0000ff;fill-opacity:1;stroke:#000000;stroke-width:0.93325316999999997;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#0000ff;fill-opacity:1;stroke:#000000;stroke-width:0.72580141;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect7776"
    2939        width="49.06675"
    2940        height="15.066747"
    2941        x="0.46662658"
    2942        y="1036.8289"
    2943        rx="4.7773395"
    2944        ry="4.557775" />
     2939       width="29.274199"
     2940       height="15.274198"
     2941       x="0.3629007"
     2942       y="1036.7252"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="16.036686"
    2949        y="1048.5793"
     2948       x="6.1303592"
     2949       y="1048.6282"
    29502950       id="text10915"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan10917"
    2954          x="16.036686"
    2955          y="1048.5793">Bu</tspan></text>
     2954         x="6.1303592"
     2955         y="1048.6282">Bu</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/GreenButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
     2897     inkscape:zoom="22.627416"
    28982898     inkscape:cx="29.432176"
    28992899     inkscape:cy="14.943429"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#00ff00;fill-opacity:1;stroke:#000000;stroke-width:0.96934467999999996;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#00ff00;fill-opacity:1;stroke:#000000;stroke-width:0.75399208;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect8708"
    2939        width="49.030655"
    2940        height="15.030655"
    2941        x="0.48467234"
    2942        y="1036.8468"
    2943        rx="4.9177175"
    2944        ry="4.7767539" />
     2939       width="29.246008"
     2940       height="15.246007"
     2941       x="0.37699604"
     2942       y="1036.7391"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="20.152544"
    2949        y="1048.6499"
     2948       x="10.208854"
     2949       y="1048.7825"
    29502950       id="text12306"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan12308"
    2954          x="20.152544"
    2955          y="1048.6499">G</tspan></text>
     2954         x="10.208854"
     2955         y="1048.7825">G</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/OrangeButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
     2897     inkscape:zoom="22.627416"
    28982898     inkscape:cx="21.054497"
    28992899     inkscape:cy="18.655741"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#ff7f00;fill-opacity:1;stroke:#000000;stroke-width:0.96498293;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#ff7f00;fill-opacity:1;stroke:#000000;stroke-width:0.75058466;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect9640"
    2939        width="49.035019"
    2940        height="15.035017"
    2941        x="0.48249146"
    2942        y="1036.8447"
    2943        rx="4.9268904"
    2944        ry="4.72505" />
     2939       width="29.249414"
     2940       height="15.249415"
     2941       x="0.37529233"
     2942       y="1036.7375"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="16.705399"
    2949        y="1048.7383"
     2948       x="6.6291261"
     2949       y="1048.6942"
    29502950       id="text13697"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan13699"
    2954          x="16.705399"
    2955          y="1048.7383">Or</tspan></text>
     2954         x="6.6291261"
     2955         y="1048.6942">Or</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/RedButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
    2898      inkscape:cx="15.29004"
     2897     inkscape:zoom="22.627416"
     2898     inkscape:cx="40.038778"
    28992899     inkscape:cy="14.585448"
    29002900     inkscape:document-units="px"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:0.96017593000000001;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#ff0000;fill-opacity:1;stroke:#000000;stroke-width:0.74682957;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect4980"
    2939        width="49.039825"
    2940        height="15.039824"
    2941        x="0.48008797"
    2942        y="1036.8422"
    2943        rx="4.9039822"
    2944        ry="4.699945" />
     2939       width="29.25317"
     2940       height="15.25317"
     2941       x="0.37341478"
     2942       y="1036.7355"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="19.887379"
    2949        y="1048.6499"
     2948       x="9.8994951"
     2949       y="1048.7383"
    29502950       id="text6742"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan6744"
    2954          x="19.887379"
    2955          y="1048.6499">R</tspan></text>
     2954         x="9.8994951"
     2955         y="1048.7383">R</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/VioletButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
     2897     inkscape:zoom="22.627416"
    28982898     inkscape:cx="25.896642"
    2899      inkscape:cy="21.484168"
     2899     inkscape:cy="7.3420317"
    29002900     inkscape:document-units="px"
    29012901     inkscape:current-layer="layer1"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#8f00ff;fill-opacity:1;stroke:#000000;stroke-width:0.97017038;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#8f00ff;fill-opacity:1;stroke:#000000;stroke-width:0.75463712;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect10572"
    2939        width="49.029831"
    2940        height="15.02983"
    2941        x="0.48508519"
    2942        y="1036.8473"
    2943        rx="4.9263692"
    2944        ry="4.7764921" />
     2939       width="29.245363"
     2940       height="15.245363"
     2941       x="0.37731856"
     2942       y="1036.7395"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="18.826719"
    2949        y="1048.8267"
     2948       x="8.9272242"
     2949       y="1048.915"
    29502950       id="text16764"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan16766"
    2954          x="18.826719"
    2955          y="1048.8267">Vi</tspan></text>
     2954         x="8.9272242"
     2955         y="1048.915">Vi</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/WhiteButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
     2897     inkscape:zoom="22.627416"
    28982898     inkscape:cx="18.273851"
    28992899     inkscape:cy="14.585448"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.99868327;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#ffffff;fill-opacity:1;stroke:#000000;stroke-width:0.77691513;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect3276"
    2939        width="49.001316"
    2940        height="15.001317"
    2941        x="0.49934164"
    2942        y="1036.8616"
    2943        rx="4.9322648"
    2944        ry="4.7407961" />
     2939       width="29.223085"
     2940       height="15.223085"
     2941       x="0.38845757"
     2942       y="1036.7507"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="18.473166"
     2948       x="8.3526993"
    29492949       y="1048.7383"
    29502950       id="text5351"
     
    29522952         sodipodi:role="line"
    29532953         id="tspan5353"
    2954          x="18.473166"
     2954         x="8.3526993"
    29552955         y="1048.7383">W</tspan></text>
    29562956  </g>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/images/YellowButton.svg

    r24695 r24737  
    1111   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
    1212   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
    13    width="50"
     13   width="30"
    1414   height="16"
    1515   id="svg2"
     
    28952895     inkscape:pageopacity="0.0"
    28962896     inkscape:pageshadow="2"
    2897      inkscape:zoom="11.313708"
    2898      inkscape:cx="4.683438"
     2897     inkscape:zoom="22.627416"
     2898     inkscape:cx="32.967711"
    28992899     inkscape:cy="14.585448"
    29002900     inkscape:document-units="px"
     
    29352935     style="display:inline">
    29362936    <rect
    2937        style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:0.97099811;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
     2937       style="fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:0.75528377;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
    29382938       id="rect11504"
    2939        width="49.029003"
    2940        height="15.029002"
    2941        x="0.48549905"
    2942        y="1036.8475"
    2943        rx="4.8623772"
    2944        ry="4.5627236" />
     2939       width="29.244717"
     2940       height="15.244717"
     2941       x="0.37764189"
     2942       y="1036.7396"
     2943       rx="5"
     2944       ry="5" />
    29452945    <text
    29462946       xml:space="preserve"
    29472947       style="font-size:12px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#000000;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold"
    2948        x="20.682875"
    2949        y="1048.6497"
     2948       x="10.650797"
     2949       y="1048.738"
    29502950       id="text18575"
    29512951       sodipodi:linespacing="125%"><tspan
    29522952         sodipodi:role="line"
    29532953         id="tspan18577"
    2954          x="20.682875"
    2955          y="1048.6497">Y</tspan></text>
     2954         x="10.650797"
     2955         y="1048.738">Y</tspan></text>
    29562956  </g>
    29572957</svg>
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java

    r24722 r24737  
    104104                panelLights.setVisible(false);
    105105                panelTop = new PanelTop();
    106                 panelTop.setBounds(new Rectangle(40, 165, 220, 155));
     106                panelTop.setBounds(new Rectangle(40, 165, 220, 160));
    107107                panelTop.setVisible(false);
    108108                panelFog = new PanelFog();
    109                 panelFog.setBounds(new Rectangle(40, 165, 220, 155));
     109                panelFog.setBounds(new Rectangle(40, 165, 220, 160));
    110110                panelFog.setVisible(false);
    111111                panelRadar = new PanelRadar();
    112                 panelRadar.setBounds(new Rectangle(40, 165, 220, 155));
     112                panelRadar.setBounds(new Rectangle(40, 165, 220, 160));
    113113                panelRadar.setVisible(false);
    114114                panelLit = new PanelLit();
    115                 panelLit.setBounds(new Rectangle(40, 165, 220, 155));
     115                panelLit.setBounds(new Rectangle(40, 165, 220, 160));
    116116                panelLit.setVisible(false);
    117117        }
     
    125125                        shapeIcon = new JLabel(new ImageIcon(getClass().getResource(
    126126                                        "/images/Cardinal_Pillar_South.png")));
    127                         shapeIcon.setBounds(new Rectangle(265, 165, 130, 185));
     127                        shapeIcon.setBounds(new Rectangle(265, 170, 130, 185));
    128128                        oseamPanel.add(shapeIcon, null);
    129129                        lightIcon = new JLabel(new ImageIcon(getClass().getResource(
    130130                                        "/images/Light_White_120.png")));
    131                         lightIcon.setBounds(new Rectangle(265, 165, 125, 185));
     131                        lightIcon.setBounds(new Rectangle(265, 170, 125, 185));
    132132                        oseamPanel.add(lightIcon, null);
    133133                        topIcon = new JLabel();
    134                         topIcon.setBounds(new Rectangle(265, 165, 125, 185));
     134                        topIcon.setBounds(new Rectangle(265, 170, 125, 185));
    135135                        oseamPanel.add(topIcon, null);
    136136                        reflIcon = new JLabel(new ImageIcon(getClass().getResource(
    137137                                        "/images/Radar_Reflector_355.png")));
    138                         reflIcon.setBounds(new Rectangle(265, 165, 125, 185));
     138                        reflIcon.setBounds(new Rectangle(265, 170, 125, 185));
    139139                        oseamPanel.add(reflIcon, null);
    140140                        radarIcon = new JLabel(new ImageIcon(getClass().getResource(
    141141                                        "/images/Radar_Station.png")));
    142                         radarIcon.setBounds(new Rectangle(265, 165, 130, 185));
     142                        radarIcon.setBounds(new Rectangle(265, 170, 130, 185));
    143143                        oseamPanel.add(radarIcon, null);
    144144                        fogIcon = new JLabel(new ImageIcon(getClass().getResource(
    145145                                        "/images/Fog_Signal.png")));
    146                         fogIcon.setBounds(new Rectangle(265, 165, 125, 185));
     146                        fogIcon.setBounds(new Rectangle(265, 170, 125, 185));
    147147                        oseamPanel.add(fogIcon, null);
    148148
     
    248248
    249249                        nameLabel = new JLabel();
    250                         nameLabel.setBounds(new Rectangle(5, 327, 60, 20));
     250                        nameLabel.setBounds(new Rectangle(5, 329, 60, 20));
    251251                        nameLabel.setText(tr("Name:"));
    252252                        oseamPanel.add(nameLabel, null);
    253253                        nameBox = new JTextField();
    254                         nameBox.setBounds(new Rectangle(60, 325, 200, 25));
     254                        nameBox.setBounds(new Rectangle(60, 330, 200, 20));
    255255                        oseamPanel.add(nameBox, null);
    256256                        saveButton = new JButton();
    257                         saveButton.setBounds(new Rectangle(285, 325, 100, 25));
     257                        saveButton.setBounds(new Rectangle(285, 330, 100, 20));
    258258                        saveButton.setText(tr("Save"));
    259259                        oseamPanel.add(saveButton, null);
     
    321321                        fogButton = new JRadioButton(new ImageIcon(getClass().getResource(
    322322                                        "/images/FogButton.png")));
    323                         fogButton.setBounds(new Rectangle(0, 200, 34, 32));
     323                        fogButton.setBounds(new Rectangle(0, 205, 34, 32));
    324324                fogButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    325325                        fogButton.setToolTipText(Messages.getString("FogSignalsTip"));
     
    332332                        radarButton = new JRadioButton(new ImageIcon(getClass()
    333333                                        .getResource("/images/RadarButton.png")));
    334                         radarButton.setBounds(new Rectangle(0, 235, 34, 32));
     334                        radarButton.setBounds(new Rectangle(0, 245, 34, 32));
    335335                radarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    336336                        radarButton.setToolTipText(Messages.getString("RadarTip"));
     
    343343                        litButton = new JRadioButton(new ImageIcon(getClass().getResource(
    344344                                        "/images/LitButton.png")));
    345                         litButton.setBounds(new Rectangle(0, 270, 34, 32));
     345                        litButton.setBounds(new Rectangle(0, 285, 34, 32));
    346346                litButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    347347                        litButton.setToolTipText(Messages.getString("LitTip"));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelCol.java

    r24725 r24737  
    2424import java.awt.event.ActionListener;
    2525
    26 public class PanelSpec extends JPanel {
    27 
    28         private ButtonGroup shapeButtons = null;
    29         private JRadioButton pillarButton = null;
    30         private JRadioButton sparButton = null;
    31         private JRadioButton canButton = null;
    32         private JRadioButton coneButton = null;
    33         private JRadioButton sphereButton = null;
    34         private JRadioButton barrelButton = null;
    35         private JRadioButton superButton = null;
    36         private JRadioButton floatButton = null;
    37         private JRadioButton beaconButton = null;
    38         private JRadioButton towerButton = null;
    39         private JLabel colourLabel = null;
     26public class PanelCol extends JPanel {
     27
    4028        private ButtonGroup colourButtons = null;
    41         private JRadioButton whiteButton = null;
    42         private JRadioButton redButton = null;
    43         private JRadioButton orangeButton = null;
    44         private JRadioButton amberButton = null;
    45         private JRadioButton yellowButton = null;
    46         private JRadioButton greenButton = null;
    47         private JRadioButton blueButton = null;
    48         private JRadioButton violetButton = null;
    49         private JRadioButton blackButton = null;
    50 
    51         public PanelSpec() {
     29        public JRadioButton offButton = null;
     30        public JRadioButton whiteButton = null;
     31        public JRadioButton redButton = null;
     32        public JRadioButton orangeButton = null;
     33        public JRadioButton amberButton = null;
     34        public JRadioButton yellowButton = null;
     35        public JRadioButton greenButton = null;
     36        public JRadioButton blueButton = null;
     37        public JRadioButton violetButton = null;
     38        public JRadioButton blackButton = null;
     39
     40        public PanelCol() {
    5241                super();
    5342                initialize();
     
    5746                this.setLayout(null);
    5847
    59                 this.add(getPillarButton(), null);
    60                 this.add(getSparButton(), null);
    61                 this.add(getCanButton(), null);
    62                 this.add(getConeButton(), null);
    63                 this.add(getSphereButton(), null);
    64                 this.add(getBarrelButton(), null);
    65                 this.add(getSuperButton(), null);
    66                 this.add(getFloatButton(), null);
    67                 this.add(getBeaconButton(), null);
    68                 this.add(getTowerButton(), null);
    69                 shapeButtons = new ButtonGroup();
    70                 shapeButtons.add(pillarButton);
    71                 shapeButtons.add(sparButton);
    72                 shapeButtons.add(canButton);
    73                 shapeButtons.add(coneButton);
    74                 shapeButtons.add(sphereButton);
    75                 shapeButtons.add(barrelButton);
    76                 shapeButtons.add(superButton);
    77                 shapeButtons.add(floatButton);
    78                 shapeButtons.add(beaconButton);
    79                 shapeButtons.add(towerButton);
    80                 ActionListener alShape = new ActionListener() {
    81                         public void actionPerformed(java.awt.event.ActionEvent e) {
    82                                 pillarButton.setBorderPainted(pillarButton.isSelected());
    83                                 sparButton.setBorderPainted(sparButton.isSelected());
    84                                 canButton.setBorderPainted(canButton.isSelected());
    85                                 coneButton.setBorderPainted(coneButton.isSelected());
    86                                 sphereButton.setBorderPainted(sphereButton.isSelected());
    87                                 barrelButton.setBorderPainted(barrelButton.isSelected());
    88                                 superButton.setBorderPainted(superButton.isSelected());
    89                                 floatButton.setBorderPainted(floatButton.isSelected());
    90                                 beaconButton.setBorderPainted(beaconButton.isSelected());
    91                                 towerButton.setBorderPainted(towerButton.isSelected());
    92                         }
    93                 };
    94                 pillarButton.addActionListener(alShape);
    95                 sparButton.addActionListener(alShape);
    96                 canButton.addActionListener(alShape);
    97                 coneButton.addActionListener(alShape);
    98                 sphereButton.addActionListener(alShape);
    99                 barrelButton.addActionListener(alShape);
    100                 superButton.addActionListener(alShape);
    101                 floatButton.addActionListener(alShape);
    102                 beaconButton.addActionListener(alShape);
    103                 towerButton.addActionListener(alShape);
    104 
    105                 colourLabel = new JLabel();
    106                 colourLabel.setBounds(new Rectangle(2, -2, 60, 20));
    107                 colourLabel.setText(tr("Colour:"));
    108                 this.add(colourLabel, null);
     48                this.add(getOffButton(), null);
    10949                this.add(getWhiteButton(), null);
    11050                this.add(getRedButton(), null);
     
    11858                colourButtons = new ButtonGroup();
    11959                colourButtons.add(whiteButton);
     60                colourButtons.add(offButton);
    12061                colourButtons.add(redButton);
    12162                colourButtons.add(orangeButton);
     
    12869                ActionListener alColour = new ActionListener() {
    12970                        public void actionPerformed(java.awt.event.ActionEvent e) {
     71                                offButton.setBorderPainted(offButton.isSelected());
    13072                                whiteButton.setBorderPainted(whiteButton.isSelected());
    13173                                redButton.setBorderPainted(redButton.isSelected());
     
    13981                        }
    14082                };
     83                offButton.addActionListener(alColour);
    14184                whiteButton.addActionListener(alColour);
    14285                redButton.addActionListener(alColour);
     
    15093        }
    15194
    152         private JRadioButton getPillarButton() {
    153                 if (pillarButton == null) {
    154                         pillarButton = new JRadioButton(new ImageIcon(getClass()
    155                                         .getResource("/images/PillarButton.png")));
    156                         pillarButton.setBounds(new Rectangle(55, 0, 34, 32));
    157                 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    158                         pillarButton.setToolTipText(Messages.getString("PillarTip"));
    159                 }
    160                 return pillarButton;
    161         }
    162 
    163         private JRadioButton getSparButton() {
    164                 if (sparButton == null) {
    165                         sparButton = new JRadioButton(new ImageIcon(getClass().getResource(
    166                                         "/images/SparButton.png")));
    167                         sparButton.setBounds(new Rectangle(55, 32, 34, 32));
    168                 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    169                         sparButton.setToolTipText(Messages.getString("SparTip"));
    170                 }
    171                 return sparButton;
    172         }
    173 
    174         private JRadioButton getCanButton() {
    175                 if (canButton == null) {
    176                         canButton = new JRadioButton(new ImageIcon(getClass().getResource(
    177                                         "/images/CanButton.png")));
    178                         canButton.setBounds(new Rectangle(55, 64, 34, 32));
    179                 canButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    180                         canButton.setToolTipText(Messages.getString("CanTip"));
    181                 }
    182                 return canButton;
    183         }
    184 
    185         private JRadioButton getConeButton() {
    186                 if (coneButton == null) {
    187                         coneButton = new JRadioButton(new ImageIcon(getClass().getResource(
    188                                         "/images/ConeButton.png")));
    189                         coneButton.setBounds(new Rectangle(55, 96, 34, 32));
    190                 coneButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    191                         coneButton.setToolTipText(Messages.getString("ConeTip"));
    192                 }
    193                 return coneButton;
    194         }
    195 
    196         private JRadioButton getSphereButton() {
    197                 if (sphereButton == null) {
    198                         sphereButton = new JRadioButton(new ImageIcon(getClass()
    199                                         .getResource("/images/SphereButton.png")));
    200                         sphereButton.setBounds(new Rectangle(55, 128, 34, 32));
    201                 sphereButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    202                         sphereButton.setToolTipText(Messages.getString("SphereTip"));
    203                 }
    204                 return sphereButton;
    205         }
    206 
    207         private JRadioButton getBarrelButton() {
    208                 if (barrelButton == null) {
    209                         barrelButton = new JRadioButton(new ImageIcon(getClass()
    210                                         .getResource("/images/BarrelButton.png")));
    211                         barrelButton.setBounds(new Rectangle(90, 0, 34, 32));
    212                 barrelButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    213                         barrelButton.setToolTipText(Messages.getString("BarrelTip"));
    214                 }
    215                 return barrelButton;
    216         }
    217 
    218         private JRadioButton getSuperButton() {
    219                 if (superButton == null) {
    220                         superButton = new JRadioButton(new ImageIcon(getClass()
    221                                         .getResource("/images/SuperButton.png")));
    222                         superButton.setBounds(new Rectangle(90, 32, 34, 32));
    223                 superButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    224                         superButton.setToolTipText(Messages.getString("SuperTip"));
    225                 }
    226                 return superButton;
    227         }
    228 
    229         private JRadioButton getFloatButton() {
    230                 if (floatButton == null) {
    231                         floatButton = new JRadioButton(new ImageIcon(getClass()
    232                                         .getResource("/images/FloatButton.png")));
    233                         floatButton.setBounds(new Rectangle(90, 64, 34, 32));
    234                 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    235                         floatButton.setToolTipText(Messages.getString("FloatTip"));
    236                 }
    237                 return floatButton;
    238         }
    239 
    240         private JRadioButton getBeaconButton() {
    241                 if (beaconButton == null) {
    242                         beaconButton = new JRadioButton(new ImageIcon(getClass()
    243                                         .getResource("/images/BeaconButton.png")));
    244                         beaconButton.setBounds(new Rectangle(90, 96, 34, 32));
    245                 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    246                         beaconButton.setToolTipText(Messages.getString("BeaconTip"));
    247                 }
    248                 return beaconButton;
    249         }
    250 
    251         private JRadioButton getTowerButton() {
    252                 if (towerButton == null) {
    253                         towerButton = new JRadioButton(new ImageIcon(getClass()
    254                                         .getResource("/images/TowerButton.png")));
    255                         towerButton.setBounds(new Rectangle(90, 128, 34, 32));
    256                 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    257                         towerButton.setToolTipText(Messages.getString("TowerTip"));
    258                 }
    259                 return towerButton;
     95        private JRadioButton getOffButton() {
     96                if (offButton == null) {
     97                        offButton = new JRadioButton(new ImageIcon(getClass()
     98                                        .getResource("/images/OffButton.png")));
     99                        offButton.setBounds(new Rectangle(0, 0, 34, 16));
     100                offButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
     101                        offButton.setToolTipText(tr("No colour"));
     102                }
     103                return offButton;
    260104        }
    261105
     
    264108                        whiteButton = new JRadioButton(new ImageIcon(getClass()
    265109                                        .getResource("/images/WhiteButton.png")));
    266                         whiteButton.setBounds(new Rectangle(0, 16, 52, 16));
     110                        whiteButton.setBounds(new Rectangle(0, 16, 34, 16));
    267111                whiteButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    268112                        whiteButton.setToolTipText(tr("White"));
     
    275119                        redButton = new JRadioButton(new ImageIcon(getClass().getResource(
    276120                                        "/images/RedButton.png")));
    277                         redButton.setBounds(new Rectangle(0, 32, 52, 16));
     121                        redButton.setBounds(new Rectangle(0, 32, 34, 16));
    278122                redButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    279123                        redButton.setToolTipText(tr("Red"));
     
    286130                        orangeButton = new JRadioButton(new ImageIcon(getClass()
    287131                                        .getResource("/images/OrangeButton.png")));
    288                         orangeButton.setBounds(new Rectangle(0, 48, 52, 16));
     132                        orangeButton.setBounds(new Rectangle(0, 48, 34, 16));
    289133                orangeButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    290134                        orangeButton.setToolTipText(tr("Orange"));
     
    297141                        amberButton = new JRadioButton(new ImageIcon(getClass()
    298142                                        .getResource("/images/AmberButton.png")));
    299                         amberButton.setBounds(new Rectangle(0, 64, 52, 16));
     143                        amberButton.setBounds(new Rectangle(0, 64, 34, 16));
    300144                amberButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    301145                        amberButton.setToolTipText(tr("Amber"));
     
    308152                        yellowButton = new JRadioButton(new ImageIcon(getClass()
    309153                                        .getResource("/images/YellowButton.png")));
    310                         yellowButton.setBounds(new Rectangle(0, 80, 52, 16));
     154                        yellowButton.setBounds(new Rectangle(0, 80, 34, 16));
    311155                yellowButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    312156                        yellowButton.setToolTipText(tr("Yellow"));
     
    319163                        greenButton = new JRadioButton(new ImageIcon(getClass()
    320164                                        .getResource("/images/GreenButton.png")));
    321                         greenButton.setBounds(new Rectangle(0, 96, 52, 16));
     165                        greenButton.setBounds(new Rectangle(0, 96, 34, 16));
    322166                greenButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    323167                        greenButton.setToolTipText(tr("Green"));
     
    330174                        blueButton = new JRadioButton(new ImageIcon(getClass().getResource(
    331175                                        "/images/BlueButton.png")));
    332                         blueButton.setBounds(new Rectangle(0, 112, 52, 16));
     176                        blueButton.setBounds(new Rectangle(0, 112, 34, 16));
    333177                blueButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    334178                        blueButton.setToolTipText(tr("Blue"));
     
    341185                        violetButton = new JRadioButton(new ImageIcon(getClass()
    342186                                        .getResource("/images/VioletButton.png")));
    343                         violetButton.setBounds(new Rectangle(0, 128, 52, 16));
     187                        violetButton.setBounds(new Rectangle(0, 128, 34, 16));
    344188                violetButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    345189                        violetButton.setToolTipText(tr("Violet"));
     
    352196                        blackButton = new JRadioButton(new ImageIcon(getClass()
    353197                                        .getResource("/images/BlackButton.png")));
    354                         blackButton.setBounds(new Rectangle(0, 144, 52, 16));
     198                        blackButton.setBounds(new Rectangle(0, 144, 34, 16));
    355199                blackButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    356200                        blackButton.setToolTipText(tr("Black"));
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLit.java

    r24720 r24737  
    2323public class PanelLit extends JPanel {
    2424
     25        private PanelCol panelCol = null;
     26
    2527        public PanelLit() {
    2628                super();
     29                panelCol = new PanelCol();
     30                panelCol.setBounds(new Rectangle(0, 0, 34, 160));
    2731                initialize();
    2832        }
     
    3034        private void initialize() {
    3135                this.setLayout(null);
     36                this.add(panelCol, null);
     37                panelCol.blackButton.setVisible(false);
    3238        }
    3339}
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r24724 r24737  
    3737        private JRadioButton beaconButton = null;
    3838        private JRadioButton towerButton = null;
    39         private JLabel colourLabel = null;
    40         private ButtonGroup colourButtons = null;
    41         private JRadioButton whiteButton = null;
    42         private JRadioButton redButton = null;
    43         private JRadioButton orangeButton = null;
    44         private JRadioButton amberButton = null;
    45         private JRadioButton yellowButton = null;
    46         private JRadioButton greenButton = null;
    47         private JRadioButton blueButton = null;
    48         private JRadioButton violetButton = null;
    49         private JRadioButton blackButton = null;
     39        private PanelCol panelCol = null;
    5040
    5141        public PanelSpec() {
    5242                super();
     43                panelCol = new PanelCol();
     44                panelCol.setBounds(new Rectangle(9, 0, 34, 160));
    5345                initialize();
    5446        }
     
    5749                this.setLayout(null);
    5850
     51                this.add(panelCol, null);
    5952                this.add(getPillarButton(), null);
    6053                this.add(getSparButton(), null);
     
    10396                towerButton.addActionListener(alShape);
    10497
    105                 colourLabel = new JLabel();
    106                 colourLabel.setBounds(new Rectangle(2, -2, 60, 20));
    107                 colourLabel.setText(tr("Colour:"));
    108                 this.add(colourLabel, null);
    109                 this.add(getWhiteButton(), null);
    110                 this.add(getRedButton(), null);
    111                 this.add(getOrangeButton(), null);
    112                 this.add(getAmberButton(), null);
    113                 this.add(getYellowButton(), null);
    114                 this.add(getGreenButton(), null);
    115                 this.add(getBlueButton(), null);
    116                 this.add(getVioletButton(), null);
    117                 this.add(getBlackButton(), null);
    118                 colourButtons = new ButtonGroup();
    119                 colourButtons.add(whiteButton);
    120                 colourButtons.add(redButton);
    121                 colourButtons.add(orangeButton);
    122                 colourButtons.add(amberButton);
    123                 colourButtons.add(yellowButton);
    124                 colourButtons.add(greenButton);
    125                 colourButtons.add(blueButton);
    126                 colourButtons.add(violetButton);
    127                 colourButtons.add(blackButton);
    128                 ActionListener alColour = new ActionListener() {
    129                         public void actionPerformed(java.awt.event.ActionEvent e) {
    130                                 whiteButton.setBorderPainted(whiteButton.isSelected());
    131                                 redButton.setBorderPainted(redButton.isSelected());
    132                                 orangeButton.setBorderPainted(orangeButton.isSelected());
    133                                 amberButton.setBorderPainted(amberButton.isSelected());
    134                                 yellowButton.setBorderPainted(yellowButton.isSelected());
    135                                 greenButton.setBorderPainted(greenButton.isSelected());
    136                                 blueButton.setBorderPainted(blueButton.isSelected());
    137                                 violetButton.setBorderPainted(violetButton.isSelected());
    138                                 blackButton.setBorderPainted(blackButton.isSelected());
    139                         }
    140                 };
    141                 whiteButton.addActionListener(alColour);
    142                 redButton.addActionListener(alColour);
    143                 orangeButton.addActionListener(alColour);
    144                 amberButton.addActionListener(alColour);
    145                 yellowButton.addActionListener(alColour);
    146                 greenButton.addActionListener(alColour);
    147                 blueButton.addActionListener(alColour);
    148                 violetButton.addActionListener(alColour);
    149                 blackButton.addActionListener(alColour);
    15098        }
    15199
     
    260208        }
    261209
    262         private JRadioButton getWhiteButton() {
    263                 if (whiteButton == null) {
    264                         whiteButton = new JRadioButton(new ImageIcon(getClass()
    265                                         .getResource("/images/WhiteButton.png")));
    266                         whiteButton.setBounds(new Rectangle(0, 16, 52, 16));
    267                 whiteButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    268                         whiteButton.setToolTipText(tr("White"));
    269                 }
    270                 return whiteButton;
    271         }
    272 
    273         private JRadioButton getRedButton() {
    274                 if (redButton == null) {
    275                         redButton = new JRadioButton(new ImageIcon(getClass().getResource(
    276                                         "/images/RedButton.png")));
    277                         redButton.setBounds(new Rectangle(0, 32, 52, 16));
    278                 redButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    279                         redButton.setToolTipText(tr("Red"));
    280                 }
    281                 return redButton;
    282         }
    283 
    284         private JRadioButton getOrangeButton() {
    285                 if (orangeButton == null) {
    286                         orangeButton = new JRadioButton(new ImageIcon(getClass()
    287                                         .getResource("/images/OrangeButton.png")));
    288                         orangeButton.setBounds(new Rectangle(0, 48, 52, 16));
    289                 orangeButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    290                         orangeButton.setToolTipText(tr("Orange"));
    291                 }
    292                 return orangeButton;
    293         }
    294 
    295         private JRadioButton getAmberButton() {
    296                 if (amberButton == null) {
    297                         amberButton = new JRadioButton(new ImageIcon(getClass()
    298                                         .getResource("/images/AmberButton.png")));
    299                         amberButton.setBounds(new Rectangle(0, 64, 52, 16));
    300                 amberButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    301                         amberButton.setToolTipText(tr("Amber"));
    302                 }
    303                 return amberButton;
    304         }
    305 
    306         private JRadioButton getYellowButton() {
    307                 if (yellowButton == null) {
    308                         yellowButton = new JRadioButton(new ImageIcon(getClass()
    309                                         .getResource("/images/YellowButton.png")));
    310                         yellowButton.setBounds(new Rectangle(0, 80, 52, 16));
    311                 yellowButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    312                         yellowButton.setToolTipText(tr("Yellow"));
    313                 }
    314                 return yellowButton;
    315         }
    316 
    317         private JRadioButton getGreenButton() {
    318                 if (greenButton == null) {
    319                         greenButton = new JRadioButton(new ImageIcon(getClass()
    320                                         .getResource("/images/GreenButton.png")));
    321                         greenButton.setBounds(new Rectangle(0, 96, 52, 16));
    322                 greenButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    323                         greenButton.setToolTipText(tr("Green"));
    324                 }
    325                 return greenButton;
    326         }
    327 
    328         private JRadioButton getBlueButton() {
    329                 if (blueButton == null) {
    330                         blueButton = new JRadioButton(new ImageIcon(getClass().getResource(
    331                                         "/images/BlueButton.png")));
    332                         blueButton.setBounds(new Rectangle(0, 112, 52, 16));
    333                 blueButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    334                         blueButton.setToolTipText(tr("Blue"));
    335                 }
    336                 return blueButton;
    337         }
    338 
    339         private JRadioButton getVioletButton() {
    340                 if (violetButton == null) {
    341                         violetButton = new JRadioButton(new ImageIcon(getClass()
    342                                         .getResource("/images/VioletButton.png")));
    343                         violetButton.setBounds(new Rectangle(0, 128, 52, 16));
    344                 violetButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    345                         violetButton.setToolTipText(tr("Violet"));
    346                 }
    347                 return violetButton;
    348         }
    349 
    350         private JRadioButton getBlackButton() {
    351                 if (blackButton == null) {
    352                         blackButton = new JRadioButton(new ImageIcon(getClass()
    353                                         .getResource("/images/BlackButton.png")));
    354                         blackButton.setBounds(new Rectangle(0, 144, 52, 16));
    355                 blackButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2));
    356                         blackButton.setToolTipText(tr("Black"));
    357                 }
    358                 return blackButton;
    359         }
    360 
    361210}
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelTop.java

    r24720 r24737  
    2424public class PanelTop extends JPanel {
    2525
     26        private PanelCol panelCol = null;
    2627        private ButtonGroup topButtons = null;
    2728        private JRadioButton noTopButton = null;
     
    2930        public PanelTop() {
    3031                super();
     32                panelCol = new PanelCol();
     33                panelCol.setBounds(new Rectangle(0, 0, 34, 160));
    3134                initialize();
    3235        }
     
    3437        private void initialize() {
    3538                this.setLayout(null);
     39                this.add(panelCol, null);
    3640                this.add(getNoTopButton(), null);
    3741                topButtons = new ButtonGroup();
     
    4347                        noTopButton = new JRadioButton(new ImageIcon(getClass()
    4448                                        .getResource("/images/NoTopButton.png")));
    45                         noTopButton.setBounds(new Rectangle(5, 5, 30, 30));
     49                        noTopButton.setBounds(new Rectangle(40, 5, 30, 30));
    4650                        noTopButton.setToolTipText(Messages.getString("NorthTip"));
    4751                }
Note: See TracChangeset for help on using the changeset viewer.