Bridges-Java  3.4.3
Bridges(Java API)
Static Public Member Functions | Static Public Attributes | Static Package Functions | List of all members
bridges.validation.Validation Class Reference

Static Public Member Functions

static void validateColor (String color) throws InvalidValueException
 
static void validateShape (String shape)
 
static void validateOpacity (double val)
 
static void validateSize (double val)
 
static void validateThickness (double val)
 
static void validate_ADT_size (int i)
 

Static Public Attributes

static final Set< String > COLOR_NAMES = new HashSet<String>()
 
static final Set< Pattern > COLOR_PATTERNS = new HashSet<Pattern>()
 
static final Set< String > NODE_SHAPES = new HashSet<String>()
 

Static Package Functions

 [static initializer]
 

Member Function Documentation

◆ [static initializer]()

bridges.validation.Validation.[static initializer]
staticpackage

◆ validate_ADT_size()

static void bridges.validation.Validation.validate_ADT_size ( int  i)
static

◆ validateColor()

static void bridges.validation.Validation.validateColor ( String  color) throws InvalidValueException
static

Determine if a color is supported by CSS.

This method only supports a subject of CSS (yet). (1) 173 CSS extended color names, (2) "#RRGGBB" or "#RGB", where R, G and B are red, green, blue values as hexadecimal digits.

This method does not check for null because null has special meaning.

Parameters
color
Returns
whether the color is valid

◆ validateOpacity()

static void bridges.validation.Validation.validateOpacity ( double  val)
static

Determines if the value passed is an acceptable value to set the opacity to.

Parameters
val

◆ validateShape()

static void bridges.validation.Validation.validateShape ( String  shape)
static

Determines if the shape is supported.

Parameters
shape

◆ validateSize()

static void bridges.validation.Validation.validateSize ( double  val)
static

Determines if the size value passed is an acceptable value to set the size to.

Parameters
val

◆ validateThickness()

static void bridges.validation.Validation.validateThickness ( double  val)
static

Determines if the link thickness value passed is an acceptable value to set the size to.

Parameters
val

Member Data Documentation

◆ COLOR_NAMES

final Set<String> bridges.validation.Validation.COLOR_NAMES = new HashSet<String>()
static

◆ COLOR_PATTERNS

final Set<Pattern> bridges.validation.Validation.COLOR_PATTERNS = new HashSet<Pattern>()
static

◆ NODE_SHAPES

final Set<String> bridges.validation.Validation.NODE_SHAPES = new HashSet<String>()
static

The documentation for this class was generated from the following file: