ibm_ilog.diagram.util.Geometry (version 1.1-SNAPSHOT)
Object » ibm_ilog.diagram.util.Geometry
Method Summary
- EmptyPoint()
- InvalidPoint()
- Point(x, y)
- PointZero()
- Rect(x, y, w, h)
- addPoint(p1, p2)
- addRect(a, b)
- clipRect(cr, r) rectangle
- cloneRect(r)
- constrainRect(r, area, resize)
- containsPoint(r, p)
- containsRect(cr, r)
- createRect(p1, p2)
- equalPoint(p1, p2)
- equalRect(r1, r2)
- equalSize(p1, p2)
- expandRect(rect, l, t, r, b)
- floorPoint(p)
- floorSize(sz)
- getDistance(p1, p2)
- getPointToSegmentDistance(A, B, C)
- getRectCenter(r)
- getRectRatio(r)
- getScale(x, y)
- getStrokeWidth(stroke, t)
- growRect(r, minSize)
- isEmptyPoint(p)
- isEmptyRect(r)
- isInvalidPoint(p)
- isNullSize(r) returns true when r is a "null" rectangle: width and height are 0 or undefined
- moveRect(r, delta)
- mulPoint(p1, s)
- mulSize(p1, s)
- negPoint(p)
- printPoint(p)
- printRect(r)
- printSize(p)
- rectAssign(a, b)
- rectBlend(r1, r2, factor)
- rectCenteredAt(r, p, center)
- rectCenteredOverride(oldr, newr) Returns new rectangle based on the overriding of a base rectangle with override values from newr.
- rectEqualOrigin(r1, r2, resolution)
- rectEqualSize(r1, r2, resolution)
- rectIncomplete(r)
- rectIntersects(rect1, rect2)
- relocateRect(r, p)
- sizeLongestSide(sz)
- standarizeRect(r)
- subPoint(p1, p2)
- visitMembers(obj, visitor)
- visitSize(op, size)
Attached Objects
Methods
a rectangle representing the addition of the two given.
Parameter | Type | Description |
---|---|---|
a | dojox.gfx.Rectangle | |
b | dojox.gfx.Rectangle |
Boolean
true when the two rects are equal
Parameter | Type | Description |
---|---|---|
p1 | dojox.gfx.Point | |
p2 | dojox.gfx.Point |
true when the two rects are equal
Parameter | Type | Description |
---|---|---|
r1 | dojox.gfx.Rectangle | |
r2 | dojox.gfx.Rectangle |
a point equal to the center of the rectangle r
Parameter | Type | Description |
---|---|---|
r | dojox.gfx.Rectangle |
returns true when r is a "null" rectangle: width and height are 0 or undefined
Parameter | Type | Description |
---|---|---|
r | dojox.gfx.Rectangle |
a copy of r but centered at p
Parameter | Type | Description |
---|---|---|
r | dojox.gfx.Rectangle | |
p | dojox.gfx.Point | |
center | dojox.gfx.Point | Optional. |
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.
Parameter | Type | Description |
---|---|---|
oldr | The | fake asignee it will not be changed |
newr | The | incomplete rectangle that holds the new values |