Package io.keikai.model.impl
Class ColorImpl
- java.lang.Object
-
- io.keikai.model.impl.AbstractColorAdv
-
- io.keikai.model.impl.ColorImpl
-
- All Implemented Interfaces:
SColor
,Serializable
public class ColorImpl extends AbstractColorAdv
- Since:
- 3.5.0
- Author:
- dennis
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static AbstractColorAdv
BLACK
static AbstractColorAdv
BLUE
static AbstractColorAdv
GREEN
static AbstractColorAdv
RED
static AbstractColorAdv
WHITE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
byte[]
getARGB()
Returns byte array in Alpha, Red, Green, Blue orderString
getHtmlColor()
Gets the color html string expression, for example "#FF6622"byte[]
getRGB()
Gets the color types array, order by Red,Green,Blueint
hashCode()
String
toString()
-
-
-
Field Detail
-
WHITE
public static final AbstractColorAdv WHITE
-
BLACK
public static final AbstractColorAdv BLACK
-
RED
public static final AbstractColorAdv RED
-
GREEN
public static final AbstractColorAdv GREEN
-
BLUE
public static final AbstractColorAdv BLUE
-
-
Constructor Detail
-
ColorImpl
public ColorImpl(byte[] rgb)
-
ColorImpl
public ColorImpl(byte r, byte g, byte b)
-
ColorImpl
public ColorImpl(String htmlColor)
-
-
Method Detail
-
getHtmlColor
public String getHtmlColor()
Description copied from interface:SColor
Gets the color html string expression, for example "#FF6622"- Returns:
-
getRGB
public byte[] getRGB()
Description copied from interface:SColor
Gets the color types array, order by Red,Green,Blue- Returns:
-
getARGB
public byte[] getARGB()
Description copied from class:AbstractColorAdv
Returns byte array in Alpha, Red, Green, Blue order- Specified by:
getARGB
in classAbstractColorAdv
- Returns:
-
-