Examples of BinaryLight


Examples of fr.imag.adele.apam.test.lights.devices.BinaryLight

     * CallBack method on dependency resolution
     *
     * @param light
     */
    public void newLight(Instance inst) {
  BinaryLight light = (BinaryLight) inst.getServiceObject();
  logger.debug("newLight(Instance light : " + light.getName() + " in "
    + light.getLocation() + ")");
  rebuildLightsColumn();
    }
View Full Code Here

Examples of fr.imag.adele.apam.test.lights.devices.BinaryLight

    + " lights to add to the list");

  if (theLights != null && theLights.size() > 0) {
      Iterator<BinaryLight> it = theLights.iterator();
      while (it.hasNext()) {
    BinaryLight light = it.next();
    logger.debug("rebuildLightsColumn() -> " + light.getName()
      + " is in " + light.getLocation());

      }
  }
    }
View Full Code Here

Examples of fr.imag.adele.apam.test.lights.devices.BinaryLight

    /**
     * CallBack method on dependency resolution
     */
    public void removeLight(Instance inst) {
  BinaryLight light = (BinaryLight) inst.getServiceObject();
  logger.debug("removeLight(Instance light : " + light.getName() + " in "
    + light.getLocation() + ")");
  rebuildLightsColumn();
    }
View Full Code Here

Examples of fr.imag.adele.apam.tutorials.lights.devices.BinaryLight

        lightsColumn.removeAll();
        if (theLights != null && theLights.size()>0) {
            Iterator<BinaryLight> it=theLights.iterator();
            while(it.hasNext()) {
                BinaryLight light = it.next();
                JPanel panel=new JPanel();
                panel.setBorder(BorderFactory.createTitledBorder(
                        light.getName() + " in " + light.getLocation()));

                JLabel lightGUI= new javax.swing.JLabel();
                lightGUI.setOpaque(true);
                lightGUI.setPreferredSize(new DimensionUIResource(180, 40));

                if(light.isLightOn())
                    lightGUI.setBackground(Color.YELLOW);
                else lightGUI.setBackground(Color.GRAY);
                panel.add(lightGUI);
                lightsColumn.add(panel);
            }
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.