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:[EMAIL PROTECTED]";>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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to