Examples of disableRoute()


Examples of ch.fork.AdHocRailway.domain.routes.RouteControlIface.disableRoute()

                    if (obj instanceof Turnout) {
                        Turnout t = (Turnout) obj;
                        turnoutControl.setDefaultState(t);
                    } else if (obj instanceof Route) {
                        Route r = (Route) obj;
                        routeControl.disableRoute(r);
                    } else {
                        return;
                    }
                    historyWidgets.removeFirst();
                    updateHistory();
View Full Code Here

Examples of ch.fork.AdHocRailway.domain.routes.RouteControlIface.disableRoute()

                return;
            }
            if (this instanceof EnableRouteAction) {
                routeControl.enableRoute(searchedRoute);
            } else if (this instanceof DisableRouteAction) {
                routeControl.disableRoute(searchedRoute);
            }
            updateHistory(searchedRoute);
        }
    }
View Full Code Here

Examples of ch.fork.AdHocRailway.domain.routes.RouteControlIface.disableRoute()

                if (e.getClickCount() == 1
                        && e.getButton() == MouseEvent.BUTTON1) {
                    if (routeControl.isRouting(route))
                        return;
                    if (routeControl.isRouteEnabled(route))
                        routeControl.disableRoute(route);
                    else
                        routeControl.enableRoute(route);
                    removeMouseListener(mouseAction);
                } else if (e.getClickCount() == 1
                        && e.getButton() == MouseEvent.BUTTON3) {
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.