yfiles.client.tiles.GraphBounds
Class GraphBounds

This is an axis parallel bounding box.

 
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.
 Number height()
          returns the height.
 GraphBounds intersect(/*GraphBounds*/ another)
          returns a new instance which is the intersection of this and another.
 GraphBounds round()
          returns a new instance with Math.floor() applied to all four parameters.
 GraphBounds scale(/*Number*/ factor)
          returns a new instance for which all four parameters (see the constructor) are multplied with the given factor.
 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.
 GraphBounds union(/*GraphBounds*/ another)
          returns a new instance which is the union of this and another.
 Number width()
          returns the width.
 
Field Detail

maxX

/*Number*/ maxX
right side of the box

maxY

/*Number*/ maxY
lower side of the box

minX

/*Number*/ minX
left side of the box

minY

/*Number*/ minY
upper side of the box
 
Constructor Detail

GraphBounds

GraphBounds(/*Number*/ minX, /*Number*/ maxX, /*Number*/ minY, /*Number*/ maxY)
This is an axis parallel bounding box.
Parameters:
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

area

Number area()
returns the area.

height

Number height()
returns the height.

intersect

GraphBounds intersect(/*GraphBounds*/ another)
returns a new instance which is the intersection of this and another.
Parameters:
another - another GraphBounds instance

round

GraphBounds round()
returns a new instance with Math.floor() applied to all four parameters.

scale

GraphBounds scale(/*Number*/ factor)
returns a new instance for which all four parameters (see the constructor) are multplied with the given factor.
Parameters:
factor - the scaling factor

shift

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.
Parameters:
deltaX - shift amount in x direction
deltaY - shift amount in y direction

union

GraphBounds union(/*GraphBounds*/ another)
returns a new instance which is the union of this and another.
Parameters:
another - another GraphBounds instance

width

Number width()
returns the width.

Copyright © 2006-2008 yWorks GmbH. All rights reserved.