Revision: 14663
          http://gate.svn.sourceforge.net/gate/?rev=14663&view=rev
Author:   markagreenwood
Date:     2011-12-04 13:02:20 +0000 (Sun, 04 Dec 2011)
Log Message:
-----------
you can now refresh a specific update site, also the buttons are disabled if 
nothing in the table is selected

Modified Paths:
--------------
    gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java

Added Paths:
-----------
    gate/trunk/src/gate/resources/img/svg/Refresh.svg
    gate/trunk/src/gate/resources/img/svg/RefreshIcon.java

Modified: gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java
===================================================================
--- gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2011-12-04 11:58:13 UTC (rev 14662)
+++ gate/trunk/src/gate/gui/creole/manager/PluginUpdateManager.java     
2011-12-04 13:02:20 UTC (rev 14663)
@@ -24,6 +24,7 @@
 import gate.resources.img.svg.GATEUpdateSiteIcon;
 import gate.resources.img.svg.InvalidIcon;
 import gate.resources.img.svg.OpenFileIcon;
+import gate.resources.img.svg.RefreshIcon;
 import gate.resources.img.svg.RemoveIcon;
 import gate.resources.img.svg.UpdateSiteIcon;
 import gate.resources.img.svg.UpdatesIcon;
@@ -82,6 +83,8 @@
 import javax.swing.ListSelectionModel;
 import javax.swing.SpringLayout;
 import javax.swing.SwingUtilities;
+import javax.swing.event.ListSelectionEvent;
+import javax.swing.event.ListSelectionListener;
 import javax.swing.table.AbstractTableModel;
 
 import org.apache.tools.ant.Project;
@@ -581,7 +584,10 @@
             .createTitledBorder("Plugin Repositories:"));
     final XJTable tblSites = new XJTable(sitesModel);
     tblSites.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
-    pnlUpdateSites.add(new JScrollPane(tblSites), BorderLayout.CENTER);
+    
+    JScrollPane scroller = new JScrollPane(tblSites);
+    scroller.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
+    pnlUpdateSites.add(scroller, BorderLayout.CENTER);
     final JPanel pnlEdit = new JPanel(new SpringLayout());
     final JTextField txtName = new JTextField(20);
     final JTextField txtURL = new JTextField(20);
@@ -613,7 +619,10 @@
         }
       }
     });
-    JButton btnRemove = new JButton(new RemoveIcon(24, 24));
+    
+    final JButton btnRemove = new JButton(new RemoveIcon(24, 24));
+    btnRemove.setEnabled(false);
+    btnRemove.setDisabledIcon(new 
ImageIcon(GrayFilter.createDisabledImage((new RemoveIcon(24, 24)).getImage())));
     btnRemove.addActionListener(new ActionListener() {
       @Override
       public void actionPerformed(ActionEvent e) {
@@ -625,7 +634,10 @@
         loadData();
       }
     });
-    JButton btnEdit = new JButton(new EditIcon(24, 24));
+    
+    final JButton btnEdit = new JButton(new EditIcon(24, 24));
+    btnEdit.setDisabledIcon(new ImageIcon(GrayFilter.createDisabledImage((new 
EditIcon(24, 24)).getImage())));
+    btnEdit.setEnabled(false);
     btnEdit.addActionListener(new ActionListener() {
       @Override
       public void actionPerformed(ActionEvent e) {
@@ -657,11 +669,41 @@
         }
       }
     });
+    
+    final JButton btnRefresh = new JButton(new RefreshIcon(24,24));
+    btnRefresh.setDisabledIcon(new 
ImageIcon(GrayFilter.createDisabledImage((new RefreshIcon(24, 
24)).getImage())));
+    btnRefresh.setEnabled(false);
+    btnRefresh.addActionListener(new ActionListener() {
+      @Override
+      public void actionPerformed(ActionEvent arg0) {
+        int row = tblSites.getSelectedRow();
+        if(row == -1) return;
+        RemoteUpdateSite site = updateSites.get(row);
+        site.plugins = null;
+        showProgressPanel(true);
+        saveConfig();
+        loadData();
+      }
+    });
+    
+    tblSites.getSelectionModel().addListSelectionListener(new 
ListSelectionListener() {      
+      @Override
+      public void valueChanged(ListSelectionEvent e) {
+        if (e.getValueIsAdjusting()) return;
+        
+        boolean enable = (tblSites.getSelectedRow() != -1);
+        btnRemove.setEnabled(enable);
+        btnEdit.setEnabled(enable);
+        btnRefresh.setEnabled(enable);
+      }
+    });
+    
     JToolBar toolbar = new JToolBar(JToolBar.VERTICAL);
     toolbar.setFloatable(false);
     toolbar.add(btnAdd);
     toolbar.add(btnRemove);
-    toolbar.add(btnEdit);
+    toolbar.add(btnRefresh);
+    toolbar.add(btnEdit);    
     pnlUpdateSites.add(toolbar, BorderLayout.EAST);
 
     // the user plugin dir area

