public class ColorHelper extends Object
| Constructor and Description |
|---|
ColorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Color |
darken(int r,
int g,
int b,
double percent) |
static Color |
getBorderColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border) |
static Color |
getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr rPr) |
static Color |
getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr rPr) |
static Color |
getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) |
static Color |
getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.STHexColor hexColor,
Object val,
boolean background) |
static Color |
getColor(String hexColor,
Object val,
boolean background) |
static Color |
getFillColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd) |
static Color |
lighten(int r,
int g,
int b,
double percent) |
static String |
toHexString(Color color) |
public static Color getFillColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd)
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr rPr)
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTParaRPr rPr)
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd)
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.STHexColor hexColor, Object val, boolean background)
public static Color darken(int r, int g, int b, double percent) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Color lighten(int r, int g, int b, double percent) throws IllegalArgumentException
IllegalArgumentExceptionpublic static Color getBorderColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border)
Copyright © 2016. All Rights Reserved.