Package org.eclipse.draw2d.geometry

Examples of org.eclipse.draw2d.geometry.PointList.addPoint()


    super.paintFigure(g);

    Rectangle r = getClientArea();

    PointList points = new PointList();
    points.addPoint(r.x+20, r.y) ;
    points.addPoint(r.x+ r.width-1, r.y) ;
    points.addPoint(r.x+ r.width - 20, r.y + r.height-1) ;
    points.addPoint(r.x, r.y + r.height-1) ;

    drawAndFillFigureBorder(g, points);
View Full Code Here


    Rectangle r = getClientArea();

    PointList points = new PointList();
    points.addPoint(r.x+20, r.y) ;
    points.addPoint(r.x+ r.width-1, r.y) ;
    points.addPoint(r.x+ r.width - 20, r.y + r.height-1) ;
    points.addPoint(r.x, r.y + r.height-1) ;

    drawAndFillFigureBorder(g, points);
    }
View Full Code Here

    Rectangle r = getClientArea();

    PointList points = new PointList();
    points.addPoint(r.x+20, r.y) ;
    points.addPoint(r.x+ r.width-1, r.y) ;
    points.addPoint(r.x+ r.width - 20, r.y + r.height-1) ;
    points.addPoint(r.x, r.y + r.height-1) ;

    drawAndFillFigureBorder(g, points);
    }
   
View Full Code Here

    PointList points = new PointList();
    points.addPoint(r.x+20, r.y) ;
    points.addPoint(r.x+ r.width-1, r.y) ;
    points.addPoint(r.x+ r.width - 20, r.y + r.height-1) ;
    points.addPoint(r.x, r.y + r.height-1) ;

    drawAndFillFigureBorder(g, points);
    }
   
}
View Full Code Here

    protected void paintUMLFigure(Graphics g, Rectangle r) {
        g.translate(getLocation());
        int halfWidth = Math.round(getSize().width / 2);
        int halfHeight = Math.round(getSize().height / 2);
        PointList points = new PointList(4);
        points.addPoint(halfWidth, 0);
        points.addPoint(getSize().width - 1, halfHeight);
        points.addPoint(halfWidth, getSize().height - 1);
        points.addPoint(0, halfHeight);
        g.drawPolygon(points);
    }
View Full Code Here

        g.translate(getLocation());
        int halfWidth = Math.round(getSize().width / 2);
        int halfHeight = Math.round(getSize().height / 2);
        PointList points = new PointList(4);
        points.addPoint(halfWidth, 0);
        points.addPoint(getSize().width - 1, halfHeight);
        points.addPoint(halfWidth, getSize().height - 1);
        points.addPoint(0, halfHeight);
        g.drawPolygon(points);
    }
View Full Code Here

        int halfWidth = Math.round(getSize().width / 2);
        int halfHeight = Math.round(getSize().height / 2);
        PointList points = new PointList(4);
        points.addPoint(halfWidth, 0);
        points.addPoint(getSize().width - 1, halfHeight);
        points.addPoint(halfWidth, getSize().height - 1);
        points.addPoint(0, halfHeight);
        g.drawPolygon(points);
    }

}
View Full Code Here

        int halfHeight = Math.round(getSize().height / 2);
        PointList points = new PointList(4);
        points.addPoint(halfWidth, 0);
        points.addPoint(getSize().width - 1, halfHeight);
        points.addPoint(halfWidth, getSize().height - 1);
        points.addPoint(0, halfHeight);
        g.drawPolygon(points);
    }

}
View Full Code Here

            conn.translateToAbsolute(ref2);
        }

        A_POINT.setLocation(conn.getSourceAnchor().getLocation(ref1));
        conn.translateToRelative(A_POINT);
        points.addPoint(A_POINT);

        for (int i = 0; i < bendpoints.size(); i++) {
            Bendpoint bp = bendpoints.get(i);
            points.addPoint(bp.getLocation());
        }
View Full Code Here

        conn.translateToRelative(A_POINT);
        points.addPoint(A_POINT);

        for (int i = 0; i < bendpoints.size(); i++) {
            Bendpoint bp = bendpoints.get(i);
            points.addPoint(bp.getLocation());
        }

        A_POINT.setLocation(conn.getTargetAnchor().getLocation(ref2));
        conn.translateToRelative(A_POINT);
        points.addPoint(A_POINT);
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.