Added: gate/trunk/src/gate/resources/img/svg/Refresh.svg
===================================================================
--- gate/trunk/src/gate/resources/img/svg/Refresh.svg                           
(rev 0)
+++ gate/trunk/src/gate/resources/img/svg/Refresh.svg   2011-12-04 13:02:20 UTC 
(rev 14663)
@@ -0,0 +1,512 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<!-- Created with Inkscape (http://www.inkscape.org/) -->
+
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/";
+   xmlns:cc="http://creativecommons.org/ns#";
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";
+   xmlns:svg="http://www.w3.org/2000/svg";
+   xmlns="http://www.w3.org/2000/svg";
+   xmlns:xlink="http://www.w3.org/1999/xlink";
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd";
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape";
+   inkscape:export-ydpi="90.000000"
+   inkscape:export-xdpi="90.000000"
+   inkscape:export-filename="/home/jimmac/Desktop/wi-fi.png"
+   width="48px"
+   height="48px"
+   id="svg11300"
+   sodipodi:version="0.32"
+   inkscape:version="0.48.1 r9760"
+   sodipodi:docname="Refresh.svg"
+   version="1.1">
+  <defs
+     id="defs3">
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient2690">
+      <stop
+         style="stop-color:#c4d7eb;stop-opacity:1;"
+         offset="0"
+         id="stop2692" />
+      <stop
+         style="stop-color:#c4d7eb;stop-opacity:0;"
+         offset="1"
+         id="stop2694" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient2682">
+      <stop
+         style="stop-color:#3977c3;stop-opacity:1;"
+         offset="0"
+         id="stop2684" />
+      <stop
+         style="stop-color:#89aedc;stop-opacity:0;"
+         offset="1"
+         id="stop2686" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient2402">
+      <stop
+         style="stop-color:#729fcf;stop-opacity:1;"
+         offset="0"
+         id="stop2404" />
+      <stop
+         style="stop-color:#528ac5;stop-opacity:1;"
+         offset="1"
+         id="stop2406" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient2380">
+      <stop
+         style="stop-color:#b9cfe7;stop-opacity:1"
+         offset="0"
+         id="stop2382" />
+      <stop
+         style="stop-color:#729fcf;stop-opacity:1"
+         offset="1"
+         id="stop2384" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient2871">
+      <stop
+         style="stop-color:#3465a4;stop-opacity:1;"
+         offset="0"
+         id="stop2873" />
+      <stop
+         style="stop-color:#3465a4;stop-opacity:1"
+         offset="1"
+         id="stop2875" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient2847">
+      <stop
+         style="stop-color:#3465a4;stop-opacity:1;"
+         offset="0"
+         id="stop2849" />
+      <stop
+         style="stop-color:#3465a4;stop-opacity:0;"
+         offset="1"
+         id="stop2851" />
+    </linearGradient>
+    <linearGradient
+       id="linearGradient2831">
+      <stop
+         style="stop-color:#3465a4;stop-opacity:1;"
+         offset="0"
+         id="stop2833" />
+      <stop
+         id="stop2855"
+         offset="0.33333334"
+         style="stop-color:#5b86be;stop-opacity:1;" />
+      <stop
+         style="stop-color:#83a8d8;stop-opacity:0;"
+         offset="1"
+         id="stop2835" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient2797">
+      <stop
+         style="stop-color:#ffffff;stop-opacity:1;"
+         offset="0"
+         id="stop2799" />
+      <stop
+         style="stop-color:#ffffff;stop-opacity:0;"
+         offset="1"
+         id="stop2801" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       id="linearGradient8662">
+      <stop
+         style="stop-color:#000000;stop-opacity:1;"
+         offset="0"
+         id="stop8664" />
+      <stop
+         style="stop-color:#000000;stop-opacity:0;"
+         offset="1"
+         id="stop8666" />
+    </linearGradient>
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2831"
+       id="linearGradient1486"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(0.465413,-0.277593)"
+       x1="13.478554"
+       y1="10.612206"
+       x2="15.419417"
+       y2="19.115122" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2847"
+       id="linearGradient1488"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(-1,0,0,-1,47.52791,45.84741)"
+       x1="37.128052"
+       y1="29.729605"
+       x2="37.065414"
+       y2="26.194071" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2797"
+       id="linearGradient1491"
+       gradientUnits="userSpaceOnUse"
+       x1="5.9649176"
+       y1="26.048164"
+       x2="52.854097"
+       y2="26.048164" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2797"
+       id="linearGradient1493"
+       gradientUnits="userSpaceOnUse"
+       x1="5.9649176"
+       y1="26.048164"
+       x2="52.854097"
+       y2="26.048164" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2871"
+       id="linearGradient1501"
+       gradientUnits="userSpaceOnUse"
+       x1="46.834816"
+       y1="45.264122"
+       x2="45.380436"
+       y2="50.939667" />
+    <radialGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient8662"
+       id="radialGradient1503"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(1,0,0,0.536723,-9.680928e-14,16.87306)"
+       cx="24.837126"
+       cy="36.421127"
+       fx="24.837126"
+       fy="36.421127"
+       r="15.644737" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2380"
+       id="linearGradient2386"
+       x1="62.513836"
+       y1="36.061237"
+       x2="15.984863"
+       y2="20.60858"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2402"
+       id="linearGradient2408"
+       x1="18.935766"
+       y1="23.667896"
+       x2="53.588622"
+       y2="26.649362"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2682"
+       id="linearGradient2688"
+       x1="36.713837"
+       y1="31.455952"
+       x2="37.124462"
+       y2="24.842253"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2690"
+       id="linearGradient2696"
+       x1="32.647972"
+       y1="30.748846"
+       x2="37.124462"
+       y2="24.842253"
+       gradientUnits="userSpaceOnUse" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2831"
+       id="linearGradient3073"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="translate(0.465413,-0.277593)"
+       x1="13.478554"
+       y1="10.612206"
+       x2="15.419417"
+       y2="19.115122" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2847"
+       id="linearGradient3075"
+       gradientUnits="userSpaceOnUse"
+       gradientTransform="matrix(-1,0,0,-1,47.52791,45.84741)"
+       x1="37.128052"
+       y1="29.729605"
+       x2="37.065414"
+       y2="26.194071" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2380"
+       id="linearGradient3077"
+       gradientUnits="userSpaceOnUse"
+       x1="62.513836"
+       y1="36.061237"
+       x2="15.984863"
+       y2="20.60858" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2871"
+       id="linearGradient3079"
+       gradientUnits="userSpaceOnUse"
+       x1="46.834816"
+       y1="45.264122"
+       x2="45.380436"
+       y2="50.939667" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2380"
+       id="linearGradient3081"
+       gradientUnits="userSpaceOnUse"
+       x1="62.513836"
+       y1="36.061237"
+       x2="15.984863"
+       y2="20.60858" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2690"
+       id="linearGradient3083"
+       gradientUnits="userSpaceOnUse"
+       x1="32.647972"
+       y1="30.748846"
+       x2="37.124462"
+       y2="24.842253" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2682"
+       id="linearGradient3085"
+       gradientUnits="userSpaceOnUse"
+       x1="36.713837"
+       y1="31.455952"
+       x2="37.124462"
+       y2="24.842253" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2402"
+       id="linearGradient3087"
+       gradientUnits="userSpaceOnUse"
+       x1="18.935766"
+       y1="23.667896"
+       x2="53.588622"
+       y2="26.649362" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2871"
+       id="linearGradient3089"
+       gradientUnits="userSpaceOnUse"
+       x1="46.834816"
+       y1="45.264122"
+       x2="45.380436"
+       y2="50.939667" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2402"
+       id="linearGradient3091"
+       gradientUnits="userSpaceOnUse"
+       x1="18.935766"
+       y1="23.667896"
+       x2="53.588622"
+       y2="26.649362" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2871"
+       id="linearGradient3093"
+       gradientUnits="userSpaceOnUse"
+       x1="46.834816"
+       y1="45.264122"
+       x2="45.380436"
+       y2="50.939667" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2797"
+       id="linearGradient3095"
+       gradientUnits="userSpaceOnUse"
+       x1="5.9649176"
+       y1="26.048164"
+       x2="52.854097"
+       y2="26.048164" />
+    <linearGradient
+       inkscape:collect="always"
+       xlink:href="#linearGradient2797"
+       id="linearGradient3097"
+       gradientUnits="userSpaceOnUse"
+       x1="5.9649176"
+       y1="26.048164"
+       x2="52.854097"
+       y2="26.048164" />
+  </defs>
+  <sodipodi:namedview
+     stroke="#3465a4"
+     fill="#729fcf"
+     id="base"
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="0.25490196"
+     inkscape:pageopacity="0.0"
+     inkscape:pageshadow="2"
+     inkscape:zoom="5.6568542"
+     inkscape:cx="31.08169"
+     inkscape:cy="20.363056"
+     inkscape:current-layer="layer1"
+     showgrid="false"
+     inkscape:grid-bbox="true"
+     inkscape:document-units="px"
+     inkscape:showpageshadow="false"
+     inkscape:window-width="891"
+     inkscape:window-height="932"
+     inkscape:window-x="673"
+     inkscape:window-y="184"
+     inkscape:window-maximized="0" />
+  <metadata
+     id="metadata4">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+        <dc:creator>
+          <cc:Agent>
+            <dc:title>Jakub Steiner</dc:title>
+          </cc:Agent>
+        </dc:creator>
+        <dc:source>http://jimmac.musichall.cz</dc:source>
+        <cc:license
+           rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/"; />
+        <dc:title>View Refresh</dc:title>
+        <dc:subject>
+          <rdf:Bag>
+            <rdf:li>reload</rdf:li>
+            <rdf:li>refresh</rdf:li>
+            <rdf:li>view</rdf:li>
+          </rdf:Bag>
+        </dc:subject>
+      </cc:Work>
+      <cc:License
+         rdf:about="http://creativecommons.org/licenses/by-sa/2.0/";>
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Reproduction"; />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/Distribution"; />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/Notice"; />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/Attribution"; />
+        <cc:permits
+           rdf:resource="http://web.resource.org/cc/DerivativeWorks"; />
+        <cc:requires
+           rdf:resource="http://web.resource.org/cc/ShareAlike"; />
+      </cc:License>
+    </rdf:RDF>
+  </metadata>
+  <g
+     id="layer1"
+     inkscape:label="Layer 1"
+     inkscape:groupmode="layer">
+    <g
+       id="g3033"
+       transform="matrix(-1,0,0,1,48.994827,0)">
+      <path
+         sodipodi:nodetypes="cccc"
+         inkscape:r_cy="true"
+         inkscape:r_cx="true"
+         id="path2865"
+         d="m 20.152913,10.409904 c 0,0 -8.9375,-0.625 -6.1875,9.875 l 
-7.6874998,0 c 0,0 0.5,-11.875 13.8749998,-9.875 z"
+         
style="color:#000000;fill:url(#linearGradient3073);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3075);stroke-width:0.99999958;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+         inkscape:connector-curvature="0" />
+      <g
+         
style="fill:url(#linearGradient3081);fill-opacity:1;stroke:#3465a4;stroke-opacity:1"
+         inkscape:r_cy="true"
+         inkscape:r_cx="true"
+         
transform="matrix(-0.579051,-0.489228,-0.489228,0.579051,56.91585,13.37137)"
+         id="g1878">
+        <path
+           inkscape:r_cy="true"
+           inkscape:r_cx="true"
+           
style="color:#000000;fill:url(#linearGradient3077);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3079);stroke-width:1.31916928;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+           d="M 44.306783,50.229694 C 62.821497,35.818859 49.664587,13.411704 
22.462411,12.49765 L 22.113843,3.1515478 7.6245439,20.496754 
22.714328,33.219189 c 0,0 -0.251917,-9.88122 -0.251917,-9.88122 
18.82976,0.998977 32.981627,14.071729 21.844372,26.891725 z"
+           id="path1880"
+           sodipodi:nodetypes="ccccccc"
+           inkscape:connector-curvature="0" />
+      </g>
+      <path
+         
style="color:#000000;fill:url(#linearGradient3083);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3085);stroke-width:0.99999958;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+         d="m 28.375,33.4375 c 0,0 8.9375,0.625 6.1875,-9.875 l 7.775888,0 c 
0,1.502602 -0.588388,11.875 -13.963388,9.875 z"
+         id="path2839"
+         inkscape:r_cx="true"
+         inkscape:r_cy="true"
+         sodipodi:nodetypes="cccc"
+         inkscape:connector-curvature="0" />
+      <g
+         id="g2779"
+         
transform="matrix(0.579051,0.489228,0.489228,-0.579051,-7.921023,30.53599)"
+         inkscape:r_cx="true"
+         inkscape:r_cy="true"
+         
style="color:#000000;fill:url(#linearGradient3091);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3093);stroke-width:1.31916928;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible">
+        <path
+           sodipodi:nodetypes="ccccccc"
+           id="path2781"
+           d="M 44.306783,50.229694 C 62.821497,35.818859 49.664587,13.411704 
22.462411,12.49765 L 22.399432,3.0690297 7.793943,20.424005 22.462411,33.006349 
c 0,0 0,-9.66838 0,-9.66838 18.82976,0.998977 32.981627,14.071729 
21.844372,26.891725 z"
+           
style="color:#000000;fill:url(#linearGradient3087);fill-opacity:1;fill-rule:nonzero;stroke:url(#linearGradient3089);stroke-width:1.31916928;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+           inkscape:r_cx="true"
+           inkscape:r_cy="true"
+           inkscape:connector-curvature="0" />
+      </g>
+      <path
+         sodipodi:nodetypes="cccccccc"
+         inkscape:r_cy="true"
+         inkscape:r_cx="true"
+         id="path2791"
+         d="m 7.0625,38.1875 0.0625,-14.875 12.9375,-0.375 -4.388873,5.178817 
3.867225,2.373199 c -3,2.25 -4.549548,2.422128 -5.549548,4.984628 L 
11.174446,33.363872 7.0625,38.1875 z"
+         
style="opacity:0.27222224;color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999982;marker:none;visibility:visible;display:inline;overflow:visible"
+         inkscape:connector-curvature="0" />
+      <g
+         style="opacity:0.5;fill:none;stroke:#ffffff;stroke-opacity:1"
+         inkscape:r_cy="true"
+         inkscape:r_cx="true"
+         
transform="matrix(0.508536,0.429651,0.429651,-0.508536,-3.973188,30.54119)"
+         id="g2793">
+        <path
+           inkscape:r_cy="true"
+           inkscape:r_cx="true"
+           
style="color:#000000;fill:none;stroke:url(#linearGradient3095);stroke-width:1.50208926;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+           d="M 51.090265,45.943705 C 60.210465,30.723955 46.631614,12.20113 
19.485058,11.948579 L 19.513464,3.7032834 6.5341979,19.296639 
19.367661,30.26876 c 0,0 0.05562,-9.006878 0.05562,-9.006878 
17.527815,-0.223909 35.195185,10.103372 31.666984,24.681823 z"
+           id="path2795"
+           sodipodi:nodetypes="ccccccc"
+           inkscape:connector-curvature="0" />
+      </g>
+      <g
+         id="g2805"
+         
transform="matrix(-0.508536,-0.429651,-0.429651,0.508536,53.049,13.36548)"
+         inkscape:r_cx="true"
+         inkscape:r_cy="true"
+         style="opacity:0.5;fill:none;stroke:#ffffff;stroke-opacity:1">
+        <path
+           sodipodi:nodetypes="ccccccc"
+           id="path2807"
+           d="M 51.389927,46.505946 C 60.510127,31.286196 47.050763,12.432359 
19.628482,12.069755 L 19.342824,4.0507204 6.3413093,19.379475 
19.809059,30.764589 c 0,0 -0.181765,-9.453243 -0.181765,-9.453243 
18.244937,0.381972 34.783881,10.925246 31.762633,25.1946 z"
+           
style="color:#000000;fill:none;stroke:url(#linearGradient3097);stroke-width:1.50208926;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none;stroke-dashoffset:0;marker:none;visibility:visible;display:block;overflow:visible"
+           inkscape:r_cx="true"
+           inkscape:r_cy="true"
+           inkscape:connector-curvature="0" />
+      </g>
+      <path
+         sodipodi:nodetypes="cccc"
+         inkscape:r_cy="true"
+         inkscape:r_cx="true"
+         id="path2811"
+         d="M 6.8125,16.5 C 10.405935,6.0587275 23.256282,10.355393 27,12 
31.175307,12.211475 32.674736,9.164996 36,9 21.950264,-0.7899963 7.1875,2.5 
6.8125,16.5 z"
+         
style="opacity:0.27222224;color:#000000;fill:#ffffff;fill-opacity:1;fill-rule:nonzero;stroke:none;stroke-width:0.99999982;marker:none;visibility:visible;display:inline;overflow:visible"
+         inkscape:connector-curvature="0" />
+    </g>
+  </g>
+</svg>

Added: gate/trunk/src/gate/resources/img/svg/RefreshIcon.java
===================================================================
--- gate/trunk/src/gate/resources/img/svg/RefreshIcon.java                      
        (rev 0)
+++ gate/trunk/src/gate/resources/img/svg/RefreshIcon.java      2011-12-04 
13:02:20 UTC (rev 14663)
@@ -0,0 +1,474 @@
+package gate.resources.img.svg;
+
+import java.awt.*;
+import java.awt.geom.*;
+import java.awt.image.*;
+
+import java.awt.image.BufferedImage;
+import java.io.IOException;
+import javax.imageio.ImageIO;
+
+/**
+ * This class has been automatically generated using <a
+ * 
href="http://englishjavadrinker.blogspot.com/search/label/SVGRoundTrip";>SVGRoundTrip</a>.
+ */
+@SuppressWarnings("unused")
+public class RefreshIcon implements
+               javax.swing.Icon {
+       /**
+        * Paints the transcoded SVG image on the specified graphics context. 
You
+        * can install a custom transformation on the graphics context to scale 
the
+        * image.
+        * 
+        * @param g
+        *            Graphics context.
+        */
+       public static void paint(Graphics2D g) {
+        Shape shape = null;
+        Paint paint = null;
+        Stroke stroke = null;
+        Area clip = null;
+         
+        float origAlpha = 1.0f;
+        Composite origComposite = g.getComposite();
+        if (origComposite instanceof AlphaComposite) {
+            AlphaComposite origAlphaComposite = 
+                (AlphaComposite)origComposite;
+            if (origAlphaComposite.getRule() == AlphaComposite.SRC_OVER) {
+                origAlpha = origAlphaComposite.getAlpha();
+            }
+        }
+        
+           Shape clip_ = g.getClip();
+AffineTransform defaultTransform_ = g.getTransform();
+//  is CompositeGraphicsNode
+float alpha__0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0 = g.getClip();
+AffineTransform defaultTransform__0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+clip = new Area(g.getClip());
+clip.intersect(new Area(new Rectangle2D.Double(0.0,0.0,48.0,48.0)));
+g.setClip(clip);
+// _0 is CompositeGraphicsNode
+float alpha__0_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0 = g.getClip();
+AffineTransform defaultTransform__0_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0 is CompositeGraphicsNode
+float alpha__0_0_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0 = g.getTransform();
+g.transform(new AffineTransform(-1.0f, 0.0f, 0.0f, 1.0f, 48.99482727050781f, 
0.0f));
+// _0_0_0 is CompositeGraphicsNode
+float alpha__0_0_0_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_0 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(13.478553771972656, 
10.61220645904541), new Point2D.Double(15.419417381286621, 19.115121841430664), 
new float[] {0.0f,0.33333334f,1.0f}, new Color[] {new Color(52, 101, 164, 
255),new Color(91, 134, 190, 255),new Color(131, 168, 216, 0)}, 
MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.46541300415992737f, -0.2775929868221283f));
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(20.152912, 10.409904);
+((GeneralPath)shape).curveTo(20.152912, 10.409904, 11.215412, 9.784904, 
13.965412, 20.284904);
+((GeneralPath)shape).lineTo(6.277912, 20.284904);
+((GeneralPath)shape).curveTo(6.277912, 20.284904, 6.777912, 8.4099045, 
20.152912, 10.4099045);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+paint = new LinearGradientPaint(new Point2D.Double(37.1280517578125, 
29.729604721069336), new Point2D.Double(37.06541442871094, 26.19407081604004), 
new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 164, 255),new 
Color(52, 101, 164, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(-1.0f, 0.0f, 
0.0f, -1.0f, 47.52790832519531f, 45.847408294677734f));
+stroke = new BasicStroke(0.9999996f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(20.152912, 10.409904);
+((GeneralPath)shape).curveTo(20.152912, 10.409904, 11.215412, 9.784904, 
13.965412, 20.284904);
+((GeneralPath)shape).lineTo(6.277912, 20.284904);
+((GeneralPath)shape).curveTo(6.277912, 20.284904, 6.777912, 8.4099045, 
20.152912, 10.4099045);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_0;
+g.setTransform(defaultTransform__0_0_0_0);
+g.setClip(clip__0_0_0_0);
+float alpha__0_0_0_1 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_1 = g.getClip();
+AffineTransform defaultTransform__0_0_0_1 = g.getTransform();
+g.transform(new AffineTransform(-0.5790510177612305f, -0.4892280101776123f, 
-0.4892280101776123f, 0.5790510177612305f, 56.91585159301758f, 
13.371370315551758f));
+// _0_0_0_1 is CompositeGraphicsNode
+float alpha__0_0_0_1_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_1_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0_1_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_1_0 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(62.51383590698242, 
36.06123733520508), new Point2D.Double(15.98486328125, 20.608579635620117), new 
float[] {0.0f,1.0f}, new Color[] {new Color(185, 207, 231, 255),new Color(114, 
159, 207, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(44.30678, 50.229694);
+((GeneralPath)shape).curveTo(62.8215, 35.81886, 49.664585, 13.411704, 
22.462412, 12.49765);
+((GeneralPath)shape).lineTo(22.113844, 3.151548);
+((GeneralPath)shape).lineTo(7.624544, 20.496754);
+((GeneralPath)shape).lineTo(22.714329, 33.21919);
+((GeneralPath)shape).curveTo(22.714329, 33.21919, 22.462412, 23.337969, 
22.462412, 23.337969);
+((GeneralPath)shape).curveTo(41.29217, 24.336946, 55.44404, 37.4097, 
44.306786, 50.229694);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+paint = new LinearGradientPaint(new Point2D.Double(46.834815979003906, 
45.264122009277344), new Point2D.Double(45.380435943603516, 
50.939666748046875), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 
164, 255),new Color(52, 101, 164, 255)}, 
MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+stroke = new BasicStroke(1.3191693f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(44.30678, 50.229694);
+((GeneralPath)shape).curveTo(62.8215, 35.81886, 49.664585, 13.411704, 
22.462412, 12.49765);
+((GeneralPath)shape).lineTo(22.113844, 3.151548);
+((GeneralPath)shape).lineTo(7.624544, 20.496754);
+((GeneralPath)shape).lineTo(22.714329, 33.21919);
+((GeneralPath)shape).curveTo(22.714329, 33.21919, 22.462412, 23.337969, 
22.462412, 23.337969);
+((GeneralPath)shape).curveTo(41.29217, 24.336946, 55.44404, 37.4097, 
44.306786, 50.229694);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_1_0;
+g.setTransform(defaultTransform__0_0_0_1_0);
+g.setClip(clip__0_0_0_1_0);
+origAlpha = alpha__0_0_0_1;
+g.setTransform(defaultTransform__0_0_0_1);
+g.setClip(clip__0_0_0_1);
+float alpha__0_0_0_2 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_2 = g.getClip();
+AffineTransform defaultTransform__0_0_0_2 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_2 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(32.647972106933594, 
30.74884605407715), new Point2D.Double(37.12446212768555, 24.842252731323242), 
new float[] {0.0f,1.0f}, new Color[] {new Color(196, 215, 235, 255),new 
Color(196, 215, 235, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(28.375, 33.4375);
+((GeneralPath)shape).curveTo(28.375, 33.4375, 37.3125, 34.0625, 34.5625, 
23.5625);
+((GeneralPath)shape).lineTo(42.338387, 23.5625);
+((GeneralPath)shape).curveTo(42.338387, 25.065102, 41.75, 35.4375, 28.374998, 
33.4375);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+paint = new LinearGradientPaint(new Point2D.Double(36.713836669921875, 
31.455951690673828), new Point2D.Double(37.12446212768555, 24.842252731323242), 
new float[] {0.0f,1.0f}, new Color[] {new Color(57, 119, 195, 255),new 
Color(137, 174, 220, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+stroke = new BasicStroke(0.9999996f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(28.375, 33.4375);
+((GeneralPath)shape).curveTo(28.375, 33.4375, 37.3125, 34.0625, 34.5625, 
23.5625);
+((GeneralPath)shape).lineTo(42.338387, 23.5625);
+((GeneralPath)shape).curveTo(42.338387, 25.065102, 41.75, 35.4375, 28.374998, 
33.4375);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_2;
+g.setTransform(defaultTransform__0_0_0_2);
+g.setClip(clip__0_0_0_2);
+float alpha__0_0_0_3 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_3 = g.getClip();
+AffineTransform defaultTransform__0_0_0_3 = g.getTransform();
+g.transform(new AffineTransform(0.5790510177612305f, 0.4892280101776123f, 
0.4892280101776123f, -0.5790510177612305f, -7.921022891998291f, 
30.53598976135254f));
+// _0_0_0_3 is CompositeGraphicsNode
+float alpha__0_0_0_3_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_3_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0_3_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_3_0 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(18.935766220092773, 
23.667896270751953), new Point2D.Double(53.588623046875, 26.649362564086914), 
new float[] {0.0f,1.0f}, new Color[] {new Color(114, 159, 207, 255),new 
Color(82, 138, 197, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(44.30678, 50.229694);
+((GeneralPath)shape).curveTo(62.8215, 35.81886, 49.664585, 13.411704, 
22.462412, 12.49765);
+((GeneralPath)shape).lineTo(22.399431, 3.0690298);
+((GeneralPath)shape).lineTo(7.793943, 20.424006);
+((GeneralPath)shape).lineTo(22.462412, 33.006348);
+((GeneralPath)shape).curveTo(22.462412, 33.006348, 22.462412, 23.337967, 
22.462412, 23.337967);
+((GeneralPath)shape).curveTo(41.29217, 24.336945, 55.44404, 37.409695, 
44.306786, 50.22969);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+paint = new LinearGradientPaint(new Point2D.Double(46.834815979003906, 
45.264122009277344), new Point2D.Double(45.380435943603516, 
50.939666748046875), new float[] {0.0f,1.0f}, new Color[] {new Color(52, 101, 
164, 255),new Color(52, 101, 164, 255)}, 
MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+stroke = new BasicStroke(1.3191693f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(44.30678, 50.229694);
+((GeneralPath)shape).curveTo(62.8215, 35.81886, 49.664585, 13.411704, 
22.462412, 12.49765);
+((GeneralPath)shape).lineTo(22.399431, 3.0690298);
+((GeneralPath)shape).lineTo(7.793943, 20.424006);
+((GeneralPath)shape).lineTo(22.462412, 33.006348);
+((GeneralPath)shape).curveTo(22.462412, 33.006348, 22.462412, 23.337967, 
22.462412, 23.337967);
+((GeneralPath)shape).curveTo(41.29217, 24.336945, 55.44404, 37.409695, 
44.306786, 50.22969);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_3_0;
+g.setTransform(defaultTransform__0_0_0_3_0);
+g.setClip(clip__0_0_0_3_0);
+origAlpha = alpha__0_0_0_3;
+g.setTransform(defaultTransform__0_0_0_3);
+g.setClip(clip__0_0_0_3);
+float alpha__0_0_0_4 = origAlpha;
+origAlpha = origAlpha * 0.27222225f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_4 = g.getClip();
+AffineTransform defaultTransform__0_0_0_4 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_4 is ShapeNode
+paint = new Color(255, 255, 255, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(7.0625, 38.1875);
+((GeneralPath)shape).lineTo(7.125, 23.3125);
+((GeneralPath)shape).lineTo(20.0625, 22.9375);
+((GeneralPath)shape).lineTo(15.673627, 28.116318);
+((GeneralPath)shape).lineTo(19.540852, 30.489517);
+((GeneralPath)shape).curveTo(16.540852, 32.739517, 14.991303, 32.911644, 
13.991303, 35.474144);
+((GeneralPath)shape).lineTo(11.174446, 33.363873);
+((GeneralPath)shape).lineTo(7.0625, 38.1875);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_0_0_4;
+g.setTransform(defaultTransform__0_0_0_4);
+g.setClip(clip__0_0_0_4);
+float alpha__0_0_0_5 = origAlpha;
+origAlpha = origAlpha * 0.5f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_5 = g.getClip();
+AffineTransform defaultTransform__0_0_0_5 = g.getTransform();
+g.transform(new AffineTransform(0.5085359811782837f, 0.4296509921550751f, 
0.4296509921550751f, -0.5085359811782837f, -3.9731879234313965f, 
30.541189193725586f));
+// _0_0_0_5 is CompositeGraphicsNode
+float alpha__0_0_0_5_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_5_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0_5_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_5_0 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(5.9649176597595215, 
26.04816436767578), new Point2D.Double(52.854095458984375, 26.04816436767578), 
new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new 
Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+stroke = new BasicStroke(1.5020893f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(51.090263, 45.943707);
+((GeneralPath)shape).curveTo(60.210464, 30.723955, 46.631615, 12.20113, 
19.485058, 11.948579);
+((GeneralPath)shape).lineTo(19.513464, 3.7032833);
+((GeneralPath)shape).lineTo(6.534198, 19.296638);
+((GeneralPath)shape).lineTo(19.36766, 30.26876);
+((GeneralPath)shape).curveTo(19.36766, 30.26876, 19.42328, 21.261883, 
19.42328, 21.261883);
+((GeneralPath)shape).curveTo(36.951096, 21.037973, 54.61847, 31.365253, 
51.090263, 45.943707);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_5_0;
+g.setTransform(defaultTransform__0_0_0_5_0);
+g.setClip(clip__0_0_0_5_0);
+origAlpha = alpha__0_0_0_5;
+g.setTransform(defaultTransform__0_0_0_5);
+g.setClip(clip__0_0_0_5);
+float alpha__0_0_0_6 = origAlpha;
+origAlpha = origAlpha * 0.5f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_6 = g.getClip();
+AffineTransform defaultTransform__0_0_0_6 = g.getTransform();
+g.transform(new AffineTransform(-0.5085359811782837f, -0.4296509921550751f, 
-0.4296509921550751f, 0.5085359811782837f, 53.04899978637695f, 
13.365480422973633f));
+// _0_0_0_6 is CompositeGraphicsNode
+float alpha__0_0_0_6_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_6_0 = g.getClip();
+AffineTransform defaultTransform__0_0_0_6_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_6_0 is ShapeNode
+paint = new LinearGradientPaint(new Point2D.Double(5.9649176597595215, 
26.04816436767578), new Point2D.Double(52.854095458984375, 26.04816436767578), 
new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new 
Color(255, 255, 255, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, 
MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 
0.0f, 1.0f, 0.0f, 0.0f));
+stroke = new BasicStroke(1.5020893f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(51.389927, 46.505947);
+((GeneralPath)shape).curveTo(60.510128, 31.286196, 47.050762, 12.432359, 
19.628483, 12.069755);
+((GeneralPath)shape).lineTo(19.342825, 4.05072);
+((GeneralPath)shape).lineTo(6.341309, 19.379475);
+((GeneralPath)shape).lineTo(19.80906, 30.76459);
+((GeneralPath)shape).curveTo(19.80906, 30.76459, 19.627295, 21.311346, 
19.627295, 21.311346);
+((GeneralPath)shape).curveTo(37.87223, 21.693317, 54.41118, 32.23659, 
51.389927, 46.505943);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0_6_0;
+g.setTransform(defaultTransform__0_0_0_6_0);
+g.setClip(clip__0_0_0_6_0);
+origAlpha = alpha__0_0_0_6;
+g.setTransform(defaultTransform__0_0_0_6);
+g.setClip(clip__0_0_0_6);
+float alpha__0_0_0_7 = origAlpha;
+origAlpha = origAlpha * 0.27222225f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_0_7 = g.getClip();
+AffineTransform defaultTransform__0_0_0_7 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_0_7 is ShapeNode
+paint = new Color(255, 255, 255, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(6.8125, 16.5);
+((GeneralPath)shape).curveTo(10.405935, 6.0587273, 23.256283, 10.355393, 27.0, 
12.0);
+((GeneralPath)shape).curveTo(31.175306, 12.211475, 32.674736, 9.164996, 36.0, 
9.0);
+((GeneralPath)shape).curveTo(21.950264, -0.7899963, 7.1875, 2.5, 6.8125, 16.5);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_0_0_7;
+g.setTransform(defaultTransform__0_0_0_7);
+g.setClip(clip__0_0_0_7);
+origAlpha = alpha__0_0_0;
+g.setTransform(defaultTransform__0_0_0);
+g.setClip(clip__0_0_0);
+origAlpha = alpha__0_0;
+g.setTransform(defaultTransform__0_0);
+g.setClip(clip__0_0);
+origAlpha = alpha__0;
+g.setTransform(defaultTransform__0);
+g.setClip(clip__0);
+g.setTransform(defaultTransform_);
+g.setClip(clip_);
+
+       }
+       
+       public Image getImage() {
+               BufferedImage image =
+            new BufferedImage(getIconWidth(), getIconHeight(),
+                    BufferedImage.TYPE_INT_ARGB);
+       Graphics2D g = image.createGraphics();
+       paintIcon(null, g, 0, 0);
+       g.dispose();
+       return image;
+       }
+
+    /**
+     * Returns the X of the bounding box of the original SVG image.
+     * 
+     * @return The X of the bounding box of the original SVG image.
+     */
+    public static int getOrigX() {
+        return 0;
+    }
+
+    /**
+     * Returns the Y of the bounding box of the original SVG image.
+     * 
+     * @return The Y of the bounding box of the original SVG image.
+     */
+    public static int getOrigY() {
+        return 0;
+    }
+
+       /**
+        * Returns the width of the bounding box of the original SVG image.
+        * 
+        * @return The width of the bounding box of the original SVG image.
+        */
+       public static int getOrigWidth() {
+               return 48;
+       }
+
+       /**
+        * Returns the height of the bounding box of the original SVG image.
+        * 
+        * @return The height of the bounding box of the original SVG image.
+        */
+       public static int getOrigHeight() {
+               return 48;
+       }
+
+       /**
+        * The current width of this resizable icon.
+        */
+       int width;
+
+       /**
+        * The current height of this resizable icon.
+        */
+       int height;
+
+       /**
+        * Creates a new transcoded SVG image.
+        */
+       public RefreshIcon() {
+        this.width = getOrigWidth();
+        this.height = getOrigHeight();
+       }
+       
+       /**
+        * Creates a new transcoded SVG image with the given dimensions.
+        *
+        * @param size the dimensions of the icon
+        */
+       public RefreshIcon(Dimension size) {
+       this.width = size.width;
+       this.height = size.width;
+       }
+
+       public RefreshIcon(int width, int height) {
+       this.width = width;
+       this.height = height;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.Icon#getIconHeight()
+        */
+    @Override
+       public int getIconHeight() {
+               return height;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.Icon#getIconWidth()
+        */
+    @Override
+       public int getIconWidth() {
+               return width;
+       }
+
+       public void setDimension(Dimension newDimension) {
+               this.width = newDimension.width;
+               this.height = newDimension.height;
+       }
+
+       /*
+        * (non-Javadoc)
+        * 
+        * @see javax.swing.Icon#paintIcon(java.awt.Component, 
java.awt.Graphics,
+        * int, int)
+        */
+    @Override
+       public void paintIcon(Component c, Graphics g, int x, int y) {
+               Graphics2D g2d = (Graphics2D) g.create();
+               g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
+                               RenderingHints.VALUE_ANTIALIAS_ON);
+               g2d.translate(x, y);
+                                               
+               Area clip = new Area(new Rectangle(0, 0, this.width, 
this.height));             
+               if (g2d.getClip() != null) clip.intersect(new 
Area(g2d.getClip()));             
+               g2d.setClip(clip);
+
+               double coef1 = (double) this.width / (double) getOrigWidth();
+               double coef2 = (double) this.height / (double) getOrigHeight();
+               double coef = Math.min(coef1, coef2);
+               g2d.scale(coef, coef);
+               paint(g2d);
+               g2d.dispose();
+       }
+}
+

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to