Package com.bbn.openmap.layer.link

Examples of com.bbn.openmap.layer.link.LinkOMGraphicList


     */
    public boolean mouseClicked(MouseEvent e) {

        int descriptor = MOUSE_CLICKED_MASK;

        LinkOMGraphicList graphics = getGraphicList();

        if (graphics == null) {
            Debug.message("link",
                    "DrawLinkLayer.mouseClicked: null LinkOMGraphicList, making new one...");
            // If the graphic list is null then LinkLayer::mouseClicked will
            // not report the mouse click to the server. Set it to an empty
            // list to continue processing.
            graphics = new LinkOMGraphicList();
            setGraphicList(graphics);
        }

        Debug.message("link", "DrawLinkLayer mouseClicked");
        OMGraphic gesGraphic = null;

        LinkOMGraphicList selectableList = new LinkOMGraphicList();
        OMGraphic g;
        Properties p;
        String selectable;
        for (Iterator it = graphics.iterator(); it.hasNext();) {
            g = (OMGraphic) it.next();
            p = (Properties) g.getAppObject();
            selectable = p.getProperty(LPC_SELECTABLE);
            if (selectable.equals("true")) {
                selectableList.add(g);
            }
        }

        gesGraphic = selectableList.findClosest(e.getX(),
                e.getY(),
                distanceLimit);

        try {

View Full Code Here


     * ring) was clicked on, so that it can be sent to the drawing
     * tool for modification if desired.
     */
    public boolean mouseClicked(MouseEvent e) {
        Debug.message("link", "AmpLinkLayer mouseClicked");
        LinkOMGraphicList graphics = getGraphicList(); // Get old list
        OMGraphic gesGraphic = null;

        gesGraphic = graphics.findClosest(e.getX(), e.getY(), distanceLimit);
        if (gesGraphic == null) {
            gesGraphic = extraGraphics.findClosest(e.getX(),
                    e.getY(),
                    distanceLimit);
        }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.layer.link.LinkOMGraphicList

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.