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 vh...@apache.org on 2002/06/07 19:06:52 UTC

cvs commit: xml-batik/test-sources/org/apache/batik/svggen NegativeLengths.java

vhardy      2002/06/07 10:06:52

  Modified:    test-sources/org/apache/batik/svggen NegativeLengths.java
  Log:
  Added to test to show problem discovered while working on Bug #5347
  
  Revision  Changes    Path
  1.2       +8 -1      xml-batik/test-sources/org/apache/batik/svggen/NegativeLengths.java
  
  Index: NegativeLengths.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/test-sources/org/apache/batik/svggen/NegativeLengths.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- NegativeLengths.java	18 Sep 2001 10:55:55 -0000	1.1
  +++ NegativeLengths.java	7 Jun 2002 17:06:52 -0000	1.2
  @@ -21,7 +21,7 @@
    * The above behavior is that of the default Graphics2D implementations.
    *
    * @author <a href="mailto:vhardy@sun.com">Vincent Hardy</a>
  - * @version $Id: NegativeLengths.java,v 1.1 2001/09/18 10:55:55 vhardy Exp $
  + * @version $Id: NegativeLengths.java,v 1.2 2002/06/07 17:06:52 vhardy Exp $
    */
   public class NegativeLengths implements Painter {
       public void paint(Graphics2D g){
  @@ -255,6 +255,13 @@
   
           g.translate(0, 40);
   
  +        // Clip
  +        rect = new Rectangle(0, 30, 10, -30);
  +        g.setPaint(Color.gray);
  +        g.fill(rect);
  +        g.setPaint(Color.black);
  +        g.clip(rect);
  +        g.drawString("Hello There", 0, 25);
       }
   }
   
  
  
  

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