Package trafficdefinition

Examples of trafficdefinition.TrafficDefinitionElement


    if (transformedPoint == null) {
      return;
    }

    // Find if an element is below the mouse location to show its tooltip
    TrafficDefinitionElement trafficElementBelowMouse = null;
    RoadNetworkElement roadElementBelowMouse = roadNetwork.PointHitTest(transformedPoint);

    if (currentTrafficLayer != null) {
      trafficElementBelowMouse = currentTrafficLayer.PointHitTest(transformedPoint);
    }

    // Set the tooltip of the element below the mouse
    if (trafficElementBelowMouse != null) {
      setToolTipText(trafficElementBelowMouse.getToolTip());
    } else if (roadElementBelowMouse != null) {
      setToolTipText(roadElementBelowMouse.getToolTip());
    } else {
      setToolTipText(null);
    }
View Full Code Here

TOP

Related Classes of trafficdefinition.TrafficDefinitionElement

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.