de.lessvoid.nifty.tools
Class ColorValidator

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

public class ColorValidator
extends Object

This checks a given String that represents a color for being valid. Supported are both short mode "#f12f" and long mode "#ff1122ff"

Author:
void

Constructor Summary
ColorValidator()
           
 
Method Summary
 boolean isLongMode(String toCheck)
           
 boolean isLongModeWithoutAlpha(String toCheck)
           
 boolean isShortMode(String toCheck)
           
 boolean isShortModeWithoutAlpha(String toCheck)
           
 boolean isValid(String toCheck)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorValidator

public ColorValidator()
Method Detail

isValid

public boolean isValid(String toCheck)

isShortMode

public boolean isShortMode(String toCheck)

isShortModeWithoutAlpha

public boolean isShortModeWithoutAlpha(String toCheck)

isLongMode

public boolean isLongMode(String toCheck)

isLongModeWithoutAlpha

public boolean isLongModeWithoutAlpha(String toCheck)


Copyright © 2011. All Rights Reserved.