Examples of OMRaster


Examples of com.bbn.openmap.omGraphics.OMRaster

        if (Debug.debugging("dted"))
            Debug.output("--- DTEDCacheManager: getting images: ---");

        for (int nbox = 0; nbox < MAX_NUM_BOXES; nbox++) {
            if (caches[nbox] != null) {
                OMRaster image = caches[nbox].getNextImage();
                while (image != null) {
                    graphics.add(image);
                    image = caches[nbox].getNextImage();
                }
            }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

        if (customGraphicClassName == null) {

            ImageIcon icon = new ImageIcon(object.getGraphicImage());
            int width = icon.getIconWidth();
            int height = icon.getIconHeight();
            graphic = new OMRaster(object.getLatitude(), object.getLongitude(), -width / 2, -height / 2, icon);

            ((OMRaster) graphic).setRotationAngle(object.getBearingInDeg()
                    * Math.PI / 180);

            graphic.setRenderType(OMGraphicConstants.RENDERTYPE_OFFSET);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

                    }
                    pix[(int) (w * j + i)] = val;
                }
            }

            OMRaster omr = new OMRaster((int) x, (int) y, (int) w, (int) h, pix);
            omr.setSelectPaint(OMColor.clear);
            // omr.setSelected(true);
            omr.generate(p);
            return omr;
        }

        return SinkGraphic.getSharedInstance();
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

        if (icon == null)
            return null;

        int offX = icon.getIconWidth() / 2;
        int offY = icon.getIconHeight() / 2;
        return new OMRaster(lat, lon, -offX, -offY, icon);
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

        if (icon == null)
            return null;

        int offX = icon.getIconWidth() / 2;
        int offY = icon.getIconHeight() / 2;
        return new OMRaster(x - offX, y - offY, icon);
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

        if (icon == null)
            return null;

        int offX = icon.getIconWidth() / 2;
        int offY = icon.getIconHeight() / 2;
        return new OMRaster(lat, lon, x - offX, y - offY, icon);
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

     * Given a new latitude/longitude, reposition the graphic and
     * label.
     */
    public void setGraphicLocations(float latitude, float longitude) {
        if (location instanceof OMRaster) {
            OMRaster ras = (OMRaster) location;
            ras.setLat(latitude);
            ras.setLon(longitude);

            label.setLat(latitude);
            label.setLon(longitude);
            setHorizontalLabelBuffer((((OMRaster) location).getWidth() / 2)
                    + SPACING);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

     * Given a new x/y screen location, reposition the graphic and
     * label.
     */
    public void setGraphicLocations(int x, int y) {
        if (location instanceof OMRaster) {
            OMRaster ras = (OMRaster) location;
            ras.setX(x);
            ras.setY(y);

            label.setX(x);
            label.setY(y);
            setHorizontalLabelBuffer((((OMRaster) location).getWidth() / 2)
                    + SPACING);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

     * reposition the graphic and label.
     */
    public void setGraphicLocations(float latitude, float longitude,
                                    int offsetX, int offsetY) {
        if (location instanceof OMRaster) {
            OMRaster ras = (OMRaster) location;
            ras.setLat(latitude);
            ras.setLon(longitude);
            ras.setX(offsetX);
            ras.setY(offsetY);

            label.setLat(latitude);
            label.setLon(longitude);
            label.setX(offsetX);
            label.setY(offsetY);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMRaster

            if (Debug.debugging("cis")){
                Debug.output("CorbaImagePlugIn: got image data length " +
                             imageData.length);
            }
            ImageIcon ii = new ImageIcon(imageData);
            OMRaster image = new OMRaster((int)0, (int)0, ii);
            list.add(image);

        } catch (org.omg.CORBA.SystemException e){
            handleCORBAError(e);
            server = null;
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.