|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metaweb.lessen.tokens.Token
com.metaweb.lessen.tokens.Color
com.metaweb.lessen.tokens.OneTokenColor
public class OneTokenColor
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.metaweb.lessen.tokens.Token |
|---|
Token.Type |
| Field Summary | |
|---|---|
protected int |
_a
|
protected int |
_b
|
protected int |
_g
|
protected int |
_r
|
protected static Map<String,int[]> |
s_colorMap
|
| Fields inherited from class com.metaweb.lessen.tokens.Token |
|---|
end, start, text, type |
| Constructor Summary | |
|---|---|
OneTokenColor(int start,
int end,
String text,
int r,
int g,
int b,
int a)
|
|
| Method Summary | |
|---|---|
protected static int |
charToColorComponent(char c)
|
protected static int |
charToNumber(char c)
|
int |
getA()
|
int |
getB()
|
int |
getG()
|
int |
getR()
|
static Color |
tokenToColor(Token token)
|
protected static int |
twoCharsToColorComponent(String s)
|
| Methods inherited from class com.metaweb.lessen.tokens.Color |
|---|
limitComponent, numberToHex, performOperation, performOperation |
| Methods inherited from class com.metaweb.lessen.tokens.Token |
|---|
getCleanText, toString, typeToString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected int _r
protected int _g
protected int _b
protected int _a
protected static Map<String,int[]> s_colorMap
| Constructor Detail |
|---|
public OneTokenColor(int start,
int end,
String text,
int r,
int g,
int b,
int a)
| Method Detail |
|---|
public int getR()
getR in class Colorpublic int getG()
getG in class Colorpublic int getB()
getB in class Colorpublic int getA()
getA in class Colorprotected static int charToColorComponent(char c)
protected static int twoCharsToColorComponent(String s)
protected static int charToNumber(char c)
public static Color tokenToColor(Token token)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||