Class ColourXY
java.lang.Object
org.openremote.agent.protocol.tradfri.util.ColourXY
The class that contains XY values that make up a colour
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ColourXYfromRGB(org.openremote.model.value.impl.ColourRGB colourRGB) Construct the ColourXY class from theColourRGBclassgetX()Get the X value of the colourgetY()Get the Y value of the colourvoidSet the X value of the colourvoidSet the Y value of the colour
-
Constructor Details
-
ColourXY
Construct the ColourXY class- Parameters:
X- The X value of the colourY- The Y value of the colour
-
ColourXY
public ColourXY()Construct the ColourXY class
-
-
Method Details
-
getX
Get the X value of the colour- Returns:
- The X value of the colour
-
getY
Get the Y value of the colour- Returns:
- The Y value of the colour
-
setX
Set the X value of the colour- Parameters:
X- The new X value of the colour
-
setY
Set the Y value of the colour- Parameters:
Y- The new Y value of the colour
-
fromRGB
Construct the ColourXY class from theColourRGBclass- Parameters:
colourRGB- TheColourRGBclass- Returns:
- The ColourXY class
-