de.lessvoid.nifty.tools
Class ColorValueParser

java.lang.Object
  extended by de.lessvoid.nifty.tools.ColorValueParser

public class ColorValueParser
extends Object

Checks a String if it contains a Nifty inline color. This class is used while parsing text strings for colors. This has now been changed to not return an Result instance anymore but simply remembers the last result in instance variables. This makes the class not thread-safe but it was not shared between threads anyway.

Author:
void

Constructor Summary
ColorValueParser()
           
 
Method Summary
 Color getColor()
           
 int getNextIndex()
           
 boolean isColor()
           
 boolean isColor(String text, int startIdx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorValueParser

public ColorValueParser()
Method Detail

isColor

public boolean isColor()

getNextIndex

public int getNextIndex()

getColor

public Color getColor()

isColor

public boolean isColor(String text,
                       int startIdx)


Copyright © 2012. All Rights Reserved.