Package net.wigis.graph.dnv.geometry

Examples of net.wigis.graph.dnv.geometry.Rectangle


          Circle c = (Circle)g;
          c.setCenter( (float)( c.getCenter().getX() * xRatio ), (float)( c.getCenter().getY() * yRatio ) );
        }
        else if( g instanceof Rectangle )
        {
          Rectangle r = (Rectangle)g;
          r.setBottomRight( (float)( r.getBottomRight().getX() * xRatio ), (float)( r.getBottomRight().getY() * yRatio ) );
          r.setTopLeft( (float)( r.getTopLeft().getX() * xRatio ), (float)( r.getTopLeft().getY() * yRatio ) );
        }
        else if( g instanceof Line )
        {
          Line l = (Line)g;
          l.setStart( (float)( l.getStart().getX() * xRatio ), (float)( l.getStart().getY() * yRatio ) );
View Full Code Here

TOP

Related Classes of net.wigis.graph.dnv.geometry.Rectangle

Copyright © 2018 www.massapicom. 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.