Search
CommonUtils Members
Constructors Methods
 


The following tables list the members exposed by the CommonUtils type.

 Public Constructors

  Name Description

CommonUtils

 

 Public Methods

  Name Description

add

Overloaded.  

addAll

 

addDirectoryToZip

 

areClose

 

arrayMultiplication

 

cartesianToPolar

 

checkIntersect

Checks if the specified rectangle and circle intersect.

clone

Overloaded.  

colorFromHtml

 

concat

Joins array elements using the specified delimiter.

convertRect

 

deviceToDoc

 

distance

 

distToLineSegment

Calculates distance from the specified point to the specified line segment.

distToRectPoint

Returns the nearest to pt point that lies on the outline of rectangle.

docToDevice

 

filter

Overloaded.  

findValidateRoot

Returns the ancestor component that acts as validate root

flatten

Overloaded.  

fromLTRB

Overloaded.  

getInvariantLocale

 

getIterableSize

 

getLength

Overloaded.  

getLocation

 

getMidColor

 

getScreenResolution

Returns the screen resolution in dots-per-inch. Checks up the availability of the Headless mode.

getSize

 

indexOf

Overloaded.  

isFalse

 

isTrue

 

lineIntersect

Calculates the intersection point of endless lines (pA, pB) and (pC, pD)

lineIntersectHorizontal

Finds the x coordinate of the intersection point of the horizontal line at y and the line defined by points pA and pB. If the lines do not intersect, result is undefined.

lineIntersectVertical

Finds the y coordinate of the intersection point of the vertical line at x and the line defined by points pA and pB. If the lines do not intersect, result is undefined.

minDistToRect

Calculates the minimum distance between a given point and a given rectangle.

nc

Performs a null-coalescing of the specified arguments.

newPoint2D

Overloaded.  

newPointDouble

Overloaded.  

newPointFloat

Overloaded.  

newRectangle2D

 

newRectangleDouble

Overloaded.  

newRectangleFloat

Overloaded.  

normalizeRect

 

parse

Parses space separated numbers into Point2D

polarToCartesian

 

rad

 

readFileAsString

 

resize

 

revalidateSynced

Performs synchronized revalidation to ensure that layout is up to date after this method returns.

set

Overloaded.  

setHeight

 

setLocation

 

setWidth

 

setX

Overloaded.  

setY

Overloaded.  

subtract

Subtract the coordinates of one point from the coordinates of another

toTitleCase

 

translate

 

translateX

Overloaded.  

translateY

Overloaded.  

unzip

 

withOpacity

 

writeStringToFile

 

zipDirectory

 

 See Also