Package com.bbn.openmap.omGraphics

Examples of com.bbn.openmap.omGraphics.GrabPoint


     * changed to edit mode.
     */
    public boolean mousePressed(MouseEvent e) {
        Debug.message("eomg",
                "GraphicStateMachine|unselected state|mousePressed");
        GrabPoint mp = graphic.getMovingPoint(e);

        // If the graphic itself was clicked on, then just go to
        // selected
        // mode.
        if (mp == null) {
View Full Code Here


    }

    public boolean mouseReleased(MouseEvent e) {
        Debug.message("eomg",
                "GraphicStateMachine|unselected state|mouseReleased");
        GrabPoint mp = graphic.getMovingPoint(e);

        // If the graphic itself was clicked on, then just go to
        // selected
        // mode.
        if (mp == null) {
            if (graphic.getGraphic().distance(e.getX(), e.getY()) < 2) {
                graphic.getStateMachine().setSelected();
                graphic.fireEvent(EOMGCursors.EDIT, "");
            } else {
                graphic.setMovingPoint(new GrabPoint(e.getX(), e.getY()));
                // OK, we're done, or at a crossroad. Give the
                // listeners
                // the MouseEvent so they can determine what to do, to
                // end, or provide options...
                graphic.fireEvent(EOMGCursors.DEFAULT, "", e);
View Full Code Here

     */
    public boolean mouseReleased(MouseEvent e) {
        Debug.message("eomg",
                "GraphicStateMachine|delete node state|mouseReleased");

        GrabPoint mp = graphic.getMovingPoint(e);

        // If the graphic itself was clicked on, then just go to
        // selected
        // mode.
        if (mp != null) {
View Full Code Here

    }

    public boolean mouseMoved(MouseEvent e) {
        Debug.message("eomgdetail",
                "PolyStateMachine|delete node state|mouseMoved");
        GrabPoint mp = graphic.getMovingPoint(e);

        if (mp != null) { // Only change the cursor over a node
            // if (graphic.getGraphic().distance(e.getX(), e.getY()) <
            // 2)
            // {
View Full Code Here

    // --------------------------------------------------------------------------------------------------------

    /**
     */
    public boolean mousePressed(MouseEvent e) {
        GrabPoint gb = graphic.getGrabPoint(EditableOMText.CENTER_POINT_INDEX);

        gb.set(e.getX(), e.getY());

        graphic.setMovingPoint(gb);

        if (graphic.getGraphic().getRenderType() == OMGraphic.RENDERTYPE_OFFSET) {
            graphic.getGrabPoint(EditableOMText.OFFSET_POINT_INDEX)
View Full Code Here

    public boolean mousePressed(MouseEvent e) {
        Debug.message("eomg",
                "PointStateMachine|undefined state|mousePressed = "
                        + graphic.getGraphic().getRenderType());

        GrabPoint gb = graphic.getGrabPoint(EditableOMPoint.CENTER_POINT_INDEX);
        gb.set(e.getX(), e.getY());
        graphic.setMovingPoint(gb);

        if (graphic.getGraphic().getRenderType() == OMGraphic.RENDERTYPE_OFFSET) {
            graphic.getGrabPoint(EditableOMPoint.OFFSET_POINT_INDEX)
                    .set(e.getX(), e.getY());
View Full Code Here

     */
    public boolean mouseReleased(MouseEvent e) {
        Debug.message("eomg",
                "GraphicStateMachine|add node state|mouseReleased");

        GrabPoint mp = graphic.getMovingPoint(e);

        // If the graphic itself was clicked on, then just go to
        // selected
        // mode.
        if (mp != null) {
View Full Code Here

    public boolean mouseMoved(MouseEvent e) {
        Debug.message("eomgdetail",
                "PolyStateMachine|add node state|mouseMoved");

        GrabPoint mp = graphic.getMovingPoint(e);

        if (mp != null) { // Only change the cursor over a node
            // if (graphic.getGraphic().distance(e.getX(), e.getY()) <
            // 2)
            // {
View Full Code Here

     * and go to edit mode.
     */
    public boolean mousePressed(MouseEvent e) {
        Debug.message("eomg", "ListStateMachine|selected state|mousePressed");

        GrabPoint mp = graphic.getMovingPoint(e);

        // If the graphic itself was clicked on, then just go to
        // selected
        // mode.
        if (mp == null) {
View Full Code Here

    /**
     */
    public boolean mouseReleased(MouseEvent e) {
        Debug.message("eomg", "ListStateMachine|selected state|mouseReleased");

        GrabPoint mp = graphic.getMovingPoint(e);

        if (mp == null) {
            Debug.message("eomg", " deactivating with fired event");
            // If the graphic isn't picked, then need to
            // deactivate with a deactivation event.
View Full Code Here

TOP

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

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.