|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.util.ColorUtil
public class ColorUtil
ColorUtil is a utra effecient named color parser. The class has a list of all html named colours and their matching hex values.
| Constructor Summary | |
|---|---|
ColorUtil()
|
|
| Method Summary | |
|---|---|
static int |
convertColor(java.lang.String name)
Converts the colour to an integer value. |
static java.lang.String |
convertColorNameToRGB(java.lang.String name)
Converts a named colour to hex rgb notation. |
static int |
convertNamedColor(java.lang.String name)
Converts the named colour to an integer value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ColorUtil()
| Method Detail |
|---|
public static final java.lang.String convertColorNameToRGB(java.lang.String name)
name - know colour name to be converted
public static int convertColor(java.lang.String name)
name - colour value in either hex or string format.
public static final int convertNamedColor(java.lang.String name)
name - name of colour to convert.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||