Revision: 18199
          http://sourceforge.net/p/gate/code/18199
Author:   markagreenwood
Date:     2014-07-18 10:21:50 +0000 (Fri, 18 Jul 2014)
Log Message:
-----------
a new GATE XML icon

Modified Paths:
--------------
    gate/trunk/src/main/gate/corpora/export/GateXMLExporter.java

Added Paths:
-----------
    gate/trunk/src/main/gate/resources/img/svg/GATEXML.svg
    gate/trunk/src/main/gate/resources/img/svg/GATEXMLIcon.java

Modified: gate/trunk/src/main/gate/corpora/export/GateXMLExporter.java
===================================================================
--- gate/trunk/src/main/gate/corpora/export/GateXMLExporter.java        
2014-07-18 09:55:27 UTC (rev 18198)
+++ gate/trunk/src/main/gate/corpora/export/GateXMLExporter.java        
2014-07-18 10:21:50 UTC (rev 18199)
@@ -26,7 +26,7 @@
 import gate.creole.metadata.AutoInstance;
 import gate.creole.metadata.CreoleResource;
 
-@CreoleResource(name = "GATE XML Exporter", tool = true, autoinstances = 
@AutoInstance, icon = "GATE")
+@CreoleResource(name = "GATE XML Exporter", tool = true, autoinstances = 
@AutoInstance, icon = "GATEXML")
 public class GateXMLExporter extends DocumentExporter {
 
   private static final long serialVersionUID = -5725505758491779035L;

Added: gate/trunk/src/main/gate/resources/img/svg/GATEXML.svg
===================================================================
--- gate/trunk/src/main/gate/resources/img/svg/GATEXML.svg                      
        (rev 0)
+++ gate/trunk/src/main/gate/resources/img/svg/GATEXML.svg      2014-07-18 
10:21:50 UTC (rev 18199)
@@ -0,0 +1,188 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<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";
+   width="48.000355"
+   height="48"
+   style="fill-opacity:1;fill-rule:evenodd;stroke:none"
+   id="svg2"
+   version="1.1"
+   inkscape:version="0.48.4 r9939"
+   sodipodi:docname="GATEXML.svg">
+  <metadata
+     id="metadata80">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage"; />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="2048"
+     inkscape:window-height="1128"
+     id="namedview78"
+     showgrid="false"
+     fit-margin-top="4"
+     fit-margin-left="4"
+     fit-margin-right="4"
+     fit-margin-bottom="4"
+     inkscape:zoom="1.5104"
+     inkscape:cx="52.830414"
+     inkscape:cy="-10.891349"
+     inkscape:window-x="0"
+     inkscape:window-y="24"
+     inkscape:window-maximized="1"
+     inkscape:current-layer="svg2" />
+  <defs
+     id="defs4">
+    <linearGradient
+       id="gr1">
+      <stop
+         offset="0"
+         style="stop-color:#000000;stop-opacity:0.1"
+         id="stop7" />
+      <stop
+         offset="1"
+         style="stop-color:#000000;stop-opacity:0"
+         id="stop9" />
+    </linearGradient>
+    <linearGradient
+       id="gr2"
+       xlink:href="#gr1"
+       x1="0.052000001"
+       y1="0.977"
+       x2="0.78299999"
+       y2="0" />
+    <linearGradient
+       id="gr3">
+      <stop
+         offset="0"
+         style="stop-color:#ffffff;stop-opacity:1"
+         id="stop13" />
+      <stop
+         offset="1"
+         style="stop-color:#ffffff;stop-opacity:0"
+         id="stop15" />
+    </linearGradient>
+    <linearGradient
+       id="gr4"
+       xlink:href="#gr3"
+       x1="1.557"
+       y1="-0.55299997"
+       x2="0.063000001"
+       y2="0.54699999" />
+    <linearGradient
+       id="gr5">
+      <stop
+         offset="0"
+         style="stop-color:#dadada;stop-opacity:1"
+         id="stop19" />
+      <stop
+         offset="0.35"
+         style="stop-color:#f1f1f1;stop-opacity:1"
+         id="stop21" />
+      <stop
+         offset="1"
+         style="stop-color:#f0f0f0;stop-opacity:1"
+         id="stop23" />
+    </linearGradient>
+    <linearGradient
+       id="gr6"
+       xlink:href="#gr5"
+       x1="0.88"
+       y1="0.211"
+       x2="0.085000001"
+       y2="1.1799999" />
+    <linearGradient
+       id="gr7"
+       xlink:href="#gr5"
+       x1="0.63200003"
+       y1="0.32800001"
+       x2="-0.37599999"
+       y2="1.3279999" />
+    <path
+       id="pathTagXML"
+       d="m 4.2424884,2.9393196 2.9238281,0 1.5234375,2.6425781 
1.476563,-2.6425781 2.894531,0 -2.671875,4.1601563 2.923828,4.4296871 
-2.982422,0 -1.6933594,-2.7597653 -1.6992187,2.7597653 -2.9648438,0 L 
6.9378009,7.0526009 4.2424884,2.9393196 z m 9.8906246,0 3.492188,0 
1.347656,5.2265625 1.341797,-5.2265625 3.480469,0 0,8.5898434 -2.167969,0 
0,-6.5507809 -1.681641,6.5507809 -1.96289,0 -1.675781,-6.5507809 0,6.5507809 
-2.173829,0 0,-8.5898434 z m 11.34961,0 2.654297,0 0,6.4746094 4.142578,0 
0,2.115234 -6.796875,0 0,-8.5898434 z"
+       inkscape:connector-curvature="0" />
+  </defs>
+  <g
+     id="g3120"
+     transform="matrix(0.85000001,0,0,0.85000001,4,-2.7999991)">
+    <path
+       inkscape:connector-curvature="0"
+       sodipodi:nodetypes="zccz"
+       id="path2107"
+       d="M 39.186288,27.999989 C 39.320816,51.410986 0.81336001,46.822825 
0.81336001,46.822825 l 0,-37.645664 c 0,0 38.23841599,-4.5881373 
38.37292799,18.822828 z"
+       
style="fill:#ffffff;fill-opacity:1;stroke:#008000;stroke-width:1.62672007;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"
 />
+    <path
+       d="m 30.316798,39.760696 -15.276803,0 c -3.496545,0 
-6.3946732,-1.161601 -8.6944018,-3.484801 -2.2762645,-2.323201 
-3.4144007,-5.256529 -3.4144007,-8.800002 0,-3.519985 1.1264002,-6.359449 
3.3792007,-8.518402 2.2762646,-2.158912 5.1861288,-3.238377 8.7296018,-3.238401 
l 13.587203,0 0,4.188801 -13.587203,0 c -2.299744,1.6e-5 -4.200545,0.739216 
-5.702401,2.217601 -1.4784085,1.478416 -2.2176006,3.379208 -2.2176006,5.702401 
0,2.299744 0.7391921,4.165337 2.2176006,5.596801 1.501856,1.431472 
3.402657,2.147201 5.702401,2.147201 l 11.088003,0 0,-5.244801 -11.404803,0 
0,-3.836801 15.593603,0 0,13.270403"
+       
style="font-size:44px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:justify;line-height:125%;letter-spacing:0px;word-spacing:0px;writing-mode:lr-tb;text-anchor:start;fill:#ff0000;fill-opacity:1;stroke:#800000;stroke-width:0.80000019;font-family:Good
 Times;-inkscape-font-specification:Good Times"
+       id="path3004"
+       inkscape:connector-curvature="0" />
+  </g>
+  <g
+     id="gTagXML"
+     transform="matrix(0.94444444,0,0,0.94444444,11,31.777777)">
+    <path
+       style="fill:#803300"
+       d="M 36,14 35,13 35,1 36,0 36,14 z"
+       id="path64"
+       inkscape:connector-curvature="0" />
+    <rect
+       style="fill:#ff6600"
+       width="34"
+       height="12"
+       x="1"
+       y="1"
+       id="rect66" />
+    <path
+       style="fill:#ffccaa"
+       d="M 0,0 36,0 35,1 1,1 0,0 z"
+       id="path68"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:#552200"
+       d="M 0,14 36,14 35,13 1,13 0,14 z"
+       id="path70"
+       inkscape:connector-curvature="0" />
+    <path
+       style="fill:#ff9955"
+       d="M 1,13 0,14 0,0 1,1 1,13 z"
+       id="path72"
+       inkscape:connector-curvature="0" />
+    <use
+       xlink:href="#pathTagXML"
+       style="fill:#803300"
+       transform="translate(1,1)"
+       id="use74"
+       x="0"
+       y="0"
+       width="275"
+       height="312.5" />
+    <use
+       xlink:href="#pathTagXML"
+       style="fill:#ffffff"
+       id="use76"
+       x="0"
+       y="0"
+       width="275"
+       height="312.5" />
+  </g>
+</svg>

Added: gate/trunk/src/main/gate/resources/img/svg/GATEXMLIcon.java
===================================================================
--- gate/trunk/src/main/gate/resources/img/svg/GATEXMLIcon.java                 
        (rev 0)
+++ gate/trunk/src/main/gate/resources/img/svg/GATEXMLIcon.java 2014-07-18 
10:21:50 UTC (rev 18199)
@@ -0,0 +1,516 @@
+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 GATEXMLIcon 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.0003547668457,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(0.8500000238418579f, 0.0f, 0.0f, 
0.8500000238418579f, 4.0f, -2.7999989986419678f));
+// _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, 0.0f, 0.0f));
+// _0_0_0 is ShapeNode
+paint = new Color(255, 255, 255, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(39.186287, 27.999989);
+((GeneralPath)shape).curveTo(39.320816, 51.410988, 0.81336004, 46.822826, 
0.81336004, 46.822826);
+((GeneralPath)shape).lineTo(0.81336004, 9.177162);
+((GeneralPath)shape).curveTo(0.81336004, 9.177162, 39.051773, 4.589025, 
39.186287, 27.99999);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+paint = new Color(0, 128, 0, 255);
+stroke = new BasicStroke(1.6267201f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(39.186287, 27.999989);
+((GeneralPath)shape).curveTo(39.320816, 51.410988, 0.81336004, 46.822826, 
0.81336004, 46.822826);
+((GeneralPath)shape).lineTo(0.81336004, 9.177162);
+((GeneralPath)shape).curveTo(0.81336004, 9.177162, 39.051773, 4.589025, 
39.186287, 27.99999);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_0;
+g.setTransform(defaultTransform__0_0_0);
+g.setClip(clip__0_0_0);
+float alpha__0_0_1 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_0_1 = g.getClip();
+AffineTransform defaultTransform__0_0_1 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_0_1 is ShapeNode
+paint = new Color(255, 0, 0, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(30.316797, 39.760696);
+((GeneralPath)shape).lineTo(15.039994, 39.760696);
+((GeneralPath)shape).curveTo(11.543449, 39.760696, 8.645321, 38.599094, 
6.3455925, 36.275894);
+((GeneralPath)shape).curveTo(4.0693283, 33.952694, 2.9311917, 31.019365, 
2.9311917, 27.475891);
+((GeneralPath)shape).curveTo(2.9311917, 23.955906, 4.057592, 21.116442, 
6.3103924, 18.957489);
+((GeneralPath)shape).curveTo(8.586657, 16.798576, 11.496521, 15.719112, 
15.039994, 15.719088);
+((GeneralPath)shape).lineTo(28.627197, 15.719088);
+((GeneralPath)shape).lineTo(28.627197, 19.907888);
+((GeneralPath)shape).lineTo(15.039994, 19.907888);
+((GeneralPath)shape).curveTo(12.740251, 19.907904, 10.839449, 20.647104, 
9.337593, 22.12549);
+((GeneralPath)shape).curveTo(7.8591847, 23.603907, 7.1199923, 25.504698, 
7.1199923, 27.827892);
+((GeneralPath)shape).curveTo(7.1199923, 30.127636, 7.8591843, 31.993229, 
9.337593, 33.424694);
+((GeneralPath)shape).curveTo(10.839449, 34.856167, 12.74025, 35.571896, 
15.039994, 35.571896);
+((GeneralPath)shape).lineTo(26.127998, 35.571896);
+((GeneralPath)shape).lineTo(26.127998, 30.327095);
+((GeneralPath)shape).lineTo(14.723195, 30.327095);
+((GeneralPath)shape).lineTo(14.723195, 26.490294);
+((GeneralPath)shape).lineTo(30.3168, 26.490294);
+((GeneralPath)shape).lineTo(30.3168, 39.760696);
+g.setPaint(paint);
+g.fill(shape);
+paint = new Color(128, 0, 0, 255);
+stroke = new BasicStroke(0.8000002f,0,0,4.0f,null,0.0f);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(30.316797, 39.760696);
+((GeneralPath)shape).lineTo(15.039994, 39.760696);
+((GeneralPath)shape).curveTo(11.543449, 39.760696, 8.645321, 38.599094, 
6.3455925, 36.275894);
+((GeneralPath)shape).curveTo(4.0693283, 33.952694, 2.9311917, 31.019365, 
2.9311917, 27.475891);
+((GeneralPath)shape).curveTo(2.9311917, 23.955906, 4.057592, 21.116442, 
6.3103924, 18.957489);
+((GeneralPath)shape).curveTo(8.586657, 16.798576, 11.496521, 15.719112, 
15.039994, 15.719088);
+((GeneralPath)shape).lineTo(28.627197, 15.719088);
+((GeneralPath)shape).lineTo(28.627197, 19.907888);
+((GeneralPath)shape).lineTo(15.039994, 19.907888);
+((GeneralPath)shape).curveTo(12.740251, 19.907904, 10.839449, 20.647104, 
9.337593, 22.12549);
+((GeneralPath)shape).curveTo(7.8591847, 23.603907, 7.1199923, 25.504698, 
7.1199923, 27.827892);
+((GeneralPath)shape).curveTo(7.1199923, 30.127636, 7.8591843, 31.993229, 
9.337593, 33.424694);
+((GeneralPath)shape).curveTo(10.839449, 34.856167, 12.74025, 35.571896, 
15.039994, 35.571896);
+((GeneralPath)shape).lineTo(26.127998, 35.571896);
+((GeneralPath)shape).lineTo(26.127998, 30.327095);
+((GeneralPath)shape).lineTo(14.723195, 30.327095);
+((GeneralPath)shape).lineTo(14.723195, 26.490294);
+((GeneralPath)shape).lineTo(30.3168, 26.490294);
+((GeneralPath)shape).lineTo(30.3168, 39.760696);
+g.setPaint(paint);
+g.setStroke(stroke);
+g.draw(shape);
+origAlpha = alpha__0_0_1;
+g.setTransform(defaultTransform__0_0_1);
+g.setClip(clip__0_0_1);
+origAlpha = alpha__0_0;
+g.setTransform(defaultTransform__0_0);
+g.setClip(clip__0_0);
+float alpha__0_1 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1 = g.getClip();
+AffineTransform defaultTransform__0_1 = g.getTransform();
+g.transform(new AffineTransform(0.944444477558136f, 0.0f, 0.0f, 
0.944444477558136f, 11.0f, 31.77777671813965f));
+// _0_1 is CompositeGraphicsNode
+float alpha__0_1_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_0 = g.getClip();
+AffineTransform defaultTransform__0_1_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_0 is ShapeNode
+paint = new Color(128, 51, 0, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(36.0, 14.0);
+((GeneralPath)shape).lineTo(35.0, 13.0);
+((GeneralPath)shape).lineTo(35.0, 1.0);
+((GeneralPath)shape).lineTo(36.0, 0.0);
+((GeneralPath)shape).lineTo(36.0, 14.0);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_0;
+g.setTransform(defaultTransform__0_1_0);
+g.setClip(clip__0_1_0);
+float alpha__0_1_1 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_1 = g.getClip();
+AffineTransform defaultTransform__0_1_1 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_1 is ShapeNode
+paint = new Color(255, 102, 0, 255);
+shape = new Rectangle2D.Double(1.0, 1.0, 34.0, 12.0);
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_1;
+g.setTransform(defaultTransform__0_1_1);
+g.setClip(clip__0_1_1);
+float alpha__0_1_2 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_2 = g.getClip();
+AffineTransform defaultTransform__0_1_2 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_2 is ShapeNode
+paint = new Color(255, 204, 170, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(0.0, 0.0);
+((GeneralPath)shape).lineTo(36.0, 0.0);
+((GeneralPath)shape).lineTo(35.0, 1.0);
+((GeneralPath)shape).lineTo(1.0, 1.0);
+((GeneralPath)shape).lineTo(0.0, 0.0);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_2;
+g.setTransform(defaultTransform__0_1_2);
+g.setClip(clip__0_1_2);
+float alpha__0_1_3 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_3 = g.getClip();
+AffineTransform defaultTransform__0_1_3 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_3 is ShapeNode
+paint = new Color(85, 34, 0, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(0.0, 14.0);
+((GeneralPath)shape).lineTo(36.0, 14.0);
+((GeneralPath)shape).lineTo(35.0, 13.0);
+((GeneralPath)shape).lineTo(1.0, 13.0);
+((GeneralPath)shape).lineTo(0.0, 14.0);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_3;
+g.setTransform(defaultTransform__0_1_3);
+g.setClip(clip__0_1_3);
+float alpha__0_1_4 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_4 = g.getClip();
+AffineTransform defaultTransform__0_1_4 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_4 is ShapeNode
+paint = new Color(255, 153, 85, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(1.0, 13.0);
+((GeneralPath)shape).lineTo(0.0, 14.0);
+((GeneralPath)shape).lineTo(0.0, 0.0);
+((GeneralPath)shape).lineTo(1.0, 1.0);
+((GeneralPath)shape).lineTo(1.0, 13.0);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_4;
+g.setTransform(defaultTransform__0_1_4);
+g.setClip(clip__0_1_4);
+float alpha__0_1_5 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_5 = g.getClip();
+AffineTransform defaultTransform__0_1_5 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 1.0f, 1.0f));
+// _0_1_5 is CompositeGraphicsNode
+float alpha__0_1_5_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_5_0 = g.getClip();
+AffineTransform defaultTransform__0_1_5_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_5_0 is ShapeNode
+paint = new Color(128, 51, 0, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(4.2424884, 2.9393196);
+((GeneralPath)shape).lineTo(7.1663165, 2.9393196);
+((GeneralPath)shape).lineTo(8.6897545, 5.5818977);
+((GeneralPath)shape).lineTo(10.166317, 2.9393196);
+((GeneralPath)shape).lineTo(13.060848, 2.9393196);
+((GeneralPath)shape).lineTo(10.388973, 7.099476);
+((GeneralPath)shape).lineTo(13.312801, 11.529163);
+((GeneralPath)shape).lineTo(10.3303795, 11.529163);
+((GeneralPath)shape).lineTo(8.63702, 8.769398);
+((GeneralPath)shape).lineTo(6.9378014, 11.529163);
+((GeneralPath)shape).lineTo(3.9729576, 11.529163);
+((GeneralPath)shape).lineTo(6.937801, 7.052601);
+((GeneralPath)shape).lineTo(4.2424884, 2.9393196);
+((GeneralPath)shape).closePath();
+((GeneralPath)shape).moveTo(14.133114, 2.9393196);
+((GeneralPath)shape).lineTo(17.625301, 2.9393196);
+((GeneralPath)shape).lineTo(18.972958, 8.165882);
+((GeneralPath)shape).lineTo(20.314754, 2.9393196);
+((GeneralPath)shape).lineTo(23.795223, 2.9393196);
+((GeneralPath)shape).lineTo(23.795223, 11.529163);
+((GeneralPath)shape).lineTo(21.627254, 11.529163);
+((GeneralPath)shape).lineTo(21.627254, 4.9783826);
+((GeneralPath)shape).lineTo(19.945614, 11.529163);
+((GeneralPath)shape).lineTo(17.982723, 11.529163);
+((GeneralPath)shape).lineTo(16.306942, 4.9783826);
+((GeneralPath)shape).lineTo(16.306942, 11.529163);
+((GeneralPath)shape).lineTo(14.133113, 11.529163);
+((GeneralPath)shape).lineTo(14.133113, 2.9393196);
+((GeneralPath)shape).closePath();
+((GeneralPath)shape).moveTo(25.482723, 2.9393196);
+((GeneralPath)shape).lineTo(28.13702, 2.9393196);
+((GeneralPath)shape).lineTo(28.13702, 9.413929);
+((GeneralPath)shape).lineTo(32.2796, 9.413929);
+((GeneralPath)shape).lineTo(32.2796, 11.529163);
+((GeneralPath)shape).lineTo(25.482723, 11.529163);
+((GeneralPath)shape).lineTo(25.482723, 2.9393196);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_5_0;
+g.setTransform(defaultTransform__0_1_5_0);
+g.setClip(clip__0_1_5_0);
+origAlpha = alpha__0_1_5;
+g.setTransform(defaultTransform__0_1_5);
+g.setClip(clip__0_1_5);
+float alpha__0_1_6 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_6 = g.getClip();
+AffineTransform defaultTransform__0_1_6 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_6 is CompositeGraphicsNode
+float alpha__0_1_6_0 = origAlpha;
+origAlpha = origAlpha * 1.0f;
+g.setComposite(AlphaComposite.getInstance(3, origAlpha));
+Shape clip__0_1_6_0 = g.getClip();
+AffineTransform defaultTransform__0_1_6_0 = g.getTransform();
+g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f));
+// _0_1_6_0 is ShapeNode
+paint = new Color(255, 255, 255, 255);
+shape = new GeneralPath();
+((GeneralPath)shape).moveTo(4.2424884, 2.9393196);
+((GeneralPath)shape).lineTo(7.1663165, 2.9393196);
+((GeneralPath)shape).lineTo(8.6897545, 5.5818977);
+((GeneralPath)shape).lineTo(10.166317, 2.9393196);
+((GeneralPath)shape).lineTo(13.060848, 2.9393196);
+((GeneralPath)shape).lineTo(10.388973, 7.099476);
+((GeneralPath)shape).lineTo(13.312801, 11.529163);
+((GeneralPath)shape).lineTo(10.3303795, 11.529163);
+((GeneralPath)shape).lineTo(8.63702, 8.769398);
+((GeneralPath)shape).lineTo(6.9378014, 11.529163);
+((GeneralPath)shape).lineTo(3.9729576, 11.529163);
+((GeneralPath)shape).lineTo(6.937801, 7.052601);
+((GeneralPath)shape).lineTo(4.2424884, 2.9393196);
+((GeneralPath)shape).closePath();
+((GeneralPath)shape).moveTo(14.133114, 2.9393196);
+((GeneralPath)shape).lineTo(17.625301, 2.9393196);
+((GeneralPath)shape).lineTo(18.972958, 8.165882);
+((GeneralPath)shape).lineTo(20.314754, 2.9393196);
+((GeneralPath)shape).lineTo(23.795223, 2.9393196);
+((GeneralPath)shape).lineTo(23.795223, 11.529163);
+((GeneralPath)shape).lineTo(21.627254, 11.529163);
+((GeneralPath)shape).lineTo(21.627254, 4.9783826);
+((GeneralPath)shape).lineTo(19.945614, 11.529163);
+((GeneralPath)shape).lineTo(17.982723, 11.529163);
+((GeneralPath)shape).lineTo(16.306942, 4.9783826);
+((GeneralPath)shape).lineTo(16.306942, 11.529163);
+((GeneralPath)shape).lineTo(14.133113, 11.529163);
+((GeneralPath)shape).lineTo(14.133113, 2.9393196);
+((GeneralPath)shape).closePath();
+((GeneralPath)shape).moveTo(25.482723, 2.9393196);
+((GeneralPath)shape).lineTo(28.13702, 2.9393196);
+((GeneralPath)shape).lineTo(28.13702, 9.413929);
+((GeneralPath)shape).lineTo(32.2796, 9.413929);
+((GeneralPath)shape).lineTo(32.2796, 11.529163);
+((GeneralPath)shape).lineTo(25.482723, 11.529163);
+((GeneralPath)shape).lineTo(25.482723, 2.9393196);
+((GeneralPath)shape).closePath();
+g.setPaint(paint);
+g.fill(shape);
+origAlpha = alpha__0_1_6_0;
+g.setTransform(defaultTransform__0_1_6_0);
+g.setClip(clip__0_1_6_0);
+origAlpha = alpha__0_1_6;
+g.setTransform(defaultTransform__0_1_6);
+g.setClip(clip__0_1_6);
+origAlpha = alpha__0_1;
+g.setTransform(defaultTransform__0_1);
+g.setClip(clip__0_1);
+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 4;
+    }
+
+    /**
+     * 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 2;
+    }
+
+       /**
+        * 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 GATEXMLIcon() {
+        this.width = getOrigWidth();
+        this.height = getOrigHeight();
+       }
+       
+       /**
+        * Creates a new transcoded SVG image with the given dimensions.
+        *
+        * @param size the dimensions of the icon
+        */
+       public GATEXMLIcon(Dimension size) {
+       this.width = size.width;
+       this.height = size.width;
+       }
+
+       public GATEXMLIcon(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.


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to