You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by de...@apache.org on 2006/03/10 12:42:21 UTC

svn commit: r384770 - in /xmlgraphics/batik/branches/svg11: samples/tests/spec/fonts/fontGlyphsBoth.svg sources/org/apache/batik/bridge/UpdateManager.java sources/org/apache/batik/ext/awt/image/GraphicsUtil.java xdocs/index.xml

Author: deweese
Date: Fri Mar 10 03:42:15 2006
New Revision: 384770

URL: http://svn.apache.org/viewcvs?rev=384770&view=rev
Log:
1) Updates to docs.
   a) Alphabatized projects list.
   b) Added GLIPS Graffiti.
2) Update Manager's MIN_REPAINT time is now adjustable.
3) GraphicsUtil warning about Graphics from BufferedImage
   w/o BUFFERED_IMAGE hint is now controllable with property.

Modified:
    xmlgraphics/batik/branches/svg11/samples/tests/spec/fonts/fontGlyphsBoth.svg
    xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/UpdateManager.java
    xmlgraphics/batik/branches/svg11/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java
    xmlgraphics/batik/branches/svg11/xdocs/index.xml

Modified: xmlgraphics/batik/branches/svg11/samples/tests/spec/fonts/fontGlyphsBoth.svg
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/samples/tests/spec/fonts/fontGlyphsBoth.svg?rev=384770&r1=384769&r2=384770&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/samples/tests/spec/fonts/fontGlyphsBoth.svg (original)
+++ xmlgraphics/batik/branches/svg11/samples/tests/spec/fonts/fontGlyphsBoth.svg Fri Mar 10 03:42:15 2006
@@ -19,24 +19,22 @@
    limitations under the License.
 
 -->
-<!-- ========================================================================= -->
-<!-- Draws <text> elements using SVG fonts with glyphs                         -->
-<!-- using the d attribute. Tests glyph layout by                              -->
-<!-- comparing equivalent SVG for the <text> element, both                     -->
-<!-- on a grid and as a mask.                                                  -->
-<!-- Kerning is also tested.                                                   -->
-<!--                                                                           -->
-<!-- @author dean.jackson@cmis.csiro.au                                        -->
-<!-- @version $Id$ -->
-<!-- ========================================================================= -->
+<!-- ====================================================================== -->
+<!-- Draws <text> elements using SVG fonts with glyphs                      -->
+<!-- using the d attribute. Tests glyph layout by                           -->
+<!-- comparing equivalent SVG for the <text> element, both                  -->
+<!-- on a grid and as a mask.                                               -->
+<!-- Kerning is also tested.                                                -->
+<!--                                                                        -->
+<!-- @author dean.jackson@cmis.csiro.au                                     -->
+<!-- @version $Id$  -->
+<!-- ====================================================================== -->
 <?xml-stylesheet type="text/css" href="../../resources/style/test.css" ?>  
 
-<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="body" width="450" height="500" viewBox="0 0 450 500">
-<title>SVGFont - both glyph types test</title>
-
-    <style type="text/css"><![CDATA[
-        
-    ]]></style>
+<svg id="body" width="450" height="500" viewBox="0 0 450 500"
+     xmlns="http://www.w3.org/2000/svg" 
+     xmlns:xlink="http://www.w3.org/1999/xlink">
+    <title>SVGFont - both glyph types test</title>
 
     <g id="content">
 

