You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by tk...@apache.org on 2001/05/16 19:12:32 UTC

cvs commit: xml-batik/sources/org/apache/batik/bridge SVGTextElementBridge.java

tkormann    01/05/16 10:12:30

  Modified:    sources/org/apache/batik/bridge SVGTextElementBridge.java
  Log:
  First shot for the thumbnail - pan is now supported
  
  Revision  Changes    Path
  1.23      +7 -14     xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java
  
  Index: SVGTextElementBridge.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGTextElementBridge.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- SVGTextElementBridge.java	2001/05/14 16:44:07	1.22
  +++ SVGTextElementBridge.java	2001/05/16 17:12:22	1.23
  @@ -55,7 +55,7 @@
    * Bridge class for the <text> element.
    *
    * @author <a href="bill.haneman@ireland.sun.com>Bill Haneman</a>
  - * @version $Id: SVGTextElementBridge.java,v 1.22 2001/05/14 16:44:07 tkormann Exp $
  + * @version $Id: SVGTextElementBridge.java,v 1.23 2001/05/16 17:12:22 tkormann Exp $
    */
   public class SVGTextElementBridge extends AbstractSVGBridge
       implements GraphicsNodeBridge, ErrorConstants {
  @@ -174,13 +174,6 @@
           throw new Error("Not implemented");
       }
   
  -    /**
  -     * Creates a <tt>TextNode</tt>.
  -     */
  -    protected GraphicsNode instantiateGraphicsNode() {
  -        return new TextNode();
  -    }
  -
       // -----------------------------------------------------------------------
       // -----------------------------------------------------------------------
       // -----------------------------------------------------------------------
  @@ -516,7 +509,7 @@
                               new Float(Float.NaN), 0, asLength);
   
               if ((x.length > 1) || (isChild)) {
  -                as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.EXPLICIT_LAYOUT, new Boolean(true), 0, asLength);
  +                as.addAttribute(GVTAttributedCharacterIterator.TextAttribute.EXPLICIT_LAYOUT, Boolean.TRUE, 0, asLength);
               }
   
               for (int i=0; i<asLength; ++i) {
  @@ -537,7 +530,7 @@
   
               if ((y.length > 1) || (isChild)) {
                   as.addAttribute
  -                    (GVTAttributedCharacterIterator.TextAttribute.EXPLICIT_LAYOUT, new Boolean(true), 0, asLength);
  +                    (GVTAttributedCharacterIterator.TextAttribute.EXPLICIT_LAYOUT, Boolean.TRUE, 0, asLength);
               }
   
               for (int i=0; i<asLength; ++i) {
  @@ -947,7 +940,7 @@
                          new Float(f));
               result.put(GVTAttributedCharacterIterator.
                          TextAttribute.CUSTOM_SPACING,
  -                       new Boolean(true));
  +                       Boolean.TRUE);
           }
   
           // Word spacing
  @@ -965,7 +958,7 @@
                          new Float(f));
               result.put(GVTAttributedCharacterIterator.
                          TextAttribute.CUSTOM_SPACING,
  -                       new Boolean(true));
  +                       Boolean.TRUE);
           }
   
           // Kerning
  @@ -981,7 +974,7 @@
                          new Float(f));
               result.put(GVTAttributedCharacterIterator.
                          TextAttribute.CUSTOM_SPACING,
  -                       new Boolean(true));
  +                       Boolean.TRUE);
           }
   
           // textLength
  @@ -1004,7 +997,7 @@
                              GVTAttributedCharacterIterator.TextAttribute.ADJUST_SPACING);
                   result.put(GVTAttributedCharacterIterator.
                              TextAttribute.CUSTOM_SPACING,
  -                           new Boolean(true));
  +                           Boolean.TRUE);
               } else {
                   result.put(GVTAttributedCharacterIterator.
                              TextAttribute.LENGTH_ADJUST,
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org