Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.OMGraphicList.generate()


            }
        }

        Projection proj = getProjection();
        if (proj != null && g != null) {
            g.generate(proj);
        }

        return g;
    }
View Full Code Here


        if (plot != null) {
            //          System.out.println("Making plot visible..");
            list.addOMGraphic(plot);
        }
        // generate the graphics for rendering.
        list.generate(getProjection(), false);
        repaint();
    }

    private void hidePlot() {
        //      System.out.println("Making plot IN-visible..");
View Full Code Here

            prevY = y;

            graph.resize(plotX, plotY, plotWidth, plotHeight);
            OMGraphicList plotGraphics = graph.getPlotGraphics();
            //regenerate the plot graphics
            plotGraphics.generate(getProjection(), true);
            repaint();
        }
        return false;
    }
View Full Code Here

    public void paint(Graphics g) {
        super.paint(g);
        if (drawIntersections || drawResults) {
            OMGraphicList graphics;
            graphics = new OMGraphicList(toDraw);
            graphics.generate(getProjection(), true);//all new
            // graphics
            logger.info("rendering toDraw " + toDraw.size() + " items");
            graphics.render(g);
        }
    }
View Full Code Here

    public OMGraphicList getRectangle(Projection p) {
        OMGraphicList list = getEsriGraphicList();
        proj = p;

        if (list != null) {
            list.generate(p);

            // Setting the list up so that if anything is "selected",
            // it will also be drawn on top of all the other
            // OMGraphics. This maintains order while also making any
            // line edge changes more prominent.
View Full Code Here

        if (ras != null) {
            list.add(ras);
        }

        list.generate(p);
        return list;
    }

    /**
     * Method to set the properties in the PropertyConsumer. The
View Full Code Here

        if (spatialIndex == null) {
            Debug.message("shape", "ShapeLayer: spatialIndex is null!");

            if (list != null) {
                list.generate(projection, true);// all new graphics
                return list;
            } else {
                // What we'd really like to do is make this a buffered layer at
                // this point, if we can't find an ssx file and can't create
                // one.
View Full Code Here

     */
    public synchronized OMGraphicList prepare() {
        if (mifl != null) {
            OMGraphicList list = mifl.getList();
            if (list != null) {
                list.generate(getProjection());
            }
            return list;
        } else {
            return new OMGraphicList();
        }
View Full Code Here

            oldLine = line;
            ogc = gc;
        }

        list.generate(getProjection());

        return list;

    }
View Full Code Here

    public void paint(Graphics g) {
        super.paint(g);
        if (drawIntersections || drawResults) {
            OMGraphicList graphics;
            graphics = new OMGraphicList(toDraw);
            graphics.generate(getProjection(), true);//all new
                                                     // graphics
            if (logger.isLoggable(Level.INFO)) {
                logger.info("rendering toDraw " + toDraw.size() + " items");
            }
            graphics.render(g);
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.