Package ch.bfh.ti.kybernetik.gui.slick.components

Examples of ch.bfh.ti.kybernetik.gui.slick.components.RoboterMoveListComponent


    }

    if (renderTracing) {
      Iterator<RoboterMoveListComponent> it3 = this.roboterMoveListComponent.iterator();
      while (it3.hasNext()) {
        RoboterMoveListComponent rtc = it3.next();
        rtc.render(gc, g);
      }
    }

    // Render current mode
    g.setColor(Color.green);
View Full Code Here


        rc.unHightLightRoboterElement(lsmoc.getPayLoad());
      }
    } else if (observerCommand instanceof RoboterMoveListModelObserverCommand) {
      RoboterMoveListModelObserverCommand rmlmoc = (RoboterMoveListModelObserverCommand) observerCommand;
      if (rmlmoc.getState() == RoboterMoveModelObserverCommandState.ROBOTER_MOVE_ADDED) {
        RoboterMoveListComponent rtc = findOrAddRoboterTraceComponent(rmlmoc.getModel());
        rtc.setMoves(rmlmoc.getPayLoad());
      }
    } else if (observerCommand instanceof LightBulbModelObserverCommand) {
      LightBulbModelObserverCommand lbmoc = (LightBulbModelObserverCommand) observerCommand;
      if (lbmoc.getState() == LightBulbModelCommandState.LIGHTBULB_ADDED) {
        this.lightBulbComponents.add(new LightBulbComponent(lbmoc.getModel()));
View Full Code Here

  }

  private RoboterMoveListComponent findOrAddRoboterTraceComponent(Roboter roboter) {
    Iterator<RoboterMoveListComponent> it = this.roboterMoveListComponent.iterator();
    while (it.hasNext()) {
      RoboterMoveListComponent rtc = it.next();
      if (rtc.getRoboter() == roboter) {
        return rtc;
      }
    }
    RoboterMoveListComponent rtc = new RoboterMoveListComponent(roboter);
    rtc.setColor(findOrAddRoboterComponent(roboter).getColor());
    this.roboterMoveListComponent.add(rtc);
    return rtc;
  }
View Full Code Here

TOP

Related Classes of ch.bfh.ti.kybernetik.gui.slick.components.RoboterMoveListComponent

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.