Package org.openhab.binding.dmx.internal.action

Examples of org.openhab.binding.dmx.internal.action.FadeAction


   */
  @Override
  public void fadeChannel(int channel, int fadeTime, int targetValue,
      int holdTime, boolean immediate) {

    FadeAction fade = new FadeAction(fadeTime, targetValue, holdTime);
    if (immediate) {
      logger.trace("Fading channel {} to {}", channel, targetValue);
      transmitter.getChannel(channel).setChannelAction(fade);
    } else {
      logger.trace("Adding channel fade on channel {} to {}", channel,
View Full Code Here


  public void fadeChannels(int startChannel, int fadeTime,
      int[] targetValues, int holdTime, boolean immediate) {
    logger.trace("Fading channels {} to {}", startChannel, targetValues);
    int channelId = startChannel;
    for (int v : targetValues) {
      FadeAction fade = new FadeAction(fadeTime, v, holdTime);
      if (immediate) {
        transmitter.getChannel(channelId++).setChannelAction(fade);
      } else {
        transmitter.getChannel(channelId++).addChannelAction(fade);
      }
View Full Code Here

TOP

Related Classes of org.openhab.binding.dmx.internal.action.FadeAction

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.