Package de.hpi.eworld.networkview.objects

Examples of de.hpi.eworld.networkview.objects.TrafficLightView


      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Rain, 1, null)),
      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Snow, 1, null)),
      new PolygonEventView(new PolygonEventModel(PolygonEventModel.Type.Ice, 1, null)),
      new StreetBarrierView(new RoadSpotModel(RoadSpotModel.Type.Busstop)),
      new StreetBarrierView(new RoadSpotModel(RoadSpotModel.Type.Liftgate)),
      new TrafficLightView(new TrafficLightModel(new NodeModel(0,0))));
    return (List<GraphicsView<EventModel>>) list;
  }
View Full Code Here


      for (EdgeModel edge : currentTrafficLight.getUsedBy()) {
        EdgeView way = new EdgeView(edge);
        previewWidget.addEdge(way);
      }
     
      TrafficLightView trafficLight = new TrafficLightView(currentTrafficLight);
      trafficLight.setIgnoreLevelOfDetail(true);
      previewWidget.addShape(trafficLight);
      Point2D center = new Point2D.Double(trafficLight.getInitialBounds().getCenterX(),trafficLight.getInitialBounds().getY());
      previewWidget.center(center);
      previewWidget.repaintView();
    } else {
      this.logger.warn("no currentTrafficLight");
    }
View Full Code Here

    }
    if (!(notification.getObj1() instanceof TrafficLightView)) {
      return;
    }
     
    final TrafficLightView item = (TrafficLightView) notification.getObj1();
    newTLSDialogEditing(item);
  }
View Full Code Here

TOP

Related Classes of de.hpi.eworld.networkview.objects.TrafficLightView

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.