Examples of OMGraphicList


Examples of com.bbn.openmap.omGraphics.OMGraphicList

    /**
     * OMGraphicHandlerLayer method, get the OMGraphics from the data
     * in the file.
     */
    public OMGraphicList prepare() {
        OMGraphicList g = getList();

        if (g == null) {
            try {
                E00Parser parser = new E00Parser(E00File);
                parser.setPaints(ArcColors,
                        LabColors,
                        Tx7Color,
                        SelectTx7Color,
                        SelectLabColor,
                        SelectArcColor,
                        LabTextColor);
                parser.setLabMarker(LabMarker);
                parser.setFonts(LabFont, Tx7Font);

                g = parser.getOMGraphics();
                arcs = parser.getArcList();
                labs = parser.getLabList();
                tx7 = parser.getTx7List();

                setListVisibility();

            } catch (Exception ex) {
                ex.printStackTrace(System.out);
                Debug.error("E00Layer|" + getName() + ".prepare(): "
                        + ex.getMessage());
            }
        }

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

        return g;
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     *
     * @param C The new LineColor value
     * @since
     */
    void setLineColor(Color C) {
        OMGraphicList graphics = getList();
        if (graphics != null) {
            graphics.setLinePaint(C);
        }
        repaint();
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

        System.out.print("E00: filter type=" + filtreType + "  value="
                + filtreValeur);
        OMGraphic og;
        Object O;
        int count = 0;
        OMGraphicList g = arcs;
        int n = arcs.size();
        if ((filtreType == Integer.MIN_VALUE)
                && (filtreValeur == Integer.MIN_VALUE)) {
            for (int i = 0; i < n; i++)
                g.getOMGraphicAt(i).setVisible(true);
            count = n;
        } else
            for (int i = 0; i < n; i++) {
                og = g.getOMGraphicAt(i);
                O = og.getAppObject();
                if (O == null)
                    setVisible(false);
                else {
                    E00Data d = (E00Data) O;
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

//            (byte) 0x1b, (byte) 0x1f, (byte) 0x0e };

    private void initialize(int height, int width, int xoffset, int yoffset,
                            Vector sites, float minyear, float maxyear,
                            float mintemp, float maxtemp) {
        plot_graphics_ = new OMGraphicList();
        plot_points_ = new OMGraphicList();
        plot_background_ = new OMGraphicList();

        plot_graphics_.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
        plot_points_.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
        plot_background_.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * Return the OMGraphic object that is under a mouse event
     * occurrance on the map, null if nothing applies.
     */
    public OMGraphic getGeometryUnder(MouseEvent me) {
        OMGraphic omg = null;
        OMGraphicList list = null;
        if (layer != null) {
            list = layer.getList();
            if (list != null) {
                omg = list.findClosest(me.getX(), me.getY(), 4);
            } else {
                if (DEBUG) {
                    Debug.output("SMMI: no layer to evaluate mouse event");
                }
            }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * Notify the GRP that the OMGraphic has been selected. Wraps the
     * OMGraphic in an OMGraphicList.
     */
    public void select(OMGraphic omg) {
        if (grp != null && grp.isSelectable(omg)) {
            OMGraphicList omgl = new OMGraphicList();
            omgl.add(omg);
            grp.select(omgl);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

     * Notify the GRP that the OMGraphic has been deselected. Wraps
     * the OMGraphic in an OMGraphicList.
     */
    public void deselect(OMGraphic omg) {
        if (grp != null && grp.isSelectable(omg)) {
            OMGraphicList omgl = new OMGraphicList();
            omgl.add(omg);
            grp.deselect(omgl);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

    /** Put the data points on the map. */
    private OMGraphicList plotDataSources() {
        Debug.message("basic", "PlotLayer.plotDataSources()");
        int num_graphics = 0;

        OMGraphicList graphics = new OMGraphicList();
        graphics.setTraverseMode(OMGraphicList.LAST_ADDED_ON_TOP);
        graphics.clear();

        Enumeration site_enum = temperature_data.getAllSites();
        while (site_enum.hasMoreElements()) {
            GLOBESite site = (GLOBESite) site_enum.nextElement();
            //Debug.message("basic", "Plotlayer adds " +
            // site.getName());
            graphics.addOMGraphic(site.getGraphic());
            num_graphics++;
        }

        Debug.message("basic", "Plotlayer found " + num_graphics
                + " distinct sites");
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMGraphicList

    private void showPlot() {
        show_plot_ = true;

        OMGraphic plot = generatePlot();
        OMGraphicList list = getList();

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

Examples of com.bbn.openmap.omGraphics.OMGraphicList

    private void hidePlot() {
        //      System.out.println("Making plot IN-visible..");
        show_plot_ = false;
        if (graph != null) {
            OMGraphic plot = graph.getPlotGraphics();
            OMGraphicList list = getList();

            if (list != null && plot != null) {
                list.remove(plot);
            }
        }
        repaint();
    }
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.