Modified: xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/UpdateManager.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/UpdateManager.java?rev=384770&r1=384769&r2=384770&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/UpdateManager.java (original)
+++ xmlgraphics/batik/branches/svg11/sources/org/apache/batik/bridge/UpdateManager.java Fri Mar 10 03:42:15 2006
@@ -46,13 +46,13 @@
  */
 public class UpdateManager  {
 
-    static final long MIN_REPAINT_TIME;
+    static final int MIN_REPAINT_TIME;
     static {
-        long value = 20;
+        int value = 20;
         try {
             String s = System.getProperty
             ("org.apache.batik.min_repaint_time", "20");
-            value = Long.parseLong(s);
+            value = Integer.parseInt(s);
         } catch (SecurityException se) {
         } catch (NumberFormatException nfe){
         } finally {
@@ -121,6 +121,11 @@
     protected boolean started;
 
     /**
+     * The current minRepaintTime
+     */
+    protected int minRepaintTime;
+
+    /**
      * Creates a new update manager.
      * @param ctx The bridge context.
      * @param gn GraphicsNode whose updates are to be tracked.
@@ -141,6 +146,15 @@
         graphicsNode = gn;
 
         scriptingEnvironment = new ScriptingEnvironment(ctx);
+        minRepaintTime = MIN_REPAINT_TIME;
+    }
+
+    public int getMinRepaintTime() {
+        return minRepaintTime;
+    }
+
+    public void setMinRepaintTime(int minRepaintTime) {
+        this.minRepaintTime = minRepaintTime;
     }
 
     /**
@@ -434,7 +448,7 @@
         if (!updateTracker.hasChanged()) 
             return;
         long ctime = System.currentTimeMillis();
-        if (ctime-outOfDateTime < MIN_REPAINT_TIME) {
+        if (ctime-outOfDateTime < minRepaintTime) {
             // We very recently did a repaint check if other 
             // repaint runnables are pending.
             synchronized (updateRunnableQueue.getIteratorLock()) {

Modified: xmlgraphics/batik/branches/svg11/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java?rev=384770&r1=384769&r2=384770&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java (original)
+++ xmlgraphics/batik/branches/svg11/sources/org/apache/batik/ext/awt/image/GraphicsUtil.java Fri Mar 10 03:42:15 2006
@@ -488,7 +488,19 @@
     }
 
 
-    public final static boolean WARN_DESTINATION = true;
+    public final static boolean WARN_DESTINATION;
+    static {
+        boolean warn = true;
+        try {
+            String s = System.getProperty
+                ("org.apache.batik.warn_destination", "true");
+            warn = Boolean.valueOf(s);
+        } catch (SecurityException se) {
+        } catch (NumberFormatException nfe) {
+        } finally {
+            WARN_DESTINATION = warn;
+        }
+    }
 
     public static BufferedImage getDestination(Graphics2D g2d) {
         Object o = g2d.getRenderingHint
@@ -504,7 +516,7 @@
             (g2d.getRenderingHint(RenderingHintsKeyExt.KEY_TRANSCODING) !=
                 RenderingHintsKeyExt.VALUE_TRANSCODING_PRINTING))
             // throw new IllegalArgumentException
-            System.out.println
+            System.err.println
                 ("Graphics2D from BufferedImage lacks BUFFERED_IMAGE hint");
 
         return null;

Modified: xmlgraphics/batik/branches/svg11/xdocs/index.xml
URL: http://svn.apache.org/viewcvs/xmlgraphics/batik/branches/svg11/xdocs/index.xml?rev=384770&r1=384769&r2=384770&view=diff
==============================================================================
--- xmlgraphics/batik/branches/svg11/xdocs/index.xml (original)
+++ xmlgraphics/batik/branches/svg11/xdocs/index.xml Fri Mar 10 03:42:15 2006
@@ -188,36 +188,25 @@
         <p>While it is hard to track projects and products which are using Batik, here are a few
         ones which are known:</p>
         <ul>
-        <li><link href="http://luxor-xul.sourceforge.net/index.html">Luxor XUL</link> is a free, open-source XML User Interface Language (XUL) toolkit in Java released under the GNU
-GPL that supports hand-picked Mozilla XUL goodies and
-also includes a ultra-lightweight, multi-threaded web
-server, a portal engine, a scripting engine, a
-template engine and much more. Gerard Bauer, the Luxor project lead, has written an extensive
-<link href="http://luxor-xul.sourceforge.net/talk/jug-nov-2002/slides.html">SVG presentation</link>.</li>
-        <li><link href="http://www.bitflash.com/products/brilliance.asp">BitFlash Brilliance</link> delivers a robust 
-        set of graphic-design and source-code editing tools for fast and flexible Mobile
-         SVG development. It uses Batik to display SVG Images.</li>
-        <li><link href="http://xml.apache.org/fop">The Apache FOP project</link> uses Batik to handle SVG images. It uses the SVG rasterizer and extends the Batik transcoder 
-            architecture to offer SVG to PDF conversion.</li>
         <li><link href="http://xml.apache.org/cocoon">The Apache Cocoon project</link> uses Batik to rasterize SVG images. </li>
-        <li><link href="http://www.object-refinery.com/jfreechart/index.html">The JFreeChart Project</link> uses Batik to export charts in the SVG format. </li>
-        <li><link href="http://www.ilog.com/products/jviews">ILOG JViews Component Suite</link>, a product for advanced visualization, uses and extends the Batik SVG export module. </li>
+        <li><link href="http://xml.apache.org/fop">The Apache FOP project</link> uses Batik to handle SVG images. It uses the SVG rasterizer and extends the Batik transcoder architecture to offer SVG to PDF conversion.</li>
+        <li><link href="http://www.bitflash.com/products/brilliance.asp">BitFlash Brilliance</link> delivers a robust set of graphic-design and source-code editing tools for fast and flexible Mobile SVG development. It uses Batik to display SVG Images.</li>
+        <li><link href="http://burma.free.fr">eDoc</link>, a page layout software, is using the Batik SVG generator to export pages to SVG</li>
+        <li><link href="http://www.elixirtech.com/ElixirReport">ElixirTech's ElixirReport</link> uses Batik for charting and for its SVG component.</li>
+        <li><link href="http://glipssvgeditor.sourceforge.net/">GLIPS Graffiti</link> is an Open Source Extensible Full Feature Native SVG Editor.</li>        
         <li><link href="http://www2.ilog.com/preview/Discovery/">ILOG Discovery Preview</link>, a free visual data analysis tool letting you visualize and edit data sets in a very wide variety of views (2D graphs and charts, various kinds of treemaps, parallel coordinates, parallel histograms and much more), uses the Batik SVG export module. </li>
-        <li><link href="http://www.kiyut.com/">Sketsa</link> is a vector drawing application based on SVG. With Sketsa, you can create vector graphics that can be scaled and printed at any resolution, without losing detail or clarity.</li>
-        <li><link href="http://otn.oracle.com/products/jdev/content.html">Oracle Corp.'s JDeveloper9i</link> uses Batik to export class diagrams in SVG. It uses the
-        SVG export module (SVGGraphics2D).</li>
+        <li><link href="http://www.ilog.com/products/jviews">ILOG JViews Component Suite</link>, a product for advanced visualization, uses and extends the Batik SVG export module. </li>
+        <li><link href="http://www.object-refinery.com/jfreechart/index.html">The JFreeChart Project</link> uses Batik to export charts in the SVG format. </li>
+        <li><link href="http://lagoon.sourceforge.net/">Lagoon</link>, an XML-based framework for web site maintenance, uses the Batik SVG Rasterizer to render SVG as bitmap graphics for web publishing</li>
+        <li><link href="http://www.throneworld.com/lords/gms/dev.html">Lords Map</link>, a program to allow players and visitors to view the current map of various campaigns. Lord Map uses Batik's SVG DOM and SVG Generator.</li>
+        <li><link href="http://luxor-xul.sourceforge.net/index.html">Luxor XUL</link> is a free, open-source XML User Interface Language (XUL) toolkit in Java released under the GNU GPL that supports hand-picked Mozilla XUL goodies and also includes a ultra-lightweight, multi-threaded web server, a portal engine, a scripting engine, a template engine and much more. Gerard Bauer, the Luxor project lead, has written an extensive <link href="http://luxor-xul.sourceforge.net/talk/jug-nov-2002/slides.html">SVG presentation</link>.</li>
         <li><link href="http://www.optimalj.com">OptimalJ</link>, a UML Class Diagram Editor for NetBeans, uses Batik to export SVG. </li>
+        <li><link href="http://otn.oracle.com/products/jdev/content.html">Oracle Corp.'s JDeveloper9i</link> uses Batik to export class diagrams in SVG. It uses the SVG export module (SVGGraphics2D).</li>
+        <li><link href="http://www.kiyut.com/">Sketsa</link> is a vector drawing application based on SVG. With Sketsa, you can create vector graphics that can be scaled and printed at any resolution, without losing detail or clarity.</li>
+        <li><link href="http://www.isacat.net/2002/svolgo/index.htm">Svolgo</link>,a Graph Visualisation/Transformation Framework for the Semantic Web Cross-model transformation, node and arc diagrams, representation in SVG. This project uses Batik's SVG DOM implementation.</li>
         <li><link href="http://www.togethersoft.com/products/controlcenter/whats_new.jsp">Together Control Center 5.5</link> uses Batik to export UML diagrams in SVG.</li>
-        <li><link href="http://xweb.sf.net">XWeb</link>, a tool to create websites automatically out of XML input. Uses the Batik SVG Rasterizer.</li>
-        <li><link href="http://www.elixirtech.com/ElixirReport">ElixirTech's ElixirReport</link> uses 
-        Batik for charting and for its SVG component.</li>
-        <li><link href="http://lagoon.sourceforge.net/">Lagoon</link>, an XML-based framework for web site maintenance, uses the Batik SVG Rasterizer to render SVG as bitmap graphics for web publishing</li>
-        <li><link href="http://burma.free.fr">eDoc</link>, a page layout software, is using the Batik SVG generator to export pages to SVG</li>
-        <li><link href="http://www.isacat.net/2002/svolgo/index.htm">Svolgo</link>,a Graph Visualisation/Transformation Framework for the
-                Semantic Web Cross-model transformation, node and arc diagrams, representation in SVG. This project uses Batik's SVG DOM implementation.</li>
-        <li><link href="http://www.throneworld.com/lords/gms/dev.html">Lords Map</link>, a program to allow players and visitors to view the current map
-                of various campaigns. Lord Map uses Batik's SVG DOM and SVG Generator.</li>
         <li><link href="http://bitflux.ch/developer/misc/70/">XML_svg2image, </link> is a PHP class which translates svg files to png or jpeg using Batik</li>
+        <li><link href="http://xweb.sf.net">XWeb</link>, a tool to create websites automatically out of XML input. Uses the Batik SVG Rasterizer.</li>
         </ul>
         </s1>
     </body>