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/09/14 11:03:28 UTC

cvs commit: xml-batik/sources/org/apache/batik/swing/svg JSVGComponent.java

tkormann    01/09/14 02:03:28

  Modified:    sources/org/apache/batik/bridge SVGAElementBridge.java
               sources/org/apache/batik/swing/svg JSVGComponent.java
  Log:
  Bug fix: anchor now works.
  
  Revision  Changes    Path
  1.10      +4 -2      xml-batik/sources/org/apache/batik/bridge/SVGAElementBridge.java
  
  Index: SVGAElementBridge.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/bridge/SVGAElementBridge.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- SVGAElementBridge.java	2001/08/03 16:33:42	1.9
  +++ SVGAElementBridge.java	2001/09/14 09:03:28	1.10
  @@ -11,6 +11,7 @@
   import java.awt.Cursor;
   
   import org.apache.batik.css.HiddenChildElementSupport;
  +import org.apache.batik.dom.util.XLinkSupport;
   import org.apache.batik.gvt.CompositeGraphicsNode;
   import org.apache.batik.gvt.GraphicsNode;
   
  @@ -24,7 +25,7 @@
    * Bridge class for the <a> element.
    *
    * @author <a href="mailto:tkormann@apache.org">Thierry Kormann</a>
  - * @version $Id: SVGAElementBridge.java,v 1.9 2001/08/03 16:33:42 vhardy Exp $
  + * @version $Id: SVGAElementBridge.java,v 1.10 2001/09/14 09:03:28 tkormann Exp $
    */
   public class SVGAElementBridge extends AbstractGraphicsNodeBridge {
   
  @@ -134,7 +135,8 @@
               Cursor cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
               userAgent.setSVGCursor(cursor);
               if (elt != null) {
  -                userAgent.displayMessage(elt.getHref().getBaseVal());
  +		String href = XLinkSupport.getXLinkHref(elt);
  +                userAgent.displayMessage(href);
               }
           }
       }
  
  
  
  1.25      +2 -3      xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java
  
  Index: JSVGComponent.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/swing/svg/JSVGComponent.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- JSVGComponent.java	2001/08/03 16:33:42	1.24
  +++ JSVGComponent.java	2001/09/14 09:03:28	1.25
  @@ -152,7 +152,7 @@
    * building/rendering a document (invalid XML file, missing attributes...).</p>
    *
    * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
  - * @version $Id: JSVGComponent.java,v 1.24 2001/08/03 16:33:42 vhardy Exp $
  + * @version $Id: JSVGComponent.java,v 1.25 2001/09/14 09:03:28 tkormann Exp $
    */
   public class JSVGComponent extends JGVTComponent {
   
  @@ -825,8 +825,7 @@
            */
           public void openLink(SVGAElement elt) {
               String show = XLinkSupport.getXLinkShow(elt);
  -            String href = elt.getHref().getBaseVal();
  -
  +            String href = XLinkSupport.getXLinkHref(elt);
               if (show.equals("new")) {
                   fireLinkActivatedEvent(elt, href);
                   if (svgUserAgent != null) {
  
  
  

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