com.metaweb.lessen.tokens
Class Color

java.lang.Object
  extended by com.metaweb.lessen.tokens.Token
      extended by com.metaweb.lessen.tokens.Color
Direct Known Subclasses:
ComponentColor, OneTokenColor

public abstract class Color
extends Token


Nested Class Summary
 
Nested classes/interfaces inherited from class com.metaweb.lessen.tokens.Token
Token.Type
 
Field Summary
 
Fields inherited from class com.metaweb.lessen.tokens.Token
end, start, text, type
 
Constructor Summary
protected Color(int start, int end, String text)
           
 
Method Summary
abstract  int getA()
           
abstract  int getB()
           
abstract  int getG()
           
abstract  int getR()
           
protected  int limitComponent(int n)
           
protected  String numberToHex(int n)
           
 Color performOperation(String op, Color color)
           
 Color performOperation(String op, Number n)
           
 
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
 

Constructor Detail

Color

protected Color(int start,
                int end,
                String text)
Method Detail

getR

public abstract int getR()

getG

public abstract int getG()

getB

public abstract int getB()

getA

public abstract int getA()

performOperation

public Color performOperation(String op,
                              Color color)

performOperation

public Color performOperation(String op,
                              Number n)

numberToHex

protected String numberToHex(int n)

limitComponent

protected int limitComponent(int n)


Copyright © 2011. All Rights Reserved.