documentationfor yFiles for HTML 2.6

Usages of Rectangle2D

Properties

bounds2Din Rectangle2DGets the bounds of this instance in double precision.
framein Rectangle2DGets or sets the outer bounds of this rectangle in double coordinates.
rectin Rectangle2DSets the location and size of this rectangle to be similar to the specified rectangle.
boundsin SubtreeShapeGets the current bounds of this SubtreeShape instance.
coreBoundsin SubtreeShapeGets the bounds of the INodeLayout of the root node of this SubtreeShape instance.

Method Return Values

calcIntersection (Rectangle2D, Rectangle2D, Rectangle2D)in GeomIntersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
calcUnion (Rectangle2D, Rectangle2D, Rectangle2D)in GeomUnions the pair of source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
createIntersection (Rectangle2D)in Rectangle2DCalculates the intersection of this rectangle with the given rectangle and returns the result as new rectangle.
createUnion (Rectangle2D)in Rectangle2DCalculates the union of this rectangle with the given rectangle and returns the result as new rectangle.
toRectangle2D ()in RectCreates a Rectangle2D from a given Rect.
calculateBounds (LayoutGraph)in ComponentLayoutCalculates the bounding box of a graph component including NodeHalos.
calculateBounds (LayoutGraph, YNodeList)in FixNodeLayoutStageCalculates the bounding box of the specified nodes.
calculateBounds (LayoutGraph, YNode, YNodeList)in ILayoutGroupBoundsCalculatorCalculates the bounds of the given group node that contains the given list of child nodes.
calculateBounds (LayoutGraph, YNode, YNodeList)in InsetsGroupBoundsCalculatorCalculates the bounds of the given group node and enlarges the bounds by the insets associated with the group node.
createEnlargedBounds (LayoutGraph, YNode, YNodeList, Rectangle2D)in InsetsGroupBoundsCalculatorEnlarges the given graph bounds by the insets associated with the given group node.
getBoundingBox (LayoutGraph, INodeCursor, IEdgeCursor)in LayoutGraphUtilitiesReturns the bounding box of the nodes and edges accessible through the given cursors.
getBoundingBox (LayoutGraph, YNode)in LayoutGraphUtilitiesReturns the bounding box of the given node.
getBoundingBox (LayoutGraph, Edge)in LayoutGraphUtilitiesReturns the bounding box of the given edge.
getBoundingBox (LayoutGraph, INodeCursor, IEdgeCursor, boolean)in LayoutGraphUtilitiesReturns the bounding box of the nodes and edges accessible through the given cursors, optionally including node labels and edge labels.
getBoundingBox (LayoutGraph, INodeCursor, IEdgeCursor, boolean, boolean, boolean?)in LayoutGraphUtilitiesReturns the bounding box of the nodes and edges accessible through the given cursors, optionally including node labels, edge labels or NodeHalos.
getBoundingBoxOfEdges (LayoutGraph, IEdgeCursor)in LayoutGraphUtilitiesReturns the bounding box of the edges accessible through the given cursor.
getBoundingBoxOfNodes (LayoutGraph, INodeCursor)in LayoutGraphUtilitiesReturns the bounding box of the nodes accessible through the given cursor.
calculateBounds (LayoutGraph, YNode, YNodeList)in MinimumSizeGroupBoundsCalculatorCalculates the bounds of the given group node, enlarges the bounds by the insets associated with the group node and makes sure that the size of the group node obeys the associated minimum size.
getBounds (IList<Object>)in RootNodeAlignmentCalculates the common bounds of the given subtree shapes.

Method Parameters

calcIntersection (Rectangle2D, Rectangle2D, Rectangle2D)in GeomIntersects the pair of specified source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
calcUnion (Rectangle2D, Rectangle2D, Rectangle2D)in GeomUnions the pair of source Rectangle2D objects and puts the result into the specified destination Rectangle2D object.
add (Rectangle2D)in Rectangle2DAdds a rectangle to this rectangle.
contains (Rectangle2D)in Rectangle2DChecks whether this rectangle completely contains the second specified rectangle.
createIntersection (Rectangle2D)in Rectangle2DCalculates the intersection of this rectangle with the given rectangle and returns the result as new rectangle.
createUnion (Rectangle2D)in Rectangle2DCalculates the union of this rectangle with the given rectangle and returns the result as new rectangle.
intersect (Rectangle2D, Rectangle2D, Rectangle2D)in Rectangle2DCalculates the intersection of the first and second specified rectangle and sets the resulting location and size to the third rectangle.
intersects (Rectangle2D)in Rectangle2DChecks whether this rectangle and the second specified rectangle intersect.
union (Rectangle2D, Rectangle2D, Rectangle2D)in Rectangle2DCalculates the union of the first and second specified rectangle and sets the resulting location and size to the third rectangle.
createDistanceNode (ILayer, Rectangle2D, Edge)in IItemFactoryCreates a spacer YNode for the drawing phase using the given bounds in the given ILayer.
arrangeComponents (LayoutGraph, YNodeList, EdgeList, YRectangle, Rectangle2D)in ComponentLayoutProduces a component graph layout.
arrangeFields (LayoutGraph, YNodeList, EdgeList, YRectangle, Rectangle2D, boolean, boolean, boolean)in ComponentLayoutArranges the bounding boxes of the components.
calculateFixPoint (Rectangle2D)in FixNodeLayoutStageCalculates the fix point of the specified rectangle according to the policy returned by fixPointPolicy.
createEnlargedBounds (LayoutGraph, YNode, YNodeList, Rectangle2D)in InsetsGroupBoundsCalculatorEnlarges the given graph bounds by the insets associated with the given group node.
arrangeRectangleGrid (Rectangle2D, Rectangle2D, number)in LayoutGraphUtilitiesReassigns the bounds of the rectangles in a grid to fit in a large rectangle with an aspect ratio close to the specified aspect ratio.
arrangeRectangleMultiRows (Rectangle2D, Rectangle2D, number, number, boolean, MultiRowConstraint, RowAlignment?)in LayoutGraphUtilitiesReassigns the bounds of the rectangles in multiple rows to fit the preferred width and height.
arrangeRectangleRows (Rectangle2D, Rectangle2D, number, RowAlignment?)in LayoutGraphUtilitiesReassigns the bounds of the rectangles to fit in a large rectangle with an aspect ratio close to the specified aspect ratio.
pathIntersectsRect (LayoutGraph, Edge, Rectangle2D)in LayoutGraphUtilitiesChecks whether or not the path of the given edge intersects the interior of a given rectangular area.
placeParentHorizontal (RotatedSubtreeShape, IList<Object>, Rectangle2D, number)in RootNodeAlignmentMoves the shape of the local root to a suitable position relative to the children's shapes.