Examples of LightBulbComponent


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

    }

    Iterator<LightBulb> it2 = simulator.getLightBulbList().iterator();
    while (it2.hasNext()) {
      LightBulb lightBulb = it2.next();
      this.lightBulbComponents.add(new LightBulbComponent(lightBulb));
    }
    this.mode = GuiSimulatorMode.SLICK_COMPONENT_DRAGDROP;
  }
View Full Code Here

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

      rc.render(gc, g);
    }

    Iterator<LightBulbComponent> it2 = this.lightBulbComponents.iterator();
    while (it2.hasNext()) {
      LightBulbComponent lbc = it2.next();
      lbc.render(gc, g);
    }

    if (renderTracing) {
      Iterator<RoboterMoveListComponent> it3 = this.roboterMoveListComponent.iterator();
      while (it3.hasNext()) {
View Full Code Here

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

        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()));
      } else if (lbmoc.getState() == LightBulbModelCommandState.LIGHTBULB_REMOVED) {
        LightBulbComponent rc = findOrAddLightBulbComponent(lbmoc.getModel());
        this.lightBulbComponents.remove(rc);
      }
    }
  }
View Full Code Here

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

  }

  private LightBulbComponent findOrAddLightBulbComponent(LightBulb lightBulb) {
    Iterator<LightBulbComponent> it = this.lightBulbComponents.iterator();
    while (it.hasNext()) {
      LightBulbComponent rc = it.next();
      if (rc.getModelObject() == lightBulb) {
        return rc;
      }
    }
    LightBulbComponent rc = new LightBulbComponent(lightBulb);
    this.lightBulbComponents.add(rc);
    return rc;
  }
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.