Package bnGUI.venn.geometry

Examples of bnGUI.venn.geometry.FRectangle


                if( label.getWithConnector() )
                { // draw connection line
                    IntersectionTreeNode node = tree.getByPath(label.getPath());
                    if( node != null && node.vennObject != null && !node.vennObject.isEmpty() )
                    {
                      FRectangle rect = label.getBoundaries(g);
                        Assert.assertNotNull(rect);
                       
                        FSegment seg = new FSegment(node.vennObject.getCenter(),rect.center());
                        Assert.assertNotNull( seg );
                        // Polygon intersection point
                        FPoint a, b;
                        a = ((VennPolygonObject)node.vennObject).getPolygon().intersect(seg);
                        b = rect.toPolygon().intersect(seg);
                       
                       
                       
                        if( (a != null) && (b != null) )
                        {
View Full Code Here


       
        // lower/upper bounds for x,y coordinates
        int idx = 0;
        for( int i=0; i<getNumOfSets(); ++i )
        {
            FRectangle bbox = tree.getArrangement().getVennObjects()[i].getBoundingBox();
            Assert.assertNotNull( bbox );
           
            // x boundaries
            lowerBounds[idx] = bbox.getWidth()/2;
            upperBounds[idx] = 1.0 - bbox.getWidth()/2;
            ++idx;
           
            // y boundaries
            lowerBounds[idx] = bbox.getHeight()/2;
            upperBounds[idx] = 1.0 - bbox.getHeight()/2;
            ++idx;
        }

        // lower/upper bounds for the scale parameters
        for( int i=0; i<getNumOfSets(); ++i )
View Full Code Here

TOP

Related Classes of bnGUI.venn.geometry.FRectangle

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.