org.apache.poi.xwpf.converter.core.utils
Class ColorHelper
java.lang.Object
org.apache.poi.xwpf.converter.core.utils.ColorHelper
public class ColorHelper
- extends Object
Method Summary |
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.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ColorHelper
public ColorHelper()
getFillColor
public static Color getFillColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd)
getColor
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTRPr rPr)
getColor
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTShd shd)
getColor
public static Color getColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.STHexColor hexColor,
Object val,
boolean background)
getColor
public static Color getColor(String hexColor,
Object val,
boolean background)
toHexString
public static String toHexString(Color color)
darken
public static Color darken(int r,
int g,
int b,
double percent)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
lighten
public static Color lighten(int r,
int g,
int b,
double percent)
throws IllegalArgumentException
- Throws:
IllegalArgumentException
getBorderColor
public static Color getBorderColor(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTBorder border)
Copyright © 2013. All rights reserved.