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 AbstractColorAdvBLACKstatic AbstractColorAdvBLUEstatic AbstractColorAdvGREENstatic AbstractColorAdvREDstatic AbstractColorAdvWHITE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)byte[]getARGB()Returns byte array in Alpha, Red, Green, Blue orderStringgetHtmlColor()Gets the color html string expression, for example "#FF6622"byte[]getRGB()Gets the color types array, order by Red,Green,BlueinthashCode()StringtoString()
-
-
-
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:SColorGets the color html string expression, for example "#FF6622"- Returns:
-
getRGB
public byte[] getRGB()
Description copied from interface:SColorGets the color types array, order by Red,Green,Blue- Returns:
-
getARGB
public byte[] getARGB()
Description copied from class:AbstractColorAdvReturns byte array in Alpha, Red, Green, Blue order- Specified by:
getARGBin classAbstractColorAdv- Returns:
-
-