Examples of FPolygon


Examples of bnGUI.venn.geometry.FPolygon

                    pt.x = 80;
                    pt.y = 70;
                   
                    FPoint off= itrans.inverseTransform(pt);
                   
                    FPolygon p = ((VennPolygonObject)node.vennObject).getPolygon();
                    if (p != null)
                    {
                          p.translate(off);
                        node.vennObject.directPaint( g, itrans );
                    }
                    }
                }
            }
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon

    /* (non-Javadoc)
     * @see venn.IVennObject#contains(venn.geometry.FPoint)
     */
    public boolean contains(FPoint p)
    {      
        FPolygon poly = getPolygon();
        if( poly == null )
            return false;
        return poly.contains( p );
    }
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon

     */
    public void directPaint(Graphics g, ITransformer t)
    {
        if( isEmpty() || t == null )
            return;
        FPolygon poly = getPolygon();
        if( (poly != null) && (poly.getSize() > 0 ) )
        {
            Polygon p = poly.transform(t);
           
            g.setColor( getFillColor() );
            g.fillPolygon(p);
           
            g.setColor( getBorderColor() );
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon

    {
        Assert.assertNotNull( obj );
       
        VennPolygonObject other = (VennPolygonObject)obj;
       
        FPolygon    poly = null;
       
        if( getPolygon() != null && other.getPolygon() != null )
        {
            poly = getPolygon().intersect(other.getPolygon());
        }
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon

    /* (non-Javadoc)
     * @see venn.IVennObject#area()
     */
    public double area()
    {
        FPolygon poly = getPolygon();
        if( poly != null )
            return areaFactor * poly.area();
        else
            return 0.0;
    }
View Full Code Here

Examples of bnGUI.venn.geometry.FPolygon

        return buf.toString();
    }

    public boolean isEmpty()
    {
        FPolygon p = getPolygon();
        return (p==null) || (p.getSize() == 0);
    }
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.