java.lang.Object
org.openremote.agent.protocol.tradfri.util.ColourXY

public class ColourXY extends Object
The class that contains XY values that make up a colour
  • Constructor Details

    • ColourXY

      public ColourXY(Integer X, Integer Y)
      Construct the ColourXY class
      Parameters:
      X - The X value of the colour
      Y - The Y value of the colour
    • ColourXY

      public ColourXY()
      Construct the ColourXY class
  • Method Details

    • getX

      public Integer getX()
      Get the X value of the colour
      Returns:
      The X value of the colour
    • getY

      public Integer getY()
      Get the Y value of the colour
      Returns:
      The Y value of the colour
    • setX

      public void setX(Integer X)
      Set the X value of the colour
      Parameters:
      X - The new X value of the colour
    • setY

      public void setY(Integer Y)
      Set the Y value of the colour
      Parameters:
      Y - The new Y value of the colour
    • fromRGB

      public static ColourXY fromRGB(org.openremote.model.value.impl.ColourRGB colourRGB)
      Construct the ColourXY class from the ColourRGB class
      Parameters:
      colourRGB - The ColourRGB class
      Returns:
      The ColourXY class