Package org.eclipse.lsp4j
Class Color
- java.lang.Object
-
- org.eclipse.lsp4j.Color
-
public class Color extends java.lang.ObjectRepresents a color in RGBA space.Since 3.6.0
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)doublegetAlpha()The alpha component of this color in the range [0-1].doublegetBlue()The blue component of this color in the range [0-1].doublegetGreen()The green component of this color in the range [0-1].doublegetRed()The red component of this color in the range [0-1].inthashCode()voidsetAlpha(double alpha)The alpha component of this color in the range [0-1].voidsetBlue(double blue)The blue component of this color in the range [0-1].voidsetGreen(double green)The green component of this color in the range [0-1].voidsetRed(double red)The red component of this color in the range [0-1].java.lang.StringtoString()
-
-
-
Method Detail
-
getRed
public double getRed()
The red component of this color in the range [0-1].
-
setRed
public void setRed(double red)
The red component of this color in the range [0-1].
-
getGreen
public double getGreen()
The green component of this color in the range [0-1].
-
setGreen
public void setGreen(double green)
The green component of this color in the range [0-1].
-
getBlue
public double getBlue()
The blue component of this color in the range [0-1].
-
setBlue
public void setBlue(double blue)
The blue component of this color in the range [0-1].
-
getAlpha
public double getAlpha()
The alpha component of this color in the range [0-1].
-
setAlpha
public void setAlpha(double alpha)
The alpha component of this color in the range [0-1].
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-