Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Changed SVGRenderer API - now the naming should be more precise

  • Loading branch information...
commit c4d9d16138e63a7dbd7813c7824bf38b1ef90b93 1 parent bed3cb4
@robinsmidsrod authored
Showing with 25 additions and 4 deletions.
  1. +25 −4 src/no/smidsrod/robin/svg/library/SVGRenderer.java
View
29 src/no/smidsrod/robin/svg/library/SVGRenderer.java
@@ -6,20 +6,41 @@
/**
* @author Robin Smidsrød <robin@smidsrod.no>
- *
+ *
*/
public interface SVGRenderer {
/**
+ * The XML namespace used for SVG documents.
+ *
+ * See http://www.w3.org/TR/SVG11/attindex.html, xmlns attribute
+ *
+ */
+ static final String SVG_NAMESPACE = "http://www.w3.org/2000/svg";
+
+ /**
+ * The XML namespace used for internal or external links in SVG documents.
+ *
+ * See http://www.w3.org/TR/SVG11/attindex.html, xmlns:xlink attribute
+ */
+ static final String XLINK_NAMESPACE = "http://www.w3.org/1999/xlink";
+
+ /**
+ * The version of SVG we use. We use the latest released version of the
+ * specification as of April 2010.
+ */
+ static final String SVG_VERSION = "1.1";
+
+ /**
* @param outputStream
* The specified OutputStream instance the SVG XML data should be
* written to.
*/
- public void renderSVG(OutputStream outputStream);
+ public void renderSVGDocument(OutputStream outputStream);
/**
* @return The SVG XML content is returned as one big String
*/
- public String getSVG();
+ public String getSVGDocument();
/**
* @param file
@@ -30,7 +51,7 @@
* some reason this exception will be thrown (see
* FileOutputStream constructor for more info).
*/
- public void storeSVG(File file) throws FileNotFoundException;
+ public void storeSVGDocument(File file) throws FileNotFoundException;
/**
* @param b
Please sign in to comment.
Something went wrong with that request. Please try again.