Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.OMText


    static class DTEDLocation {
        OMText text;
        OMRect dot;

        public DTEDLocation(int x, int y) {
            text = new OMText(x + 10, y, (String) null, (java.awt.Font) null, OMText.JUSTIFY_LEFT);

            dot = new OMRect(x - 1, y - 1, x + 1, y + 1);
            text.setLinePaint(java.awt.Color.red);
            dot.setLinePaint(java.awt.Color.red);
        }
View Full Code Here


        }

        // create OMText from internal text representation
        switch (text.rt) {
        case OMGraphic.RENDERTYPE_LATLON:
            omtext = new OMText(text.llpts[0], text.llpts[1], text.data, Font.decode(text.font), text.just);
            break;
        case OMGraphic.RENDERTYPE_XY:
            omtext = new OMText(text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);
            break;
        case OMGraphic.RENDERTYPE_OFFSET:
            omtext = new OMText(text.llpts[0], text.llpts[1], text.xypts[0], text.xypts[1], text.data, Font.decode(text.font), text.just);
            break;
        default:
            System.err.println("ARRRR!");
            break;
        }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.omGraphics.OMText

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.