Package zebkit.util |
Number of different utilities methods and classes.
public | <Integer> | compareDates (d1, d2) |
public | void | intersection (x1, y1, w1, h1, x2, y2, w2, h2, r) |
public | <Boolean> | isIntersect (x1, y1, w1, h1, x2, y2, w2, h2) |
public | void | unite (x1, y1, w1, h1, x2, y2, w2, h2, r) |
public | <Boolean> | validateDate (date) |
protected
|
void | validateValue (value, [allowedValues]) |
public
void
intersection (x1, y1, w1, h1, x2, y2, w2, h2, r )
Compute intersection of the two given rectangular areas Parameters:
|
public
<Boolean>
isIntersect (x1, y1, w1, h1, x2, y2, w2, h2 )
Test if two rectangular areas have intersection Parameters:
Returns:
<Boolean>
true if the given two rectangular areas intersect |
public
void
unite (x1, y1, w1, h1, x2, y2, w2, h2, r )
Unite two rectangular areas to one rectangular area. Parameters:
|
protected
void
validateValue (value, [allowedValues] )
Validate the specified value to be equal one of the given values Parameters:
Throws:
Error if the value doesn't match any valid value Example:
|