Examples of EditableOMGraphic


Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseReleased(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mousePressed");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseReleased(e);
        }
        fireMouseLocation(e);
        if (drawingTool != null) {
            if (drawingTool.isMask(OMDrawingTool.DEACTIVATE_ASAP_BEHAVIOR_MASK)) {
                drawingTool.deactivate();
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseClicked(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mouseClicked");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseClicked(e);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseEntered(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mouseEntered");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseEntered(e);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseExited(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mouseExited");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseExited(e);
        }
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseDragged(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mouseDragged");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseDragged(e);
        }
        fireMouseLocation(e);
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * 
     */
    public void mouseMoved(MouseEvent e) {
        Debug.message("drawingtooldetail", "DrawingTool.mouseMoved");
        EditableOMGraphic graphic = getCurrentGraphic();
        if (graphic != null) {
            graphic.mouseMoved(e);
        }
        fireMouseLocation(e);
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

    /**
     * Give the classname of a graphic to create, returning an
     * EditableOMGraphic for that graphic.
     */
    public EditableOMGraphic getEditableGraphic(String classname) {
        EditableOMGraphic eomg = null;

        if (graphicInfo != null) {
            EditClassWrapper ecw = (EditClassWrapper) graphicInfo.get(classname.intern());
            if (ecw != null) {
                String ecn = ecw.getEditableClassName();
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

     * object lets you set some of the initial parameters of the
     * point, like point type and rendertype.
     */
    public EditableOMGraphic getEditableGraphic(String classname,
                                                GraphicAttributes ga) {
        EditableOMGraphic eomg = getEditableGraphic(classname);
        if (eomg != null && ga != null) {
            // This is a little redundant - the graphic is created
            // with the call to getEditableGraphic(classname), but is
            // then destroyed and created again with the
            // GraphicAttributes settings. I'm not sure how to get
            // around this at this point in a generic fashion. Before
            // the AbstractToolLoader was created, each EditToolLoader
            // called the EditableOMGraphic constructor with the
            // GraphicAttributes as an argument. Hard to do when you
            // only have a editableClassName.
            eomg.createGraphic(ga);
        }
        return null;
    }
View Full Code Here

Examples of com.bbn.openmap.omGraphics.EditableOMGraphic

        OMDrawingTool dt = getDrawingTool();
        if (dt != null) {
            // Stop editing any graphic currently being edited
            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
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.