Class LightChangeColourEvent


public class LightChangeColourEvent extends LightChangeEvent
The class that represents a light colour changed event that occurred to an IKEA TRÅDFRI light
  • Constructor Details

    • LightChangeColourEvent

      public LightChangeColourEvent(Light light, LightProperties oldProperties, LightProperties newProperties)
      Construct the LightChangeColourEvent class
      Parameters:
      light - The light for which the event occurred
      oldProperties - The old properties of the light (from before the event occurred)
      newProperties - The new properties of the light (from after the event occurred)
  • Method Details

    • getOldHue

      public int getOldHue()
      Get the old hue of the light (from before the event occurred)
      Returns:
      The old hue of the light
    • getNewHue

      public int getNewHue()
      Get the new hue of the light (from after the event occurred)
      Returns:
      The new hue of the light
    • getOldSaturation

      public int getOldSaturation()
      Get the old saturation of the light (from before the event occurred)
      Returns:
      The old saturation of the light
    • getNewSaturation

      public int getNewSaturation()
      Get the new saturation of the light (from after the event occurred)
      Returns:
      The new saturation of the light
    • getOldColourX

      public int getOldColourX()
      Get the old X value of the colour of the light (from before the event occurred)
      Returns:
      The old X value of the colour of the light
    • getNewColourX

      public int getNewColourX()
      Get the new X value of the colour of the light (from after the event occurred)
      Returns:
      The new X value of the colour of the light
    • getOldColourY

      public int getOldColourY()
      Get the old Y value of the colour of the light (from before the event occurred)
      Returns:
      The old Y value of the colour of the light
    • getNewColourY

      public int getNewColourY()
      Get the new Y value of the colour of the light (from after the event occurred)
      Returns:
      The new Y value of the colour of the light
    • getOldColourXY

      public ColourXY getOldColourXY()
      Get the old XY colour of the light (from before the event occurred)
      Returns:
      The old XY colour of the light
    • getNewColourXY

      public ColourXY getNewColourXY()
      Get the new XY colour of the light (from after the event occurred)
      Returns:
      The new XY colour of the light
    • getOldColourRGB

      public org.openremote.model.value.impl.ColourRGB getOldColourRGB()
      Get the old RGB colour of the light (from before the event occurred)
      Returns:
      The old RGB colour of the light
    • getNewColourRGB

      public org.openremote.model.value.impl.ColourRGB getNewColourRGB()
      Get the new RGB colour of the light (from after the event occurred)
      Returns:
      The new RGB colour of the light