|
|||||
| SUMMARY: FIELD | CONSTR | METHOD| EVENT | DETAIL: FIELD | CONSTR | METHOD| EVENT | ||||
Instances of this class represent a box (rectangle).
| Field Summary | |
|---|---|
Number |
maxX
Right side of the box. |
Number |
maxY
Lower side of the box. |
Number |
minX
Left side of the box. |
Number |
minY
Upper side of the box. |
| Constructor Summary | |
|---|---|
GraphBounds(Number minX, Number maxX, Number minY, Number maxY)
This is an axis parallel bounding box. |
|
| Method Summary | |
|---|---|
Number |
area()
returns the area. |
Object |
center()
returns the center as an object with x and y attributes. |
yfiles/client/tiles/GraphBounds |
enlarge(Number size)
returns a new instance that has been enlarged by the provided size on all sides. |
Number |
height()
returns the height. |
yfiles/client/tiles/GraphBounds |
intersect(yfiles/client/tiles/GraphBounds another)
returns a new instance which is the intersection of this and another. |
yfiles/client/tiles/GraphBounds |
round()
returns a new instance with Math.floor() applied to all four parameters. |
yfiles/client/tiles/GraphBounds |
scale(Number factor)
returns a new instance for which all four parameters (see the constructor) are multplied with the given factor. |
yfiles/client/tiles/GraphBounds |
shift(Number deltaX, Number deltaY)
returns a new instance which is this shifted by deltaX in x direction and shifted by deltaY in y direction. |
yfiles/client/tiles/GraphBounds |
union(yfiles/client/tiles/GraphBounds another)
returns a new instance which is the union of this and another. |
Number |
width()
returns the width. |
| Field Detail |
|---|
Number maxX
Right side of the box.
Number maxY
Lower side of the box.
Number minX
Left side of the box.
Number minY
Upper side of the box.
| Constructor Detail |
|---|
GraphBounds(Number minX, Number maxX, Number minY, Number maxY)
This is an axis parallel bounding box.
minX - left side of the box
maxX - right side of the box
minY - upper side of the box
maxY - lower side of the box
| Method Detail |
|---|
Number area()
returns the area.
Object center()
returns the center as an object with x and y attributes.
yfiles/client/tiles/GraphBounds enlarge(Number size)
returns a new instance that has been enlarged by the provided size on all sides.
size - the size to add to the rectangle's bounds on all sides
Number height()
returns the height.
yfiles/client/tiles/GraphBounds intersect(yfiles/client/tiles/GraphBounds another)
returns a new instance which is the intersection of this and another.
another - another GraphBounds instance
yfiles/client/tiles/GraphBounds round()
returns a new instance with Math.floor() applied to all four parameters.
yfiles/client/tiles/GraphBounds scale(Number factor)
returns a new instance for which all four parameters (see the constructor) are multplied with the given factor.
factor - the scaling factor
yfiles/client/tiles/GraphBounds shift(Number deltaX, Number deltaY)
returns a new instance which is this shifted by deltaX in x direction and shifted by deltaY in y direction.
deltaX - shift amount in x direction
deltaY - shift amount in y direction
yfiles/client/tiles/GraphBounds union(yfiles/client/tiles/GraphBounds another)
returns a new instance which is the union of this and another.
another - another GraphBounds instance
Number width()
returns the width.