IBM ILOG Dojo Diagrammer 1.1 API Documentation
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

ibm_ilog.diagram.util.Geometry

Object » ibm_ilog.diagram.util.Geometry

Method Summary

Attached Objects

Methods

EmptyPoint
dojox.gfx.Point
InvalidPoint
dojox.gfx.Point
Point
dojox.gfx.Point
ParameterTypeDescription
xNumber
yNumber
PointZero
dojox.gfx.Point
Rect
ParameterTypeDescription
xNumber
yNumber
wNumber
hNumber
addPoint
dojox.gfx.Point
ParameterTypeDescription
p1dojox.gfx.Point
p2dojox.gfx.Point
addRect
a rectangle representing the addition of the two given.
ParameterTypeDescription
adojox.gfx.Rectangle
bdojox.gfx.Rectangle
clipRect
rectangle
ParameterTypeDescription
crclippingrectangle
rclipee
cloneRect
ParameterTypeDescription
rdojox.gfx.Rectangle
constrainRect
ParameterTypeDescription
r
area
resize
containsPoint
ParameterTypeDescription
r
p
containsRect
ParameterTypeDescription
cr
r
createRect
ParameterTypeDescription
p1
p2
equalPoint
Boolean true when the two rects are equal
ParameterTypeDescription
p1dojox.gfx.Point
p2dojox.gfx.Point
equalRect
true when the two rects are equal
ParameterTypeDescription
r1dojox.gfx.Rectangle
r2dojox.gfx.Rectangle
equalSize
true when the two rects are equal
ParameterTypeDescription
p1
p2
expandRect
ParameterTypeDescription
rect
l
t
r
b
floorPoint
dojox.gfx.Point
ParameterTypeDescription
pdojox.gfx.Point
floorSize
ParameterTypeDescription
sz
getDistance
Number
ParameterTypeDescription
p1dojox.gfx.Point
p2dojox.gfx.Point
getPointToSegmentDistance
ParameterTypeDescription
A
B
C
getRectCenter
a point equal to the center of the rectangle r
ParameterTypeDescription
rdojox.gfx.Rectangle
getRectRatio
ParameterTypeDescription
r
getScale
Number
ParameterTypeDescription
xNumber
yNumber
getStrokeWidth
ParameterTypeDescription
stroke
t
growRect
ParameterTypeDescription
rdojox.gfx.Rectangle
minSizeibm_ilog.diagram.util.Geometry.Size
isEmptyPoint
Boolean
ParameterTypeDescription
pdojox.gfx.Point
isEmptyRect
true when r is the empty rectangle.
ParameterTypeDescription
rdojox.gfx.Rectangle
isInvalidPoint
Boolean
ParameterTypeDescription
pdojox.gfx.Point
isNullSize
returns true when r is a "null" rectangle: width and height are 0 or undefined
ParameterTypeDescription
rdojox.gfx.Rectangle
moveRect
ParameterTypeDescription
rdojox.gfx.Rectangle
deltadojox.gfx.Point
mulPoint
dojox.gfx.Point
ParameterTypeDescription
p1
sNumber
mulSize
ParameterTypeDescription
p1
s
negPoint
dojox.gfx.Point
ParameterTypeDescription
pdojox.gfx.Point
printPoint
dojox.gfx.Point
ParameterTypeDescription
pdojox.gfx.Point
printRect
ParameterTypeDescription
r
printSize
ParameterTypeDescription
pibm_ilog.diagram.util.Geometry.Size
rectAssign
ParameterTypeDescription
a
b
rectBlend
ParameterTypeDescription
r1
r2
factor
rectCenteredAt
a copy of r but centered at p
ParameterTypeDescription
rdojox.gfx.Rectangle
pdojox.gfx.Point
centerdojox.gfx.Point
Optional.
rectCenteredOverride

Receives an incomplete rectangle newr and assigns its values to oldr, returning the result. It does not change the original rectangle. The semantics are fairly straighforward except for one case: if the newr specifies a new width or height and does not specify the corresponding x or y, then the resulting rectangle is resized centered, instead of keeping its original location.

ParameterTypeDescription
oldrThefake asignee it will not be changed
newrTheincomplete rectangle that holds the new values
rectEqualOrigin
ParameterTypeDescription
r1
r2
resolution
rectEqualSize
ParameterTypeDescription
r1
r2
resolution
rectIncomplete
ParameterTypeDescription
rdojox.gfx.Rectangle
rectIntersects
ParameterTypeDescription
rect1
rect2
relocateRect
ParameterTypeDescription
rdojox.gfx.Rectangle
pdojox.gfx.Point
sizeLongestSide
ParameterTypeDescription
szibm_ilog.diagram.util.Geometry.Size
standarizeRect
ParameterTypeDescription
rdojox.gfx.Rectangle
subPoint
dojox.gfx.Point
ParameterTypeDescription
p1dojox.gfx.Point
p2dojox.gfx.Point
visitMembers
ParameterTypeDescription
obj
visitor
visitSize
ParameterTypeDescription
opFunction
sizeibm_ilog.diagram.util.Geometry.Size