Examples of IncreaseDecreaseType


Examples of org.openhab.core.library.types.IncreaseDecreaseType

  public void processCommand(DmxService service, Command command) {

    // process increase/decrease
    if (command instanceof IncreaseDecreaseType
        && !isRedefinedByCustomCommand(command)) {
      IncreaseDecreaseType t = (IncreaseDecreaseType) command;

      if (IncreaseDecreaseType.INCREASE.equals(t)) {
        for (int channelId : channels) {
          service.enableChannel(channelId);
          service.increaseChannel(channelId, DIMMER_STEP_SIZE);
View Full Code Here

Examples of org.openhab.core.library.types.IncreaseDecreaseType

      // rather than doing a linear fade on all channels, we fade only the
      // V part of HSV to maintain the color during the fade

      HSBType hsb = hsbState;
      int brightness = 0;
      IncreaseDecreaseType t = (IncreaseDecreaseType) command;
      if (IncreaseDecreaseType.INCREASE.equals(t)) {

        if (hsb == null) {
          hsb = new HSBType(Color.WHITE);
        }
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.