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/01/02 11:10:26 UTC

cvs commit: xml-batik/sources/org/apache/batik/refimpl/util JSVGCanvas.java

tkormann    01/01/02 02:10:26

  Modified:    sources/org/apache/batik/refimpl/util JSVGCanvas.java
  Log:
  remove the draw of the docBBox as with a high zoom factor, panning becomes really slow.
  
  Revision  Changes    Path
  1.68      +2 -2      xml-batik/sources/org/apache/batik/refimpl/util/JSVGCanvas.java
  
  Index: JSVGCanvas.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/refimpl/util/JSVGCanvas.java,v
  retrieving revision 1.67
  retrieving revision 1.68
  diff -u -r1.67 -r1.68
  --- JSVGCanvas.java	2000/12/20 15:54:26	1.67
  +++ JSVGCanvas.java	2001/01/02 10:10:26	1.68
  @@ -114,7 +114,7 @@
    *
    * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
    * @author <a href="mailto:cjolif@ilog.fr">Christophe Jolif</a>
  - * @version $Id: JSVGCanvas.java,v 1.67 2000/12/20 15:54:26 billh Exp $
  + * @version $Id: JSVGCanvas.java,v 1.68 2001/01/02 10:10:26 tkormann Exp $
    */
   public class JSVGCanvas
       extends    JComponent
  @@ -976,7 +976,7 @@
           } else if ((panTransform != null) && (docBBox != null)) {
               g2d.setColor(Color.black);
               g2d.setStroke(markerStroke);
  -            g2d.draw(docBBox);
  +            //g2d.draw(docBBox); <!> slow with a high zoom factor !
           }
           if (canvasSpaceHighlightShape != null) {
               g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,