Package com.bbn.openmap.tools.icon

Examples of com.bbn.openmap.tools.icon.BasicIconPart


        DrawingAttributes yellowDa = new DrawingAttributes();
        yellowDa.setLinePaint(OMColor.yellow);
        yellowDa.setFillPaint(OMColor.yellow);

        IconPart ip = new BasicIconPart(new Rectangle2D.Double(0, 0, 100, 100));
        ip.setRenderingAttributes(invisDa);
        invisibleImage = OMIconFactory.getIcon(buttonSize, buttonSize, ip);

        IconPartList ipl = new IconPartList();

        Polygon triangle = new Polygon(new int[] { 50, 90, 10, 50 }, new int[] {
                10, 90, 90, 10 }, 4);

        BasicIconPart bip = new BasicIconPart(triangle);
        bip.setRenderingAttributes(yellowDa);
        ipl.add(bip);

        bip = new BasicIconPart(triangle);
        bip.setRenderingAttributes(yellowDa);
        ipl.add(bip);
        bip = new BasicIconPart(triangle);
        bip.setRenderingAttributes(blackDa);
        ipl.add(bip);
        bip = new BasicIconPart(new Line2D.Double(49, 35, 49, 65));
        bip.setRenderingAttributes(blackDa);
        ipl.add(bip);
        bip = new BasicIconPart(new Line2D.Double(49, 75, 49, 77));
        bip.setRenderingAttributes(blackDa);
        ipl.add(bip);
        bip = new BasicIconPart(new Line2D.Double(51, 35, 51, 65));
        bip.setRenderingAttributes(blackDa);
        ipl.add(bip);
        bip = new BasicIconPart(new Line2D.Double(51, 75, 51, 77));
        bip.setRenderingAttributes(blackDa);
        ipl.add(bip);
        warningImage = OMIconFactory.getIcon(buttonSize, buttonSize, ipl);

    }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.tools.icon.BasicIconPart

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.