Revision: 19533 http://sourceforge.net/p/gate/code/19533 Author: markagreenwood Date: 2016-08-21 17:01:57 +0000 (Sun, 21 Aug 2016) Log Message: ----------- another maven based plugin
Modified Paths: -------------- gate/branches/sawdust2/plugins/Tagger_Numbers/.classpath gate/branches/sawdust2/plugins/Tagger_Numbers/.project gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/NumbersTagger.java gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java Added Paths: ----------- gate/branches/sawdust2/plugins/Tagger_Numbers/pom.xml gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Numbers.svg gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/NumbersIcon.java gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Roman.svg gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/RomanIcon.java gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/creole.xml gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/resources/ Removed Paths: ------------- gate/branches/sawdust2/plugins/Tagger_Numbers/build.xml gate/branches/sawdust2/plugins/Tagger_Numbers/creole.xml gate/branches/sawdust2/plugins/Tagger_Numbers/doc/ gate/branches/sawdust2/plugins/Tagger_Numbers/resources/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/gate/ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/numbers.png gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/roman.png Property Changed: ---------------- gate/branches/sawdust2/plugins/Tagger_Numbers/ Index: gate/branches/sawdust2/plugins/Tagger_Numbers =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers 2016-08-21 17:01:57 UTC (rev 19533) Property changes on: gate/branches/sawdust2/plugins/Tagger_Numbers ___________________________________________________________________ Modified: svn:ignore ## -1,3 +1,2 ## -NumbersTagger.jar -classes +target .settings Modified: gate/branches/sawdust2/plugins/Tagger_Numbers/.classpath =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/.classpath 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/.classpath 2016-08-21 17:01:57 UTC (rev 19533) @@ -1,7 +1,31 @@ <?xml version="1.0" encoding="UTF-8"?> <classpath> - <classpathentry kind="src" path="src"/> - <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/> - <classpathentry combineaccessrules="false" exported="true" kind="src" path="/GATE"/> - <classpathentry kind="output" path="classes"/> + <classpathentry kind="src" output="target/classes" path="src/main/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="src" output="target/test-classes" path="src/test/java"> + <attributes> + <attribute name="optional" value="true"/> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> + <attributes> + <attribute name="maven.pomderived" value="true"/> + </attributes> + </classpathentry> + <classpathentry kind="output" path="target/classes"/> </classpath> Modified: gate/branches/sawdust2/plugins/Tagger_Numbers/.project =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/.project 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/.project 2016-08-21 17:01:57 UTC (rev 19533) @@ -10,8 +10,14 @@ <arguments> </arguments> </buildCommand> + <buildCommand> + <name>org.eclipse.m2e.core.maven2Builder</name> + <arguments> + </arguments> + </buildCommand> </buildSpec> <natures> <nature>org.eclipse.jdt.core.javanature</nature> + <nature>org.eclipse.m2e.core.maven2Nature</nature> </natures> </projectDescription> Deleted: gate/branches/sawdust2/plugins/Tagger_Numbers/build.xml =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/build.xml 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/build.xml 2016-08-21 17:01:57 UTC (rev 19533) @@ -1,80 +0,0 @@ -<project name="Numbers" basedir="."> - <!-- Prevent Ant from warning about includeantruntime not being set --> - <property name="build.sysclasspath" value="ignore" /> - - <property file="build.properties" /> - - <property name="gate.home" location="../.." /> - <property name="gate.lib" location="${gate.home}/lib" /> - <property name="src.dir" location="src" /> - <property name="classes.dir" location="classes" /> - <property name="jar.location" location="NumbersTagger.jar" /> - <property name="doc.dir" location="doc" /> - <property name="javadoc.dir" location="${doc.dir}/javadoc" /> - - <!-- Path to compile - includes gate.jar and GATE/lib/*.jar --> - <path id="compile.classpath"> - <pathelement location="${gate.home}/bin/gate.jar" /> - <fileset dir="${gate.lib}"> - <include name="**/*.jar" /> - <include name="**/*.zip" /> - </fileset> - </path> - - <!-- create build directory structure --> - <target name="prepare"> - <mkdir dir="${classes.dir}" /> - </target> - - <!-- compile the source --> - <target name="compile" depends="prepare"> - <javac classpathref="compile.classpath" srcdir="${src.dir}" destdir="${classes.dir}" debug="true" debuglevel="lines,source" encoding="UTF-8" source="1.5" target="1.5" /> - </target> - - <target name="resources" depends="prepare"> - <copy todir="${classes.dir}/gate/resources" includeEmptyDirs="true"> - <fileset dir="${src.dir}/gate/resources" /> - </copy> - </target> - - <!-- create the JAR file --> - <target name="jar" depends="compile, resources"> - <jar destfile="${jar.location}" update="false" basedir="${classes.dir}" /> - </target> - - <!-- remove the generated .class files --> - <target name="clean.classes"> - <delete dir="${classes.dir}" /> - </target> - - <!-- Clean up - remove .class and .jar files --> - <target name="clean" depends="clean.classes"> - <delete file="${jar.location}" /> - </target> - - <!-- Targets used by the main GATE build file: - build: build the plugin - just calls "jar" target - test : run the unit tests - there aren't any - distro.prepare: remove intermediate files that shouldn't be in the - distribution - --> - - <!-- Build JavaDoc documentation --> - <target name="doc.prepare"> - <mkdir dir="${javadoc.dir}" /> - </target> - - <target name="javadoc" depends="doc.prepare"> - <javadoc destdir="${javadoc.dir}" packagenames="*" classpathref="compile.classpath" encoding="UTF-8" windowtitle="Numbers Tagger JavaDoc" source="1.6"> - <sourcepath> - <pathelement location="${src.dir}" /> - </sourcepath> - <link href="http://docs.oracle.com/javase/6/docs/api/" /> - <link href="http://gate.ac.uk/gate/doc/javadoc/" /> - </javadoc> - </target> - - <target name="build" depends="jar" /> - <target name="test" /> - <target name="distro.prepare" depends="clean.classes" /> -</project> Deleted: gate/branches/sawdust2/plugins/Tagger_Numbers/creole.xml =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/creole.xml 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/creole.xml 2016-08-21 17:01:57 UTC (rev 19533) @@ -1,3 +0,0 @@ -<CREOLE-DIRECTORY> - <JAR SCAN="true">NumbersTagger.jar</JAR> -</CREOLE-DIRECTORY> Added: gate/branches/sawdust2/plugins/Tagger_Numbers/pom.xml =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/pom.xml (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/pom.xml 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,38 @@ + +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>base-plugin</artifactId> + <!-- this should be the version of GATE you wish to build against --> + <version>9.0-SNAPSHOT</version> + </parent> + + <!-- this is the description of this plugin --> + <groupId>uk.ac.gate.plugins</groupId> + <artifactId>tagger-numbers</artifactId> + <version>9.0-SNAPSHOT</version> + + <licenses> + <license> + <name>GNU Lesser General Public License (LGPL), Version 3</name> + <url>http://www.gnu.org/licenses/lgpl-3.0.txt</url> + <distribution>repo</distribution> + </license> + </licenses> + + <organization> + <name>GATE</name> + <url>http://gate.ac.uk</url> + </organization> + + <dependencies> + <!-- add any other libraries your plugin depends on. Any other GATE plugins + you depend on at compile time should use the provided scope --> + + </dependencies> + +</project> Modified: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/NumbersTagger.java =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/gate/creole/numbers/NumbersTagger.java 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/NumbersTagger.java 2016-08-21 17:01:57 UTC (rev 19533) @@ -34,7 +34,6 @@ import gate.util.BomStrippingInputStreamReader; import gate.util.InvalidOffsetException; -import java.awt.event.ActionEvent; import java.io.IOException; import java.net.URL; import java.text.NumberFormat; @@ -50,7 +49,6 @@ import java.util.regex.Matcher; import java.util.regex.Pattern; -import javax.swing.AbstractAction; import javax.swing.Action; import org.apache.log4j.Level; @@ -77,7 +75,7 @@ * @author Mark A. Greenwood * @author Thomas Heitz */ -@CreoleResource(name = "Numbers Tagger", comment = "Finds numbers in (both words and digits) and annotates them with their numeric value", icon = "numbers.png", helpURL = "http://gate.ac.uk/userguide/sec:misc-creole:numbers:numbers") +@CreoleResource(name = "Numbers Tagger", comment = "Finds numbers in (both words and digits) and annotates them with their numeric value", icon = "Numbers", helpURL = "http://gate.ac.uk/userguide/sec:misc-creole:numbers:numbers") public class NumbersTagger extends AbstractLanguageAnalyser implements ActionsPublisher { private static final long serialVersionUID = 8568794158677464398L; @@ -156,25 +154,6 @@ public String getAnnotationSetName() { return annotationSetName; } - - public NumbersTagger() { - boolean DEBUG_DUPLICATION = true; - if(DEBUG_DUPLICATION) { - actions.add(new AbstractAction("Duplicate") { - - @Override - public void actionPerformed(ActionEvent arg0) { - try { - Factory.duplicate(NumbersTagger.this); - } catch(ResourceInstantiationException e) { - // TODO Auto-generated catch block - e.printStackTrace(); - } - } - - }); - } - } @RunTime @Optional Modified: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/gate/creole/numbers/RomanNumeralsTagger.java 2016-08-21 01:22:41 UTC (rev 19532) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/creole/numbers/RomanNumeralsTagger.java 2016-08-21 17:01:57 UTC (rev 19533) @@ -44,7 +44,7 @@ * @author Mark A. Greenwood * @author Valentin Tablan */ -@CreoleResource(name = "Roman Numerals Tagger", comment = "Finds and annotates Roman numerals", icon = "roman.png", helpURL="http://gate.ac.uk/userguide/sec:misc-creole:numbers:roman") +@CreoleResource(name = "Roman Numerals Tagger", comment = "Finds and annotates Roman numerals", icon = "Roman", helpURL="http://gate.ac.uk/userguide/sec:misc-creole:numbers:roman") public class RomanNumeralsTagger extends AbstractLanguageAnalyser { private static final long serialVersionUID = 8568794158677464398L; Deleted: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/numbers.png =================================================================== (Binary files differ) Deleted: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/roman.png =================================================================== (Binary files differ) Added: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Numbers.svg =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Numbers.svg (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Numbers.svg 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,555 @@ +<?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="45" + inkscape:export-xdpi="45" + inkscape:export-filename="C:\Documents and Settings\mark\Desktop\numbers.png" + sodipodi:docname="numbers.svg" + inkscape:version="0.48.0 r9654" + sodipodi:version="0.32" + id="svg249" + height="48.000000px" + width="48.000000px" + inkscape:output_extension="org.inkscape.output.svg.inkscape" + version="1.1"> + <defs + id="defs3"> + <linearGradient + inkscape:collect="always" + id="linearGradient4542"> + <stop + style="stop-color:#000000;stop-opacity:1;" + offset="0" + id="stop4544" /> + <stop + style="stop-color:#000000;stop-opacity:0;" + offset="1" + id="stop4546" /> + </linearGradient> + <linearGradient + id="linearGradient15662"> + <stop + id="stop15664" + offset="0.0000000" + style="stop-color:#ffffff;stop-opacity:1.0000000;" /> + <stop + id="stop15666" + offset="1.0000000" + style="stop-color:#f8f8f8;stop-opacity:1.0000000;" /> + </linearGradient> + <radialGradient + id="aigrd3" + cx="20.8921" + cy="64.5679" + r="5.257" + fx="20.8921" + fy="64.5679" + gradientUnits="userSpaceOnUse"> + <stop + offset="0" + style="stop-color:#F0F0F0" + id="stop15573" /> + <stop + offset="1.0000000" + style="stop-color:#9a9a9a;stop-opacity:1.0000000;" + id="stop15575" /> + </radialGradient> + <radialGradient + id="aigrd2" + cx="20.8921" + cy="114.5684" + r="5.256" + fx="20.8921" + fy="114.5684" + gradientUnits="userSpaceOnUse"> + <stop + offset="0" + style="stop-color:#F0F0F0" + id="stop15566" /> + <stop + offset="1.0000000" + style="stop-color:#9a9a9a;stop-opacity:1.0000000;" + id="stop15568" /> + </radialGradient> + <linearGradient + id="linearGradient269"> + <stop + id="stop270" + offset="0.0000000" + style="stop-color:#a3a3a3;stop-opacity:1.0000000;" /> + <stop + id="stop271" + offset="1.0000000" + style="stop-color:#4c4c4c;stop-opacity:1.0000000;" /> + </linearGradient> + <linearGradient + id="linearGradient259"> + <stop + id="stop260" + offset="0.0000000" + style="stop-color:#fafafa;stop-opacity:1.0000000;" /> + <stop + id="stop261" + offset="1.0000000" + style="stop-color:#bbbbbb;stop-opacity:1.0000000;" /> + </linearGradient> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient269" + id="radialGradient15656" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.968273,0.000000,0.000000,1.032767,3.353553,0.646447)" + cx="8.8244190" + cy="3.7561285" + fx="8.8244190" + fy="3.7561285" + r="37.751713" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient259" + id="radialGradient15658" + gradientUnits="userSpaceOnUse" + gradientTransform="scale(0.960493,1.041132)" + cx="33.966679" + cy="35.736916" + fx="33.966679" + fy="35.736916" + r="86.708450" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient15662" + id="radialGradient15668" + gradientUnits="userSpaceOnUse" + gradientTransform="matrix(0.968273,0.000000,0.000000,1.032767,3.353553,0.646447)" + cx="8.1435566" + cy="7.2678967" + fx="8.1435566" + fy="7.2678967" + r="38.158695" /> + <radialGradient + r="5.256" + fy="114.5684" + fx="20.8921" + cy="114.5684" + cx="20.8921" + gradientTransform="matrix(0.229703,0.000000,0.000000,0.229703,4.613529,3.979808)" + gradientUnits="userSpaceOnUse" + id="radialGradient2283" + xlink:href="#aigrd2" + inkscape:collect="always" /> + <radialGradient + r="5.257" + fy="64.5679" + fx="20.8921" + cy="64.5679" + cx="20.8921" + gradientTransform="matrix(0.229703,0.000000,0.000000,0.229703,4.613529,3.979808)" + gradientUnits="userSpaceOnUse" + id="radialGradient2285" + xlink:href="#aigrd3" + inkscape:collect="always" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient4542" + id="radialGradient4548" + cx="24.306795" + cy="42.07798" + fx="24.306795" + fy="42.07798" + r="15.821514" + gradientTransform="matrix(1.000000,0.000000,0.000000,0.284916,0.000000,30.08928)" + gradientUnits="userSpaceOnUse" /> + <radialGradient + inkscape:collect="always" + xlink:href="#linearGradient5276" + id="radialGradient5286" + cx="26.7071" + cy="32.671871" + fx="26.7071" + fy="32.671871" + r="8.8149414" + gradientTransform="matrix(1,0,0,0.589376,0,13.90851)" + gradientUnits="userSpaceOnUse" /> + <linearGradient + id="linearGradient5276"> + <stop + style="stop-color:#477ec5;stop-opacity:1;" + offset="0" + id="stop5278" /> + <stop + style="stop-color:#2d5890;stop-opacity:1;" + offset="1" + id="stop5280" /> + </linearGradient> + <radialGradient + r="8.8149414" + fy="32.671871" + fx="26.7071" + cy="32.671871" + cx="26.7071" + gradientTransform="matrix(1,0,0,0.589376,50.190764,-42.673796)" + gradientUnits="userSpaceOnUse" + id="radialGradient3057" + xlink:href="#linearGradient5276" + inkscape:collect="always" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5276" + id="linearGradient3828" + x1="-13.280769" + y1="1.3334579" + x2="6.5239182" + y2="1.3334579" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(30.582369,5.833631)" /> + <linearGradient + inkscape:collect="always" + xlink:href="#linearGradient5276" + id="linearGradient3836" + x1="-0.94944549" + y1="20.189972" + x2="18.015398" + y2="20.189972" + gradientUnits="userSpaceOnUse" + gradientTransform="translate(28.405591,-1.0606601)" /> + </defs> + <sodipodi:namedview + inkscape:window-y="-4" + inkscape:window-x="-4" + inkscape:window-height="1066" + inkscape:window-width="2048" + inkscape:document-units="px" + inkscape:grid-bbox="true" + showgrid="false" + inkscape:current-layer="layer5" + inkscape:cy="24.318443" + inkscape:cx="25.938708" + inkscape:zoom="5.6568542" + inkscape:pageshadow="2" + inkscape:pageopacity="0.0" + borderopacity="0.25490196" + bordercolor="#666666" + pagecolor="#ffffff" + id="base" + inkscape:showpageshadow="false" + inkscape:window-maximized="1" /> + <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:title></dc:title> + <dc:subject> + <rdf:Bag> + <rdf:li>text</rdf:li> + <rdf:li>plaintext</rdf:li> + <rdf:li>regular</rdf:li> + <rdf:li>document</rdf:li> + </rdf:Bag> + </dc:subject> + <cc:license + rdf:resource="http://creativecommons.org/licenses/by-sa/2.0/" /> + <dc:creator> + <cc:Agent> + <dc:title>Jakub Steiner</dc:title> + </cc:Agent> + </dc:creator> + <dc:source>http://jimmac.musichall.cz</dc:source> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/by/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 + inkscape:groupmode="layer" + id="layer6" + inkscape:label="Shadow"> + <path + sodipodi:type="arc" + style="opacity:0.7836257;color:#000000;fill:url(#radialGradient4548);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible" + id="path3667" + sodipodi:cx="24.306795" + sodipodi:cy="42.07798" + sodipodi:rx="15.821514" + sodipodi:ry="4.5078058" + d="M 40.128309 42.07798 A 15.821514 4.5078058 0 1 1 8.485281,42.07798 A 15.821514 4.5078058 0 1 1 40.128309 42.07798 z" + transform="translate(0.000000,0.707108)" /> + </g> + <g + style="display:inline" + inkscape:groupmode="layer" + inkscape:label="Base" + id="layer1"> + <rect + style="color:#000000;fill:url(#radialGradient15658);fill-opacity:1.0000000;fill-rule:nonzero;stroke:url(#radialGradient15656);stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15391" + width="34.875000" + height="40.920494" + x="6.6035528" + y="3.6464462" + ry="1.1490486" /> + <rect + style="color:#000000;fill:none;fill-opacity:1.0000000;fill-rule:nonzero;stroke:url(#radialGradient15668);stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:1.0000000;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15660" + width="32.775887" + height="38.946384" + x="7.6660538" + y="4.5839462" + ry="0.14904857" + rx="0.14904857" /> + <g + transform="translate(0.646447,-3.798933e-2)" + id="g2270"> + <g + id="g1440" + style="fill:#ffffff;fill-opacity:1.0000000;fill-rule:nonzero;stroke:#000000;stroke-miterlimit:4.0000000" + transform="matrix(0.229703,0.000000,0.000000,0.229703,4.967081,4.244972)"> + <radialGradient + id="radialGradient1442" + cx="20.892099" + cy="114.56840" + r="5.2560000" + fx="20.892099" + fy="114.56840" + gradientUnits="userSpaceOnUse"> + <stop + offset="0" + style="stop-color:#F0F0F0" + id="stop1444" /> + <stop + offset="1" + style="stop-color:#474747" + id="stop1446" /> + </radialGradient> + <path + style="stroke:none" + d="M 23.428000,113.07000 C 23.428000,115.04300 21.828000,116.64200 19.855000,116.64200 C 17.881000,116.64200 16.282000,115.04200 16.282000,113.07000 C 16.282000,111.09600 17.882000,109.49700 19.855000,109.49700 C 21.828000,109.49700 23.428000,111.09700 23.428000,113.07000 z " + id="path1448" /> + <radialGradient + id="radialGradient1450" + cx="20.892099" + cy="64.567902" + r="5.2570000" + fx="20.892099" + fy="64.567902" + gradientUnits="userSpaceOnUse"> + <stop + offset="0" + style="stop-color:#F0F0F0" + id="stop1452" /> + <stop + offset="1" + style="stop-color:#474747" + id="stop1454" /> + </radialGradient> + <path + style="stroke:none" + d="M 23.428000,63.070000 C 23.428000,65.043000 21.828000,66.643000 19.855000,66.643000 C 17.881000,66.643000 16.282000,65.043000 16.282000,63.070000 C 16.282000,61.096000 17.882000,59.497000 19.855000,59.497000 C 21.828000,59.497000 23.428000,61.097000 23.428000,63.070000 z " + id="path1456" /> + </g> + <path + style="fill:url(#radialGradient2283);fill-rule:nonzero;stroke:none;stroke-miterlimit:4.0000000" + d="M 9.9950109,29.952326 C 9.9950109,30.405530 9.6274861,30.772825 9.1742821,30.772825 C 8.7208483,30.772825 8.3535532,30.405301 8.3535532,29.952326 C 8.3535532,29.498892 8.7210780,29.131597 9.1742821,29.131597 C 9.6274861,29.131597 9.9950109,29.499122 9.9950109,29.952326 z " + id="path15570" /> + <path + style="fill:url(#radialGradient2285);fill-rule:nonzero;stroke:none;stroke-miterlimit:4.0000000" + d="M 9.9950109,18.467176 C 9.9950109,18.920380 9.6274861,19.287905 9.1742821,19.287905 C 8.7208483,19.287905 8.3535532,18.920380 8.3535532,18.467176 C 8.3535532,18.013742 8.7210780,17.646447 9.1742821,17.646447 C 9.6274861,17.646447 9.9950109,18.013972 9.9950109,18.467176 z " + id="path15577" /> + </g> + <path + style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#000000;stroke-width:0.98855311;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:0.017543854" + d="M 11.505723,5.4942766 L 11.505723,43.400869" + id="path15672" + sodipodi:nodetypes="cc" /> + <path + style="fill:none;fill-opacity:0.75000000;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.0000000;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4.0000000;stroke-opacity:0.20467831" + d="M 12.500000,5.0205154 L 12.500000,43.038228" + id="path15674" + sodipodi:nodetypes="cc" /> + </g> + <g + inkscape:groupmode="layer" + id="layer5" + inkscape:label="Text" + style="display:inline"> + <g + transform="matrix(0.909091,0.000000,0.000000,1.000000,2.363628,0.000000)" + id="g2253"> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15686" + width="22.000004" + height="1.0000000" + x="15.000002" + y="9.0000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15688" + width="22.000004" + height="1.0000000" + x="15.000002" + y="11.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15690" + width="22.000004" + height="1.0000000" + x="15.000002" + y="13.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15692" + width="22.000004" + height="1.0000000" + x="15.000002" + y="15.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15694" + width="22.000004" + height="1.0000000" + x="15.000002" + y="17.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15696" + width="22.000004" + height="1.0000000" + x="15.000002" + y="19.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15698" + width="22.000004" + height="1.0000000" + x="15.000002" + y="21.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15700" + width="22.000004" + height="1.0000000" + x="15.000002" + y="23.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15732" + width="9.9000053" + height="1.0000000" + x="14.999992" + y="25.000000" + rx="0.068204239" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15736" + width="22.000004" + height="1.0000000" + x="14.999992" + y="29.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15738" + width="22.000004" + height="1.0000000" + x="14.999992" + y="31.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15740" + width="22.000004" + height="1.0000000" + x="14.999992" + y="33.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15742" + width="22.000004" + height="1.0000000" + x="14.999992" + y="35.000000" + rx="0.15156493" + ry="0.065390877" /> + <rect + style="color:#000000;fill:#9b9b9b;fill-opacity:0.54970759;fill-rule:nonzero;stroke:none;stroke-width:1.0000000;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4.0000000;stroke-dashoffset:0.0000000;stroke-opacity:0.081871338;marker:none;marker-start:none;marker-mid:none;marker-end:none;visibility:visible;display:block;overflow:visible" + id="rect15744" + width="15.400014" + height="1.0000000" + x="14.999992" + y="37.000000" + rx="0.10609552" + ry="0.065390877" /> + </g> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient3828);fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" + x="16.793787" + y="21.483494" + id="text3046" + sodipodi:linespacing="125%"><tspan + sodipodi:role="line" + id="tspan3048" + x="16.793787" + y="21.483494" + style="font-size:16px;font-weight:bold;fill:url(#linearGradient3828);fill-opacity:1;-inkscape-font-specification:Sans Bold">4</tspan></text> + <text + xml:space="preserve" + style="font-size:16px;font-style:normal;font-weight:bold;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:url(#linearGradient3836);fill-opacity:1;stroke:none;font-family:Sans;-inkscape-font-specification:Sans Bold" + x="26.284271" + y="33.504311" + id="text3050" + sodipodi:linespacing="125%"><tspan + sodipodi:role="line" + id="tspan3052" + x="26.284271" + y="33.504311" + style="font-size:16px;font-weight:bold;fill:url(#linearGradient3836);fill-opacity:1;-inkscape-font-specification:Sans Bold">2</tspan></text> + </g> +</svg> Added: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/NumbersIcon.java =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/NumbersIcon.java (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/NumbersIcon.java 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,689 @@ +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 NumbersIcon 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 * 0.7836257f; +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.7071080207824707f)); +// _0_0_0 is ShapeNode +paint = new RadialGradientPaint(new Point2D.Double(24.306795120239258, 42.077980041503906), 15.821514f, new Point2D.Double(24.306795120239258, 42.077980041503906), new float[] {0.0f,1.0f}, new Color[] {new Color(0, 0, 0, 255),new Color(0, 0, 0, 0)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 0.2849160134792328f, 0.0f, 30.089279174804688f)); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(40.128307, 42.07798); +((GeneralPath)shape).curveTo(40.130272, 43.688835, 37.115135, 45.17757, 32.219135, 45.98316); +((GeneralPath)shape).curveTo(27.323137, 46.78875, 21.290451, 46.78875, 16.394451, 45.98316); +((GeneralPath)shape).curveTo(11.498452, 45.17757, 8.483318, 43.688835, 8.485281, 42.07798); +((GeneralPath)shape).curveTo(8.483318, 40.467125, 11.498452, 38.97839, 16.394451, 38.172802); +((GeneralPath)shape).curveTo(21.290451, 37.36721, 27.323137, 37.36721, 32.219135, 38.172802); +((GeneralPath)shape).curveTo(37.115135, 38.97839, 40.130272, 40.467125, 40.128307, 42.07798); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +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); +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(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _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 RadialGradientPaint(new Point2D.Double(33.966678619384766, 35.736915588378906), 86.70845f, new Point2D.Double(33.966678619384766, 35.736915588378906), new float[] {0.0f,1.0f}, new Color[] {new Color(250, 250, 250, 255),new Color(187, 187, 187, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.9604930281639099f, 0.0f, 0.0f, 1.0411319732666016f, 0.0f, 0.0f)); +shape = new RoundRectangle2D.Double(6.60355281829834, 3.6464462280273438, 34.875, 40.920494079589844, 2.2980971336364746, 2.2980971336364746); +g.setPaint(paint); +g.fill(shape); +paint = new RadialGradientPaint(new Point2D.Double(8.824419021606445, 3.7561285495758057), 37.751713f, new Point2D.Double(8.824419021606445, 3.7561285495758057), new float[] {0.0f,1.0f}, new Color[] {new Color(163, 163, 163, 255),new Color(76, 76, 76, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.9682729840278625f, 0.0f, 0.0f, 1.0327670574188232f, 3.353553056716919f, 0.6464470028877258f)); +stroke = new BasicStroke(1.0f,1,1,4.0f,null,0.0f); +shape = new RoundRectangle2D.Double(6.60355281829834, 3.6464462280273438, 34.875, 40.920494079589844, 2.2980971336364746, 2.2980971336364746); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(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 RadialGradientPaint(new Point2D.Double(8.143556594848633, 7.26789665222168), 38.158695f, new Point2D.Double(8.143556594848633, 7.26789665222168), new float[] {0.0f,1.0f}, new Color[] {new Color(255, 255, 255, 255),new Color(248, 248, 248, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.9682729840278625f, 0.0f, 0.0f, 1.0327670574188232f, 3.353553056716919f, 0.6464470028877258f)); +stroke = new BasicStroke(1.0f,1,1,4.0f,null,0.0f); +shape = new RoundRectangle2D.Double(7.666053771972656, 4.583946228027344, 32.77588653564453, 38.94638442993164, 0.2980971336364746, 0.2980971336364746); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(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.6464470028877258f, -0.03798932954668999f)); +// _0_1_2 is CompositeGraphicsNode +float alpha__0_1_2_0 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_1_2_0 = g.getClip(); +AffineTransform defaultTransform__0_1_2_0 = g.getTransform(); +g.transform(new AffineTransform(0.22970299422740936f, 0.0f, 0.0f, 0.22970299422740936f, 4.967081069946289f, 4.244972229003906f)); +// _0_1_2_0 is CompositeGraphicsNode +float alpha__0_1_2_0_0 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_1_2_0_0 = g.getClip(); +AffineTransform defaultTransform__0_1_2_0_0 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_1_2_0_0 is ShapeNode +paint = new Color(255, 255, 255, 255); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(23.428, 113.07); +((GeneralPath)shape).curveTo(23.428, 115.043, 21.828, 116.642, 19.855, 116.642); +((GeneralPath)shape).curveTo(17.881, 116.642, 16.282, 115.042, 16.282, 113.07); +((GeneralPath)shape).curveTo(16.282, 111.096, 17.882, 109.497, 19.855, 109.497); +((GeneralPath)shape).curveTo(21.828, 109.497, 23.428, 111.097, 23.428, 113.07); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_1_2_0_0; +g.setTransform(defaultTransform__0_1_2_0_0); +g.setClip(clip__0_1_2_0_0); +float alpha__0_1_2_0_1 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_1_2_0_1 = g.getClip(); +AffineTransform defaultTransform__0_1_2_0_1 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_1_2_0_1 is ShapeNode +paint = new Color(255, 255, 255, 255); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(23.428, 63.07); +((GeneralPath)shape).curveTo(23.428, 65.043, 21.828, 66.643, 19.855, 66.643); +((GeneralPath)shape).curveTo(17.881, 66.643, 16.282, 65.043, 16.282, 63.07); +((GeneralPath)shape).curveTo(16.282, 61.096, 17.882, 59.497, 19.855, 59.497); +((GeneralPath)shape).curveTo(21.828, 59.497, 23.428, 61.097, 23.428, 63.07); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_1_2_0_1; +g.setTransform(defaultTransform__0_1_2_0_1); +g.setClip(clip__0_1_2_0_1); +origAlpha = alpha__0_1_2_0; +g.setTransform(defaultTransform__0_1_2_0); +g.setClip(clip__0_1_2_0); +float alpha__0_1_2_1 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_1_2_1 = g.getClip(); +AffineTransform defaultTransform__0_1_2_1 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_1_2_1 is ShapeNode +paint = new RadialGradientPaint(new Point2D.Double(20.892099380493164, 114.56839752197266), 5.256f, new Point2D.Double(20.892099380493164, 114.56839752197266), new float[] {0.0f,1.0f}, new Color[] {new Color(240, 240, 240, 255),new Color(154, 154, 154, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.22970299422740936f, 0.0f, 0.0f, 0.22970299422740936f, 4.613529205322266f, 3.9798080921173096f)); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(9.995011, 29.952326); +((GeneralPath)shape).curveTo(9.995011, 30.40553, 9.627486, 30.772825, 9.174282, 30.772825); +((GeneralPath)shape).curveTo(8.720848, 30.772825, 8.353554, 30.4053, 8.353554, 29.952326); +((GeneralPath)shape).curveTo(8.353554, 29.498892, 8.721078, 29.131598, 9.174282, 29.131598); +((GeneralPath)shape).curveTo(9.627486, 29.131598, 9.995011, 29.499123, 9.995011, 29.952326); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_1_2_1; +g.setTransform(defaultTransform__0_1_2_1); +g.setClip(clip__0_1_2_1); +float alpha__0_1_2_2 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_1_2_2 = g.getClip(); +AffineTransform defaultTransform__0_1_2_2 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_1_2_2 is ShapeNode +paint = new RadialGradientPaint(new Point2D.Double(20.892099380493164, 64.56790161132812), 5.257f, new Point2D.Double(20.892099380493164, 64.56790161132812), new float[] {0.0f,1.0f}, new Color[] {new Color(240, 240, 240, 255),new Color(154, 154, 154, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(0.22970299422740936f, 0.0f, 0.0f, 0.22970299422740936f, 4.613529205322266f, 3.9798080921173096f)); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(9.995011, 18.467176); +((GeneralPath)shape).curveTo(9.995011, 18.92038, 9.627486, 19.287905, 9.174282, 19.287905); +((GeneralPath)shape).curveTo(8.720848, 19.287905, 8.353554, 18.92038, 8.353554, 18.467176); +((GeneralPath)shape).curveTo(8.353554, 18.013742, 8.721078, 17.646446, 9.174282, 17.646446); +((GeneralPath)shape).curveTo(9.627486, 17.646446, 9.995011, 18.013971, 9.995011, 18.467176); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_1_2_2; +g.setTransform(defaultTransform__0_1_2_2); +g.setClip(clip__0_1_2_2); +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(0, 0, 0, 4); +stroke = new BasicStroke(0.9885531f,0,0,4.0f,null,0.0f); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(11.505723, 5.4942765); +((GeneralPath)shape).lineTo(11.505723, 43.400867); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(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, 255, 255, 52); +stroke = new BasicStroke(1.0f,0,0,4.0f,null,0.0f); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(12.5, 5.0205154); +((GeneralPath)shape).lineTo(12.5, 43.038227); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(shape); +origAlpha = alpha__0_1_4; +g.setTransform(defaultTransform__0_1_4); +g.setClip(clip__0_1_4); +origAlpha = alpha__0_1; +g.setTransform(defaultTransform__0_1); +g.setClip(clip__0_1); +float alpha__0_2 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2 = g.getClip(); +AffineTransform defaultTransform__0_2 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2 is CompositeGraphicsNode +float alpha__0_2_0 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0 = g.getClip(); +AffineTransform defaultTransform__0_2_0 = g.getTransform(); +g.transform(new AffineTransform(0.9090909957885742f, 0.0f, 0.0f, 1.0f, 2.3636279106140137f, 0.0f)); +// _0_2_0 is CompositeGraphicsNode +float alpha__0_2_0_0 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_0 = g.getClip(); +AffineTransform defaultTransform__0_2_0_0 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_0 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 9.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_0; +g.setTransform(defaultTransform__0_2_0_0); +g.setClip(clip__0_2_0_0); +float alpha__0_2_0_1 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_1 = g.getClip(); +AffineTransform defaultTransform__0_2_0_1 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_1 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 11.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_1; +g.setTransform(defaultTransform__0_2_0_1); +g.setClip(clip__0_2_0_1); +float alpha__0_2_0_2 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_2 = g.getClip(); +AffineTransform defaultTransform__0_2_0_2 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_2 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 13.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_2; +g.setTransform(defaultTransform__0_2_0_2); +g.setClip(clip__0_2_0_2); +float alpha__0_2_0_3 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_3 = g.getClip(); +AffineTransform defaultTransform__0_2_0_3 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_3 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 15.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_3; +g.setTransform(defaultTransform__0_2_0_3); +g.setClip(clip__0_2_0_3); +float alpha__0_2_0_4 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_4 = g.getClip(); +AffineTransform defaultTransform__0_2_0_4 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_4 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 17.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_4; +g.setTransform(defaultTransform__0_2_0_4); +g.setClip(clip__0_2_0_4); +float alpha__0_2_0_5 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_5 = g.getClip(); +AffineTransform defaultTransform__0_2_0_5 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_5 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 19.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_5; +g.setTransform(defaultTransform__0_2_0_5); +g.setClip(clip__0_2_0_5); +float alpha__0_2_0_6 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_6 = g.getClip(); +AffineTransform defaultTransform__0_2_0_6 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_6 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 21.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_6; +g.setTransform(defaultTransform__0_2_0_6); +g.setClip(clip__0_2_0_6); +float alpha__0_2_0_7 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_7 = g.getClip(); +AffineTransform defaultTransform__0_2_0_7 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_7 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(15.000001907348633, 23.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_7; +g.setTransform(defaultTransform__0_2_0_7); +g.setClip(clip__0_2_0_7); +float alpha__0_2_0_8 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_8 = g.getClip(); +AffineTransform defaultTransform__0_2_0_8 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_8 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 25.0, 9.900005340576172, 1.0, 0.1364084780216217, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_8; +g.setTransform(defaultTransform__0_2_0_8); +g.setClip(clip__0_2_0_8); +float alpha__0_2_0_9 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_9 = g.getClip(); +AffineTransform defaultTransform__0_2_0_9 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_9 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 29.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_9; +g.setTransform(defaultTransform__0_2_0_9); +g.setClip(clip__0_2_0_9); +float alpha__0_2_0_10 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_10 = g.getClip(); +AffineTransform defaultTransform__0_2_0_10 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_10 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 31.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_10; +g.setTransform(defaultTransform__0_2_0_10); +g.setClip(clip__0_2_0_10); +float alpha__0_2_0_11 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_11 = g.getClip(); +AffineTransform defaultTransform__0_2_0_11 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_11 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 33.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_11; +g.setTransform(defaultTransform__0_2_0_11); +g.setClip(clip__0_2_0_11); +float alpha__0_2_0_12 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_12 = g.getClip(); +AffineTransform defaultTransform__0_2_0_12 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_12 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 35.0, 22.000003814697266, 1.0, 0.3031298518180847, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_12; +g.setTransform(defaultTransform__0_2_0_12); +g.setClip(clip__0_2_0_12); +float alpha__0_2_0_13 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_0_13 = g.getClip(); +AffineTransform defaultTransform__0_2_0_13 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_0_13 is ShapeNode +paint = new Color(155, 155, 155, 140); +shape = new RoundRectangle2D.Double(14.999992370605469, 37.0, 15.40001392364502, 1.0, 0.21219104528427124, 0.13078175485134125); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_0_13; +g.setTransform(defaultTransform__0_2_0_13); +g.setClip(clip__0_2_0_13); +origAlpha = alpha__0_2_0; +g.setTransform(defaultTransform__0_2_0); +g.setClip(clip__0_2_0); +float alpha__0_2_1 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_1 = g.getClip(); +AffineTransform defaultTransform__0_2_1 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_1 is TextNode of '4' +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(22.684412, 12.295994); +((GeneralPath)shape).lineTo(19.387537, 17.176203); +((GeneralPath)shape).lineTo(22.684412, 17.176203); +((GeneralPath)shape).lineTo(22.684412, 12.295994); +((GeneralPath)shape).closePath(); +((GeneralPath)shape).moveTo(22.184412, 9.816827); +((GeneralPath)shape).lineTo(25.528162, 9.816827); +((GeneralPath)shape).lineTo(25.528162, 17.176203); +((GeneralPath)shape).lineTo(27.194828, 17.176203); +((GeneralPath)shape).lineTo(27.194828, 19.358494); +((GeneralPath)shape).lineTo(25.528162, 19.358494); +((GeneralPath)shape).lineTo(25.528162, 21.483494); +((GeneralPath)shape).lineTo(22.684412, 21.483494); +((GeneralPath)shape).lineTo(22.684412, 19.358494); +((GeneralPath)shape).lineTo(17.512537, 19.358494); +((GeneralPath)shape).lineTo(17.512537, 16.780369); +((GeneralPath)shape).lineTo(22.184412, 9.816827); +((GeneralPath)shape).closePath(); +paint = new LinearGradientPaint(new Point2D.Double(-13.280769348144531, 1.3334579467773438), new Point2D.Double(6.523918151855469, 1.3334579467773438), new float[] {0.0f,1.0f}, new Color[] {new Color(71, 126, 197, 255),new Color(45, 88, 144, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 30.582368850708008f, 5.8336310386657715f)); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_1; +g.setTransform(defaultTransform__0_2_1); +g.setClip(clip__0_2_1); +float alpha__0_2_2 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2_2 = g.getClip(); +AffineTransform defaultTransform__0_2_2 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2_2 is TextNode of '2' +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(30.893646, 31.29077); +((GeneralPath)shape).lineTo(36.029064, 31.29077); +((GeneralPath)shape).lineTo(36.029064, 33.50431); +((GeneralPath)shape).lineTo(27.549896, 33.50431); +((GeneralPath)shape).lineTo(27.549896, 31.29077); +((GeneralPath)shape).lineTo(31.810312, 27.53556); +((GeneralPath)shape).quadTo(32.37802, 27.019936, 32.65146, 26.527748); +((GeneralPath)shape).quadTo(32.924896, 26.03556, 32.924896, 25.50431); +((GeneralPath)shape).quadTo(32.924896, 24.681395, 32.375416, 24.181395); +((GeneralPath)shape).quadTo(31.825937, 23.681395, 30.909271, 23.681395); +((GeneralPath)shape).quadTo(30.206146, 23.681395, 29.370209, 23.983477); +((GeneralPath)shape).quadTo(28.534271, 24.28556, 27.581146, 24.87931); +((GeneralPath)shape).lineTo(27.581146, 22.31681); +((GeneralPath)shape).quadTo(28.596771, 21.978268, 29.588959, 21.80379); +((GeneralPath)shape).quadTo(30.581146, 21.62931, 31.534271, 21.62931); +((GeneralPath)shape).quadTo(33.62802, 21.62931, 34.78948, 22.551186); +((GeneralPath)shape).quadTo(35.95094, 23.47306, 35.95094, 25.118895); +((GeneralPath)shape).quadTo(35.95094, 26.07202, 35.45875, 26.89754); +((GeneralPath)shape).quadTo(34.966564, 27.72306, 33.38844, 29.10327); +((GeneralPath)shape).lineTo(30.893646, 31.29077); +((GeneralPath)shape).closePath(); +paint = new LinearGradientPaint(new Point2D.Double(-0.9494454860687256, 20.189971923828125), new Point2D.Double(18.015398025512695, 20.189971923828125), new float[] {0.0f,1.0f}, new Color[] {new Color(71, 126, 197, 255),new Color(45, 88, 144, 255)}, MultipleGradientPaint.CycleMethod.NO_CYCLE, MultipleGradientPaint.ColorSpaceType.SRGB, new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 28.405590057373047f, -1.0606601238250732f)); +g.setPaint(paint); +g.fill(shape); +origAlpha = alpha__0_2_2; +g.setTransform(defaultTransform__0_2_2); +g.setClip(clip__0_2_2); +origAlpha = alpha__0_2; +g.setTransform(defaultTransform__0_2); +g.setClip(clip__0_2); +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 7; + } + + /** + * 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 4; + } + + /** + * 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 NumbersIcon() { + this.width = getOrigWidth(); + this.height = getOrigHeight(); + } + + /** + * Creates a new transcoded SVG image with the given dimensions. + * + * @param size the dimensions of the icon + */ + public NumbersIcon(Dimension size) { + this.width = size.width; + this.height = size.width; + } + + public NumbersIcon(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(); + } +} + Added: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Roman.svg =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Roman.svg (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/Roman.svg 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,74 @@ +<?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" + version="1.0" + width="48" + height="48" + id="svg14662"> + <defs + id="defs8" /> + <metadata + id="metadata87"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <cc:license + rdf:resource="http://creativecommons.org/licenses/GPL/2.0/" /> + <dc:title></dc:title> + <dc:creator> + <cc:Agent> + <dc:title>STyx</dc:title> + </cc:Agent> + </dc:creator> + <dc:source>Nuvola_apps_edu_languages.svg</dc:source> + <dc:subject> + <rdf:Bag> + <rdf:li>User</rdf:li> + <rdf:li>Utilisateur</rdf:li> + <rdf:li>namespace</rdf:li> + </rdf:Bag> + </dc:subject> + <dc:date /> + <dc:rights> + <cc:Agent> + <dc:title>GFDL</dc:title> + </cc:Agent> + </dc:rights> + </cc:Work> + <cc:License + rdf:about="http://creativecommons.org/licenses/GPL/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:permits + rdf:resource="http://web.resource.org/cc/DerivativeWorks" /> + <cc:requires + rdf:resource="http://web.resource.org/cc/ShareAlike" /> + <cc:requires + rdf:resource="http://web.resource.org/cc/SourceCode" /> + </cc:License> + </rdf:RDF> + </metadata> + <path + style="fill:#b28700;fill-opacity:1;fill-rule:evenodd;stroke:#513a00;stroke-width:1.03030097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="m 14.004353,40.490518 6.970099,1.023745 0.06391,-3.940875 c -6.166726,-6.359303 2.271357,-9.199751 3.51623,-3.925675 l 1.987701,3.158578 c 1.138602,10.473143 8.478884,7.636255 13.07982,10.678558 C 34.053042,40.826728 34.13345,37.5243 34.667544,34.49135 L 33.070993,32.35857 C 29.253564,30.88158 30.689197,29.928231 30.464358,28.809366 L 40.739653,28.02449 C 39.273912,12.492345 12.695622,14.150248 16.379602,33.161735 c 0.744275,2.596042 -0.533597,4.990515 -2.375249,7.328783 z" + id="path3293" /> + <path + style="fill:#b28700;fill-opacity:1;fill-rule:evenodd;stroke:#513a00;stroke-width:1.03030097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="m 32.778059,15.519646 1.629356,-2.672495 C 25.544097,9.8368245 12.681151,13.728216 11.774175,26.390195 l 2.474263,-0.116547 c 1.045329,-5.978746 6.125913,-13.718019 18.529621,-10.754002 z" + id="path3295" /> + <path + style="fill:#b21800;fill-opacity:1;fill-rule:evenodd;stroke:#7d0000;stroke-width:1.03030097;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" + d="M 36.053355,10.903268 C 39.589711,5.6783069 38.169193,6.4846075 42.492774,2.2583293 40.010356,1.0065198 36.321552,0.79409461 33.983399,0.66138688 33.416561,0.6292144 32.526116,4.9149367 32.302679,4.9517227 32.029368,4.9967193 32.436655,0.63638339 32.036534,0.60127569 29.623491,0.38954846 26.338046,0.57699035 24.888652,1.0668958 24.614411,2.2305372 24.248641,2.7274086 24.141516,3.459223 24.06976,3.9494173 23.792658,1.7290595 23.372667,1.475752 11.616171,5.0484508 4.7726589,12.445828 4.5151505,26.284179 5.9985943,25.769044 8.0071427,26.861627 9.6596176,26.1352 10.047806,20.531033 15.121656,5.9727467 36.053355,10.903268 z" + id="path3297" /> +</svg> Added: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/RomanIcon.java =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/RomanIcon.java (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/java/gate/resources/img/svg/RomanIcon.java 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,314 @@ +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 RomanIcon 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 ShapeNode +paint = new Color(178, 135, 0, 255); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(14.004353, 40.490517); +((GeneralPath)shape).lineTo(20.974451, 41.514263); +((GeneralPath)shape).lineTo(21.03836, 37.573387); +((GeneralPath)shape).curveTo(14.8716345, 31.214085, 23.309717, 28.373636, 24.55459, 33.647713); +((GeneralPath)shape).lineTo(26.542292, 36.80629); +((GeneralPath)shape).curveTo(27.680893, 47.279434, 35.021175, 44.442543, 39.622112, 47.484848); +((GeneralPath)shape).curveTo(34.053043, 40.82673, 34.13345, 37.5243, 34.667545, 34.49135); +((GeneralPath)shape).lineTo(33.07099, 32.35857); +((GeneralPath)shape).curveTo(29.253565, 30.88158, 30.689198, 29.92823, 30.464357, 28.809366); +((GeneralPath)shape).lineTo(40.739655, 28.02449); +((GeneralPath)shape).curveTo(39.27391, 12.492345, 12.695622, 14.150248, 16.379602, 33.161736); +((GeneralPath)shape).curveTo(17.123877, 35.75778, 15.846005, 38.152252, 14.004354, 40.490517); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +paint = new Color(81, 58, 0, 255); +stroke = new BasicStroke(1.030301f,0,0,4.0f,null,0.0f); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(14.004353, 40.490517); +((GeneralPath)shape).lineTo(20.974451, 41.514263); +((GeneralPath)shape).lineTo(21.03836, 37.573387); +((GeneralPath)shape).curveTo(14.8716345, 31.214085, 23.309717, 28.373636, 24.55459, 33.647713); +((GeneralPath)shape).lineTo(26.542292, 36.80629); +((GeneralPath)shape).curveTo(27.680893, 47.279434, 35.021175, 44.442543, 39.622112, 47.484848); +((GeneralPath)shape).curveTo(34.053043, 40.82673, 34.13345, 37.5243, 34.667545, 34.49135); +((GeneralPath)shape).lineTo(33.07099, 32.35857); +((GeneralPath)shape).curveTo(29.253565, 30.88158, 30.689198, 29.92823, 30.464357, 28.809366); +((GeneralPath)shape).lineTo(40.739655, 28.02449); +((GeneralPath)shape).curveTo(39.27391, 12.492345, 12.695622, 14.150248, 16.379602, 33.161736); +((GeneralPath)shape).curveTo(17.123877, 35.75778, 15.846005, 38.152252, 14.004354, 40.490517); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(shape); +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(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_1 is ShapeNode +paint = new Color(178, 135, 0, 255); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(32.778057, 15.519646); +((GeneralPath)shape).lineTo(34.407413, 12.847151); +((GeneralPath)shape).curveTo(25.544098, 9.836824, 12.681151, 13.728216, 11.774175, 26.390196); +((GeneralPath)shape).lineTo(14.248438, 26.27365); +((GeneralPath)shape).curveTo(15.293767, 20.294903, 20.374352, 12.555631, 32.77806, 15.519648); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +paint = new Color(81, 58, 0, 255); +stroke = new BasicStroke(1.030301f,0,0,4.0f,null,0.0f); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(32.778057, 15.519646); +((GeneralPath)shape).lineTo(34.407413, 12.847151); +((GeneralPath)shape).curveTo(25.544098, 9.836824, 12.681151, 13.728216, 11.774175, 26.390196); +((GeneralPath)shape).lineTo(14.248438, 26.27365); +((GeneralPath)shape).curveTo(15.293767, 20.294903, 20.374352, 12.555631, 32.77806, 15.519648); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(shape); +origAlpha = alpha__0_1; +g.setTransform(defaultTransform__0_1); +g.setClip(clip__0_1); +float alpha__0_2 = origAlpha; +origAlpha = origAlpha * 1.0f; +g.setComposite(AlphaComposite.getInstance(3, origAlpha)); +Shape clip__0_2 = g.getClip(); +AffineTransform defaultTransform__0_2 = g.getTransform(); +g.transform(new AffineTransform(1.0f, 0.0f, 0.0f, 1.0f, 0.0f, 0.0f)); +// _0_2 is ShapeNode +paint = new Color(178, 24, 0, 255); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(36.053356, 10.903268); +((GeneralPath)shape).curveTo(39.58971, 5.678307, 38.169193, 6.4846077, 42.492775, 2.2583294); +((GeneralPath)shape).curveTo(40.010357, 1.0065198, 36.321552, 0.7940946, 33.9834, 0.6613869); +((GeneralPath)shape).curveTo(33.41656, 0.6292144, 32.526115, 4.9149365, 32.302677, 4.9517226); +((GeneralPath)shape).curveTo(32.02937, 4.9967194, 32.436653, 0.6363834, 32.036533, 0.6012757); +((GeneralPath)shape).curveTo(29.623491, 0.38954845, 26.338045, 0.57699037, 24.888653, 1.0668958); +((GeneralPath)shape).curveTo(24.61441, 2.2305372, 24.24864, 2.7274086, 24.141516, 3.459223); +((GeneralPath)shape).curveTo(24.06976, 3.9494174, 23.792658, 1.7290595, 23.372667, 1.475752); +((GeneralPath)shape).curveTo(11.616171, 5.048451, 4.772659, 12.445828, 4.5151505, 26.28418); +((GeneralPath)shape).curveTo(5.9985943, 25.769045, 8.007143, 26.861628, 9.659617, 26.1352); +((GeneralPath)shape).curveTo(10.047806, 20.531033, 15.121656, 5.972747, 36.053356, 10.903268); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.fill(shape); +paint = new Color(125, 0, 0, 255); +stroke = new BasicStroke(1.030301f,0,0,4.0f,null,0.0f); +shape = new GeneralPath(); +((GeneralPath)shape).moveTo(36.053356, 10.903268); +((GeneralPath)shape).curveTo(39.58971, 5.678307, 38.169193, 6.4846077, 42.492775, 2.2583294); +((GeneralPath)shape).curveTo(40.010357, 1.0065198, 36.321552, 0.7940946, 33.9834, 0.6613869); +((GeneralPath)shape).curveTo(33.41656, 0.6292144, 32.526115, 4.9149365, 32.302677, 4.9517226); +((GeneralPath)shape).curveTo(32.02937, 4.9967194, 32.436653, 0.6363834, 32.036533, 0.6012757); +((GeneralPath)shape).curveTo(29.623491, 0.38954845, 26.338045, 0.57699037, 24.888653, 1.0668958); +((GeneralPath)shape).curveTo(24.61441, 2.2305372, 24.24864, 2.7274086, 24.141516, 3.459223); +((GeneralPath)shape).curveTo(24.06976, 3.9494174, 23.792658, 1.7290595, 23.372667, 1.475752); +((GeneralPath)shape).curveTo(11.616171, 5.048451, 4.772659, 12.445828, 4.5151505, 26.28418); +((GeneralPath)shape).curveTo(5.9985943, 25.769045, 8.007143, 26.861628, 9.659617, 26.1352); +((GeneralPath)shape).curveTo(10.047806, 20.531033, 15.121656, 5.972747, 36.053356, 10.903268); +((GeneralPath)shape).closePath(); +g.setPaint(paint); +g.setStroke(stroke); +g.draw(shape); +origAlpha = alpha__0_2; +g.setTransform(defaultTransform__0_2); +g.setClip(clip__0_2); +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 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 RomanIcon() { + this.width = getOrigWidth(); + this.height = getOrigHeight(); + } + + /** + * Creates a new transcoded SVG image with the given dimensions. + * + * @param size the dimensions of the icon + */ + public RomanIcon(Dimension size) { + this.width = size.width; + this.height = size.width; + } + + public RomanIcon(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(); + } +} + Copied: gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/creole.xml (from rev 19532, gate/branches/sawdust2/plugins/Tagger_Numbers/creole.xml) =================================================================== --- gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/creole.xml (rev 0) +++ gate/branches/sawdust2/plugins/Tagger_Numbers/src/main/resources/creole.xml 2016-08-21 17:01:57 UTC (rev 19533) @@ -0,0 +1,3 @@ +<CREOLE-DIRECTORY> + <REQUIRES GROUP="uk.ac.gate.plugins" ARTIFACT="jape-plus" VERSION="9.0-SNAPSHOT"/> +</CREOLE-DIRECTORY> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ GATE-cvs mailing list GATE-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gate-cvs