Package | Description |
---|---|
com.yworks.yfiles.algorithms | |
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.layout.hierarchic |
Provides hierarchic layout style algorithms.
|
com.yworks.yfiles.layout.tree |
Provides tree layout style algorithms.
|
Modifier and Type | Method and Description |
---|---|
static Rectangle2D |
Geom.calcIntersection(Rectangle2D r1,
Rectangle2D r2,
Rectangle2D dest)
Intersects the pair of specified source
Rectangle2D objects and puts the result into the specified destination Rectangle2D
object. |
static Rectangle2D |
Geom.calcUnion(Rectangle2D r1,
Rectangle2D r2,
Rectangle2D dest)
Unions the pair of source
Rectangle2D objects and puts the result into the specified destination Rectangle2D
object. |
Rectangle2D |
Rectangle2D.clone()
Creates a new instance of this class that has the same values as this objects.
|
Rectangle2D |
Rectangle2D.createIntersection(Rectangle2D r)
Calculates the intersection of this rectangle with the given rectangle and returns the result as new rectangle.
|
Rectangle2D |
Rectangle2D.createUnion(Rectangle2D r)
Calculates the union of this rectangle with the given rectangle and returns the result as new rectangle.
|
Rectangle2D |
Rectangle2D.getBounds2D()
Gets the bounds of this instance in double precision.
|
Rectangle2D |
Rectangle2D.getFrame()
Gets the outer bounds of this rectangle in double coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
Rectangle2D.add(Rectangle2D r)
Adds a rectangle to this rectangle.
|
static Rectangle2D |
Geom.calcIntersection(Rectangle2D r1,
Rectangle2D r2,
Rectangle2D dest)
Intersects the pair of specified source
Rectangle2D objects and puts the result into the specified destination Rectangle2D
object. |
static Rectangle2D |
Geom.calcUnion(Rectangle2D r1,
Rectangle2D r2,
Rectangle2D dest)
Unions the pair of source
Rectangle2D objects and puts the result into the specified destination Rectangle2D
object. |
boolean |
Rectangle2D.contains(Rectangle2D rect)
Checks whether this rectangle completely contains the second specified rectangle.
|
Rectangle2D |
Rectangle2D.createIntersection(Rectangle2D r)
Calculates the intersection of this rectangle with the given rectangle and returns the result as new rectangle.
|
Rectangle2D |
Rectangle2D.createUnion(Rectangle2D r)
Calculates the union of this rectangle with the given rectangle and returns the result as new rectangle.
|
static void |
Rectangle2D.intersect(Rectangle2D src1,
Rectangle2D src2,
Rectangle2D dst)
Calculates the intersection of the first and second specified rectangle and sets the resulting location and size to the
third rectangle.
|
boolean |
Rectangle2D.intersects(Rectangle2D rect)
Checks whether this rectangle and the second specified rectangle intersect.
|
void |
Rectangle2D.setFrame(Rectangle2D value)
Sets the outer bounds of this rectangle in double coordinates.
|
void |
Rectangle2D.setRect(Rectangle2D value)
Sets the location and size of this rectangle to be similar to the specified rectangle.
|
static void |
Rectangle2D.union(Rectangle2D src1,
Rectangle2D src2,
Rectangle2D dst)
Calculates the union of the first and second specified rectangle and sets the resulting location and size to the third
rectangle.
|
Modifier and Type | Method and Description |
---|---|
protected Rectangle2D |
ComponentLayout.calculateBounds(LayoutGraph graph)
Calculates the bounding box of a graph component including
NodeHalo s. |
protected Rectangle2D |
FixNodeLayoutStage.calculateBounds(LayoutGraph graph,
NodeList fixed)
Calculates the bounding box of the specified nodes.
|
Rectangle2D |
MinimumSizeGroupBoundsCalculator.calculateBounds(LayoutGraph graph,
Node groupNode,
NodeList children)
Calculates 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.
|
Rectangle2D |
InsetsGroupBoundsCalculator.calculateBounds(LayoutGraph graph,
Node groupNode,
NodeList children)
Calculates the bounds of the given group node and enlarges the bounds by the insets associated with the group node.
|
Rectangle2D |
IGroupBoundsCalculator.calculateBounds(LayoutGraph graph,
Node groupNode,
NodeList children)
Calculates the bounds of the given group node that contains the given list of child nodes.
|
protected Rectangle2D |
InsetsGroupBoundsCalculator.createEnlargedBounds(LayoutGraph graph,
Node groupNode,
NodeList children,
Rectangle2D bounds)
Enlarges the given graph bounds by the insets associated with the given group node.
|
Rectangle2D |
LayoutGraphAdapter.getBoundingBox() |
Rectangle2D |
LayoutGraph.getBoundingBox() |
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
Edge edge)
Returns the bounding box of the given edge.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
IEdgeCursor edges)
Returns the bounding box of the edges accessible through the given cursor.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
INodeCursor nodes)
Returns the bounding box of the nodes accessible through the given cursor.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
INodeCursor nodes,
IEdgeCursor edges)
Returns the bounding box of the nodes and edges accessible through the given cursors.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
INodeCursor nodes,
IEdgeCursor edges,
boolean includeLabels)
Returns the bounding box of the nodes and edges accessible through the given cursors, optionally including node labels
and edge labels.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
INodeCursor nodes,
IEdgeCursor edges,
boolean includeNodeLabels,
boolean includeEdgeLabels)
Returns the bounding box of the nodes and edges accessible through the given cursors, optionally including node labels
or edge labels.
|
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
INodeCursor nodes,
IEdgeCursor edges,
boolean includeNodeLabels,
boolean includeEdgeLabels,
boolean includeHalos)
Returns the bounding box of the nodes and edges accessible through the given cursors, optionally including node labels,
edge labels or
NodeHalo s. |
static Rectangle2D |
LayoutGraphUtilities.getBoundingBox(LayoutGraph graph,
Node node)
Returns the bounding box of the given node.
|
Modifier and Type | Method and Description |
---|---|
protected void |
ComponentLayout.arrangeComponents(LayoutGraph graph,
NodeList[] nodes,
EdgeList[] edges,
YRectangle[] bbox,
Rectangle2D[] boxes)
Produces a component graph layout.
|
protected void |
ComponentLayout.arrangeFields(LayoutGraph graph,
NodeList[] nodes,
EdgeList[] edges,
YRectangle[] bbox,
Rectangle2D[] boxes,
boolean circular,
boolean fill,
boolean fromSketch)
Arranges the bounding boxes of the components.
|
static YDimension |
LayoutGraphUtilities.arrangeRectangleGrid(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio)
Reassigns the bounds of the rectangles in a grid to fit in a large rectangle with an aspect ratio close to the specified
aspect ratio.
|
static YDimension |
LayoutGraphUtilities.arrangeRectangleGrid(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio)
Reassigns the bounds of the rectangles in a grid to fit in a large rectangle with an aspect ratio close to the specified
aspect ratio.
|
static int |
LayoutGraphUtilities.arrangeRectangleMultiRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double preferredWidth,
double preferredHeight,
boolean compaction,
MultiRowConstraint constraintMode)
Reassigns the bounds of the rectangles in multiple rows to fit the preferred width and height.
|
static int |
LayoutGraphUtilities.arrangeRectangleMultiRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double preferredWidth,
double preferredHeight,
boolean compaction,
MultiRowConstraint constraintMode)
Reassigns the bounds of the rectangles in multiple rows to fit the preferred width and height.
|
static int |
LayoutGraphUtilities.arrangeRectangleMultiRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double preferredWidth,
double preferredHeight,
boolean compaction,
MultiRowConstraint constraintMode,
RowAlignment alignment)
Reassigns the bounds of the rectangles in multiple rows to fit the preferred width and height.
|
static int |
LayoutGraphUtilities.arrangeRectangleMultiRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double preferredWidth,
double preferredHeight,
boolean compaction,
MultiRowConstraint constraintMode,
RowAlignment alignment)
Reassigns the bounds of the rectangles in multiple rows to fit the preferred width and height.
|
static int |
LayoutGraphUtilities.arrangeRectangleRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio)
Reassigns the bounds of the rectangles to fit in a large rectangle with an aspect ratio close to the specified aspect
ratio.
|
static int |
LayoutGraphUtilities.arrangeRectangleRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio)
Reassigns the bounds of the rectangles to fit in a large rectangle with an aspect ratio close to the specified aspect
ratio.
|
static int |
LayoutGraphUtilities.arrangeRectangleRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio,
RowAlignment alignment)
Reassigns the bounds of the rectangles to fit in a large rectangle with an aspect ratio close to the specified aspect
ratio.
|
static int |
LayoutGraphUtilities.arrangeRectangleRows(Rectangle2D[] rectangles,
Rectangle2D finalRect,
double aspectRatio,
RowAlignment alignment)
Reassigns the bounds of the rectangles to fit in a large rectangle with an aspect ratio close to the specified aspect
ratio.
|
protected YPoint |
FixNodeLayoutStage.calculateFixPoint(Rectangle2D bounds)
Calculates the fix point of the specified rectangle according to the policy returned by
FixPointPolicy . |
protected Rectangle2D |
InsetsGroupBoundsCalculator.createEnlargedBounds(LayoutGraph graph,
Node groupNode,
NodeList children,
Rectangle2D bounds)
Enlarges the given graph bounds by the insets associated with the given group node.
|
static boolean |
LayoutGraphUtilities.pathIntersectsRect(LayoutGraph graph,
Edge edge,
Rectangle2D rect)
Checks whether or not the path of the given edge intersects the interior of a given rectangular area.
|
Modifier and Type | Method and Description |
---|---|
Node |
IItemFactory.createDistanceNode(ILayer layer,
Rectangle2D size,
Edge[] edges)
|
Modifier and Type | Method and Description |
---|---|
Rectangle2D |
TreeLayout.SubtreeShape.getBounds()
Gets the current bounds of this
TreeLayout.SubtreeShape instance. |
protected static Rectangle2D |
AbstractRotatableNodePlacer.RootAlignment.getBounds(List<Object> shapes)
Calculates the common bounds of the given subtree shapes.
|
Rectangle2D |
TreeLayout.SubtreeShape.getCoreBounds()
Gets the bounds of the
INodeLayout of the root node of this TreeLayout.SubtreeShape instance. |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
AbstractRotatableNodePlacer.RootAlignment.placeParentHorizontal(RotatedSubtreeShape rootShape,
List<Object> shapes,
Rectangle2D shapeBounds,
double spacing)
Moves the shape of the local root to a suitable position relative to the children's shapes.
|