|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.extex.color.ColorUtil
public final class ColorUtil
This class provides some utility functions for colors.
| Method Summary | |
|---|---|
static void |
formatAlpha(java.lang.StringBuilder sb,
long alpha)
Format the alpha value. |
static void |
formatComponent(java.lang.StringBuilder sb,
long cc)
Format a single color component: the color value from 0 to 0xffff is translated to a representation in the range 0.0 to 1.0. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void formatComponent(java.lang.StringBuilder sb,
long cc)
sb - the target string buffercc - the color component
public static void formatAlpha(java.lang.StringBuilder sb,
long alpha)
sb - the target string bufferalpha - the alpha value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||