DroidDiagram Programmer's Guide
Utilities Members
Constructors Methods
 


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

 Public Constructors

  Name Description

Utilities

 

 Public Methods

  Name Description

add

Overloaded.  

cartesianToPolar

 

clone

Overloaded.  

concat

Joins array elements using the specified delimiter.

deviceToDoc

 

distToLineSegment

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

docToDevice

 

drawImage

Overloaded.  

filter

Overloaded.  

findValidateRoot

Returns the ancestor component that acts as validate root

getLocation

 

getSize

 

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.

newPoint2D

Overloaded.  

newPointDouble

Overloaded.  

newPointFloat

Overloaded.  

newRectangle2D

 

newRectangleDouble

Overloaded.  

newRectangleFloat

Overloaded.  

normalizeRect

 

parse

Parses space separated numbers into Point2D

polarToCartesian

 

readFileAsString

Returns the content of a file as a string.

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

translate

 

translateX

Overloaded.  

translateY

Overloaded.  

writeStringToFile

Writes the specified string to a file.

 See Also

Utilities Class
com.mindfusion.diagramming Namespace