Package com.kitfox.svg

Examples of com.kitfox.svg.SVGRoot.build()


      SVGDiagram diagram = universe.getDiagram( universe.loadSVG( is, name ));
      if ( diagram != null ) {
        SVGRoot root = diagram.getRoot();
        root.setAttribute( "width", AnimationElement.AT_XML, Double.toString( width ));
        root.setAttribute( "height", AnimationElement.AT_XML, Double.toString( height ));
        root.build();  
        diagram.setIgnoringClipHeuristic( true );
        root.render( g2d );
      }
    }
    catch ( Exception ex )
View Full Code Here


        SVGRoot root = diagram.getRoot();
        if (( oldWidth != width ) || ( oldHeight != height )) {
          if ( root != null ) {
            root.setAttribute( "width", AnimationElement.AT_XML, Double.toString( width ));
            root.setAttribute( "height", AnimationElement.AT_XML, Double.toString( height ));
            root.build();  
          //diagram.setDeviceViewport( new Rectangle( 0,0,width, height));
            oldWidth = width;
            oldHeight = height;
          }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.