Class LightChangeColourEvent
java.lang.Object
org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
org.openremote.agent.protocol.tradfri.device.event.LightEvent
org.openremote.agent.protocol.tradfri.device.event.LightChangeEvent
org.openremote.agent.protocol.tradfri.device.event.LightChangeColourEvent
The class that represents a light colour changed event that occurred to an IKEA TRÅDFRI light
-
Constructor Summary
ConstructorsConstructorDescriptionLightChangeColourEvent
(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeColourEvent class -
Method Summary
Modifier and TypeMethodDescriptionorg.openremote.model.value.impl.ColourRGB
Get the new RGB colour of the light (from after the event occurred)int
Get the new X value of the colour of the light (from after the event occurred)Get the new XY colour of the light (from after the event occurred)int
Get the new Y value of the colour of the light (from after the event occurred)int
Get the new hue of the light (from after the event occurred)int
Get the new saturation of the light (from after the event occurred)org.openremote.model.value.impl.ColourRGB
Get the old RGB colour of the light (from before the event occurred)int
Get the old X value of the colour of the light (from before the event occurred)Get the old XY colour of the light (from before the event occurred)int
Get the old Y value of the colour of the light (from before the event occurred)int
Get the old hue of the light (from before the event occurred)int
Get the old saturation of the light (from before the event occurred)Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightChangeEvent
getNewProperties, getOldProperties
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.LightEvent
getLight
Methods inherited from class org.openremote.agent.protocol.tradfri.device.event.DeviceEvent
getDevice
-
Constructor Details
-
LightChangeColourEvent
public LightChangeColourEvent(Light light, LightProperties oldProperties, LightProperties newProperties) Construct the LightChangeColourEvent class- Parameters:
light
- The light for which the event occurredoldProperties
- 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
Get the old XY colour of the light (from before the event occurred)- Returns:
- The old XY colour of the light
-
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
-