Package eu.europa.esig.dss.ws.dto
Class RemoteColor
java.lang.Object
eu.europa.esig.dss.ws.dto.RemoteColor
- All Implemented Interfaces:
Serializable
public class RemoteColor extends Object implements Serializable
DTO for a
Color object- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description RemoteColor()The empty constructorRemoteColor(int red, int green, int blue)The default constructor without alpha layerRemoteColor(Integer red, Integer green, Integer blue, Integer alpha)The default constructor with alpha layer -
Method Summary
Modifier and Type Method Description booleanequals(Object obj)IntegergetAlpha()Gets alpha layer valueIntegergetBlue()Gets blue color valueIntegergetGreen()Gets green color valueIntegergetRed()Gets red color valueinthashCode()voidsetAlpha(Integer alpha)Sets alpha layer valuevoidsetBlue(Integer blue)Sets blue color valuevoidsetGreen(Integer green)Sets green color valuevoidsetRed(Integer red)Sets red color valueStringtoString()
-
Constructor Details
-
RemoteColor
public RemoteColor()The empty constructor -
RemoteColor
public RemoteColor(int red, int green, int blue)The default constructor without alpha layer- Parameters:
red- R color valuegreen- G color valueblue- B color value
-
RemoteColor
The default constructor with alpha layer- Parameters:
red- R color valuegreen- G color valueblue- B color valuealpha- alpha layer value
-
-
Method Details
-
getRed
Gets red color value- Returns:
Integer
-
setRed
Sets red color value- Parameters:
red-Integer
-
getGreen
Gets green color value- Returns:
Integer
-
setGreen
Sets green color value- Parameters:
green-Integer
-
getBlue
Gets blue color value- Returns:
Integer
-
setBlue
Sets blue color value- Parameters:
blue-Integer
-
getAlpha
Gets alpha layer value- Returns:
Integer
-
setAlpha
Sets alpha layer value- Parameters:
alpha-Integer
-
hashCode
public int hashCode() -
equals
-
toString
-