Examples of OMLine


Examples of com.bbn.openmap.omGraphics.OMLine

        // which calls paint().

        OMGraphicList omList = new OMGraphicList();

        // Add an OMLine
        OMLine line = new OMLine(40f, -75f, 42f, -70f, OMGraphic.LINETYPE_GREATCIRCLE);
        // line.addArrowHead(true);
        line.setStroke(new BasicStroke(2));
        line.putAttribute(OMGraphicConstants.LABEL,
                new OMTextLabeler("Line Label"));

        omList.add(line);

        // Add a list of OMPoints.
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMLine

        OMGraphicList graphics = new OMGraphicList();

        // create OMLine from internal line representation
        switch (line.rt) {
        case OMGraphic.RENDERTYPE_LATLON:
            omline = new OMLine(line.llpts[0], line.llpts[1], line.llpts[2], line.llpts[3], line.type, line.nsegs);
            break;
        case OMGraphic.RENDERTYPE_XY:
            omline = new OMLine(line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);
            break;
        case OMGraphic.RENDERTYPE_OFFSET:
            omline = new OMLine(line.llpts[0], line.llpts[1], line.xypts[0], line.xypts[1], line.xypts[2], line.xypts[3]);
            break;
        default:
            System.err.println("ARRRR!");
            break;
        }
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.