Examples of OMAction


Examples of com.bbn.openmap.omGraphics.OMAction

        // End cleanup
        // ////////////////////////////////

        if (g != null && requestor != null) {
            g.setVisible(true);
            OMAction action = new OMAction();
            action.setMask(actionToDoWithOMGraphic);
            generateOMGraphic(g);
            notifyListener(g, action);
        }

        // By putting this here, it gives the listener the slight
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMAction

            JMenuItem delete = new JMenuItem(i18n.get(OMDrawingTool.class,
                    "popupMenuDelete",
                    "Delete"));
            delete.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent ae) {
                    OMAction action = new OMAction();
                    action.setMask(OMGraphic.DELETE_GRAPHIC_MASK);
                    EditableOMGraphic eomg = getCurrentEditable();
                    if (eomg != null) {
                        OMGraphic g = eomg.getGraphic();
                        if (g != null) {
                            notifyListener(g, action);
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMAction

            dt.setMask(OMDrawingTool.DEACTIVATE_ASAP_BEHAVIOR_MASK);
            EditableOMGraphic egraphic = dt.getCurrentEditable();
            if (egraphic != null) {
                OMGraphic graphic = egraphic.getGraphic();

                OMAction action = new OMAction(UPDATE_GRAPHIC_MASK);
                drawingComplete(graphic, action);
                dt.setCurrentEditable(null);
            }
        }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMAction

                    // doubt it.
                    DrawingToolRequestor requestor = item.getRequestor();
                    OMGraphic omg = item.getOMGraphic();
                    if (requestor != null) {
                        requestor.drawingComplete(omg,
                                new OMAction(OMGraphicConstants.DELETE_GRAPHIC_MASK));
                    } else {
                        // if there isn't a requestor specified, tell
                        // anyone who will listen.
                        Iterator reqs = requestors.iterator();
                        while (reqs.hasNext()) {
                            ((DrawingToolRequestor) reqs.next()).drawingComplete(omg,
                                    new OMAction(OMGraphicConstants.DELETE_GRAPHIC_MASK));
                        }
                    }
                }
            }
        }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMAction

                            System.out.println("TestLinkServer: new graphic given id "
                                    + props);
                        }

                        clientCreatedGraphics.doAction(gu.graphic,
                                new OMAction(gu.action));

                    }
                }
            }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.OMAction

                            + "no layer found with name " + name);
            return;
        }

        targetLayer.doAction((OMGraphic) transferData,
                new OMAction(OMAction.UPDATE_GRAPHIC_MASK));
    }
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.