Index: /applications/editors/josm/plugins/smed2/jicons/build.xml
===================================================================
--- /applications/editors/josm/plugins/smed2/jicons/build.xml	(revision 30395)
+++ /applications/editors/josm/plugins/smed2/jicons/build.xml	(revision 30395)
@@ -0,0 +1,27 @@
+<project name="jicons" default="dist" basedir=".">
+  <property name="src" location="src"/>
+  <property name="build" location="build"/>
+  <property name="dist"  location="dist"/>
+
+  <target name="init">
+    <mkdir dir="${build}"/>
+  </target>
+
+  <target name="compile" depends="init" description="compile the source " >
+    <javac includeantruntime="false" srcdir="${src}" destdir="${build}"/>
+  </target>
+
+  <target name="dist" depends="compile" description="generate the distribution" >
+    <jar jarfile="./jicons.jar" basedir="${build}" >
+      <manifest>
+        <attribute name="Main-Class" value="Jicons"/>
+      </manifest>
+    </jar>
+  </target>
+
+  <target name="clean" description="clean up" >
+    <delete dir="${build}"/>
+    <delete dir="${dist}"/>
+    <delete file="./jicons.jar"/>
+  </target>
+</project>
Index: /applications/editors/josm/plugins/smed2/jicons/src/jicons/Jicons.java
===================================================================
--- /applications/editors/josm/plugins/smed2/jicons/src/jicons/Jicons.java	(revision 30395)
+++ /applications/editors/josm/plugins/smed2/jicons/src/jicons/Jicons.java	(revision 30395)
@@ -0,0 +1,93 @@
+/* Copyright 2014 Malcolm Herring
+ *
+ * This is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, version 3 of the License.
+ *
+ * For a copy of the GNU General Public License, see <http://www.gnu.org/licenses/>.
+ */
+
+package jicons;
+
+import java.io.File;
+import java.io.FileOutputStream;
+import java.io.IOException;
+import java.io.OutputStreamWriter;
+import java.io.Writer;
+import java.util.ArrayList;
+import java.awt.Color;
+import java.awt.Dimension;
+import java.awt.Graphics;
+import java.awt.Graphics2D;
+import java.awt.Panel;
+import java.awt.RenderingHints;
+import java.awt.image.BufferedImage;
+
+import javax.imageio.ImageIO;
+import javax.swing.JFrame;
+
+import org.apache.batik.svggen.SVGGraphics2D;
+import org.apache.batik.svggen.SVGGraphics2DIOException;
+import org.apache.batik.dom.GenericDOMImplementation;
+import org.w3c.dom.Document;
+import org.w3c.dom.DOMImplementation;
+
+import symbols.*;
+import symbols.Symbols.*;
+import render.*;
+
+public class Jicons extends Panel {
+
+	public static void main(String[] args) {
+		BufferedImage img;
+		Graphics2D g2;
+		
+		JFrame frame = new JFrame("Jicons");
+		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
+    Panel panel = new Jicons();
+    frame.getContentPane().add("Center", panel);
+		frame.setSize(256, 256);
+		frame.setVisible(true);
+		
+		img = new BufferedImage(256, 256, BufferedImage.TYPE_INT_ARGB);
+		g2 = img.createGraphics();
+		drawRendering(g2);
+		try {
+			ImageIO.write(img, "png", new File("/Users/mherring/Desktop/export.png"));
+		} catch (Exception e) {
+			System.out.println("Exception");
+		}
+		
+    DOMImplementation domImpl = GenericDOMImplementation.getDOMImplementation();
+    String svgNS = "http://www.w3.org/2000/svg";
+    Document document = domImpl.createDocument(svgNS, "svg", null);
+    SVGGraphics2D svgGenerator = new SVGGraphics2D(document);
+    svgGenerator.setSVGCanvasSize(new Dimension(256, 256));
+		drawRendering(svgGenerator);
+    boolean useCSS = true;
+    Writer out = null;
+			try {
+				out = new OutputStreamWriter(new FileOutputStream("/Users/mherring/Desktop/export.svg"), "UTF-8");
+			} catch (IOException e1) {
+				System.out.println("Exception");
+			}
+    try {
+			svgGenerator.stream(out, useCSS);
+		} catch (SVGGraphics2DIOException e) {
+			System.out.println("Exception");
+		}
+	}
+	
+	public static void drawRendering(Graphics2D g2) {
+		double scale = Renderer.symbolScale[8];
+		g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
+		g2.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_GASP);
+		Scheme scheme = new Scheme(); scheme.pat.add(Patt.H); scheme.col.add(Color.red); scheme.col.add(Color.yellow); scheme.col.add(Color.green);
+		Symbols.drawSymbol(g2, Buoys.Pillar, scale, 128.0, 128.0, scheme, null);
+	}
+	
+	public void paint(Graphics g) {
+		Graphics2D g2 = (Graphics2D)g;
+		drawRendering(g2);
+	}
+}
Index: /applications/editors/josm/plugins/smed2/jicons/src/render
===================================================================
--- /applications/editors/josm/plugins/smed2/jicons/src/render	(revision 30395)
+++ /applications/editors/josm/plugins/smed2/jicons/src/render	(revision 30395)
@@ -0,0 +1,1 @@
+link ../../src/render
Index: /applications/editors/josm/plugins/smed2/jicons/src/s57
===================================================================
--- /applications/editors/josm/plugins/smed2/jicons/src/s57	(revision 30395)
+++ /applications/editors/josm/plugins/smed2/jicons/src/s57	(revision 30395)
@@ -0,0 +1,1 @@
+link ../../src/s57
Index: /applications/editors/josm/plugins/smed2/jicons/src/symbols
===================================================================
--- /applications/editors/josm/plugins/smed2/jicons/src/symbols	(revision 30395)
+++ /applications/editors/josm/plugins/smed2/jicons/src/symbols	(revision 30395)
@@ -0,0 +1,1 @@
+link ../../src/symbols
