Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.OMGraphic


    protected OMGraphicList loadListFromHandler(OMGraphicList graphics) {
        if (graphics == null) {
            graphics = new OMGraphicList();
        }

        OMGraphic image = getNextImage();

        while (image != null) {
            graphics.add(image);
            image = getNextImage();
        }
View Full Code Here


                if (Debug.debugging("dted")) {
                    Debug.output(" gni: Getting new frame Lat = " + frameLat
                            + " Lon = " + frameLon);
                }

                OMGraphic omg = get(frameLat, frameLon, dtedLevel);
                if (omg != null) {
                    return omg;
                }
            }
        }
View Full Code Here

                    + " not instance of SimpleBeanContainer");
        }

        SimpleBeanContainer bc = (SimpleBeanContainer) object;

        OMGraphic graphic = super.getOMGraphicAt(0);

        if (graphic instanceof OMRect) {

            OMRect rect = (OMRect) graphic;
View Full Code Here

        DrawingAttributesUtility dau = new DrawingAttributesUtility(model);
        dau.setDefaultAttributes(defaultDA);
        Iterator graphics = list.iterator();
        int index = 0;
        while (graphics.hasNext()) {
            OMGraphic graphic = (OMGraphic) graphics.next();
            dau.setDrawingAttributes(graphic, index++);
        }
    }
View Full Code Here

            HashSet set = new HashSet();
            Iterator it = ((OMGraphicList) graphic).iterator();

            while (it.hasNext()) {
                OMGraphic subgraphic = (OMGraphic) it.next();
                Debug.message("3detail",
                        "OMGraphicUtil.createShape3D():  recursivly adding list...");
                Iterator iterator = createShape3D(subgraphic, baselineHeight);
                while (iterator.hasNext()) {
                    set.add(iterator.next());
View Full Code Here

     */
    public void deselect(OMGraphicList list) {
        if (list != null) {
            Iterator it = list.iterator();
            while (it.hasNext() && selectedList != null) {
                OMGraphic omg = (OMGraphic) it.next();
                if (omg instanceof OMGraphicList
                        && !((OMGraphicList) omg).isVague()) {
                    deselect((OMGraphicList) omg);
                } else {
                    selectedList.remove(omg);
View Full Code Here

        int endX = startX + (int) rect.getWidth();
        int endY = startY + (int) rect.getHeight();

        for (int x = startX; x < endX; x++) {
            for (int y = startY; y < endY; y++) {
                OMGraphic omg = (OMGraphic) get(new String(x + "," + y).intern());
                if (omg != null) {
                    omg.generate(proj);
                    list.add(omg);
                }
            }
        }
View Full Code Here

                Debug.output("Getting tiled image " + x + ", " + y + " (from "
                        + xAndY + ")");
            }

            try {
                OMGraphic block = getBlock(x, y);
                if (block != null) {
                    return new ASRPBlockCacheObject(xAndY.intern(), block);
                }
            } catch (IOException ioe) {
                Debug.error("ASRPDirectory caught exception creating tiled image for "
View Full Code Here

     * OMGraphic. You can provide a List of components to be displayed in a
     * popup menu. You have to do the wiring for making the list components do
     * something, though.
     */
    public List getItemsForOMGraphicMenu(OMGraphic omg) {
        final OMGraphic chosen = omg;
        List l = new ArrayList();
        JMenuItem which = new JMenuItem("Which");
        which.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                String classname = chosen.getClass().getName();
                fireRequestMessage("Which was chosen over "
                        + classname.substring(classname.lastIndexOf('.') + 1));
            }
        });
        JMenuItem why = new JMenuItem("Why");
        why.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                String classname = chosen.getClass().getName();
                fireRequestMessage("Why was chosen over "
                        + classname.substring(classname.lastIndexOf('.') + 1));
            }
        });

View Full Code Here

            return null;
        }

        Debug.message("basic", getName() + "|DayNightLayer.prepare(): doing it");

        OMGraphic ras = createImage(getProjection());
        if (timer != null)
            timer.restart();
        list.add(ras);

        return list;
View Full Code Here

TOP

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

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.