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.labeling |
Provides algorithms for the automatic placement of node and edge labels, so called generic labeling algorithms.
|
com.yworks.yfiles.layout.multipage |
Provides the
MultiPageLayout that subdivides the input graph into several smaller graphs whose layouts fit the specified maximum page size. |
com.yworks.yfiles.layout.router.polyline |
Provides classes and interfaces for automatic polyline routing of the edges of a graph.
|
Modifier and Type | Method and Description |
---|---|
YRectangle |
YRectangle.getBoundingBox()
Gets this object.
|
YRectangle |
YOrientedRectangle.getBoundingBox()
Calculates the paraxial bounding box of this oriented rectangle.
|
YRectangle |
LineSegment.getBoundingBox()
Gets the smallest Rectangle which contains the object.
|
YRectangle |
IPlaneObject.getBoundingBox()
Gets the smallest Rectangle which contains the object.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
LineSegment.boxIntersectsSegment(YRectangle box,
double x1,
double y1,
double x2,
double y2)
Checks whether a line segment intersects a box.
|
static boolean |
LineSegment.boxIntersectsSegment(YRectangle box,
YPoint s,
YPoint t)
Checks whether a line segment intersects a box.
|
boolean |
YRectangle.contains(YRectangle p)
Checks whether or not this
YRectangle contains the given rectangle. |
double |
YRectangle.getEuclideanDistance(YRectangle other)
Returns the Euclidean distance to the passed rectangle.
|
double |
YRectangle.getManhattanDistance(YRectangle other)
Returns the Manhattan distance to the passed rectangle.
|
static boolean |
YOrientedRectangle.intersects(YOrientedRectangle orientedRectangle,
YRectangle rectangle,
double eps)
Determines whether a rectangle intersects an oriented rectangle, given an epsilon.
|
boolean |
LineSegment.intersects(YRectangle box)
Checks whether the line segment intersects a box.
|
static boolean |
YRectangle.intersects(YRectangle r1,
YRectangle r2)
Returns whether or not the given rectangles intersect.
|
Constructor and Description |
---|
YOrientedRectangle(YRectangle rect)
Creates a new instance using the provided rectangle's values to initialize anchor and size.
|
Modifier and Type | Method and Description |
---|---|
YRectangle |
LabelCandidate.getBoundingBox()
Gets the bounding box of this candidate.
|
YRectangle |
ILabelLayout.getBoundingBox()
Gets the bounding box of the label.
|
YRectangle |
AbstractLabelLayout.getBoundingBox()
Gets the bounding box of the label.
|
YRectangle |
LayoutGraph.getBoundingBox(Node node)
Returns the rectangle describing the bounding box of the given node.
|
static YRectangle |
NodeHalo.getHaloBox(LayoutGraph graph,
Node node)
Returns a
YRectangle instance with the bounds of the given node including its NodeHalo . |
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 YPointPath |
LayoutGraphUtilities.clipPathOnBounds(YPointPath path,
YRectangle sourceBox,
YRectangle targetBox)
Returns the path of a given edge path clipped on the given bounding boxes of the source and target node.
|
void |
AbstractLabelLayout.setBoundingBox(YRectangle value)
Sets the bounding box of the label.
|
protected void |
ComponentLayout.setOrigin(LayoutGraph graph,
NodeList nodes,
EdgeList edges,
YPoint origin,
YRectangle rectangle)
Moves the subgraph containing the given nodes and edges to the specified origin.
|
Modifier and Type | Field and Description |
---|---|
static NodeDpKey<YRectangle> |
HierarchicLayout.ALTERNATIVE_GROUP_BOUNDS_DPKEY
A
DataProvider key for associating an alternative bounds with the collapsed/expanded group.
|
Modifier and Type | Method and Description |
---|---|
ItemMapping<INode,YRectangle> |
HierarchicLayoutData.getAlternativeGroupBounds()
Gets a mapping from group/folder nodes to alternative bounds for these nodes.
|
Modifier and Type | Method and Description |
---|---|
void |
HierarchicLayoutData.setAlternativeGroupBounds(ItemMapping<INode,YRectangle> value)
Sets a mapping from group/folder nodes to alternative bounds for these nodes.
|
Modifier and Type | Method and Description |
---|---|
protected void |
AbstractMISLabeling.foundHaloOverlap(LabelCandidate labelCandidate,
Node node,
YRectangle haloRect)
Indicates that an overlap between a
LabelCandidate and a NodeHalo of the input graph has been found. |
protected void |
AbstractMISLabeling.foundNodeOverlap(LabelCandidate labelCandidate,
Node node,
YRectangle nodeBox)
Indicates that an overlap between a
LabelCandidate and a Node of the input graph has been found. |
Modifier and Type | Method and Description |
---|---|
protected void |
MultiPageLayout.routeRestoredEdges(LayoutGraph graph,
IDataProvider selectedEdgesDP,
YRectangle boundingRectangle)
This method is called by
MultiPageLayout.removeConnectorPair(Node, Node, YList, LayoutContext) to route the restored edges. |
Modifier and Type | Method and Description |
---|---|
static YRectangle |
Interval.calculateSpanningRectangle(Interval horizontal,
Interval vertical)
Returns the spanning rectangle between the given
intervals . |
YRectangle |
PartitionCell.getBounds()
Gets the bounds of this
PartitionCell . |
YRectangle |
Obstacle.getBounds()
Gets the bounds of the obstacle.
|
YRectangle |
IPartition.getBounds()
Gets the bounds of the original rectangular area that is partitioned.
|
YRectangle |
GraphPartition.getBounds()
Gets the bounds of the original rectangular area that is being partitioned.
|
YRectangle |
DynamicObstacleDecomposition.getBounds()
Gets the bounds of the original rectangular area that is being partitioned.
|
YRectangle |
Channel.getBounds()
Gets the bounds of this
channel . |
Modifier and Type | Method and Description |
---|---|
Obstacle |
GraphPartition.createObstacle(YRectangle bounds,
Object data)
Creates and returns a new
Obstacle using the given bounds and data. |
List<Object> |
IPartition.getCells(YRectangle rect)
Returns a list of all
PartitionCell s that intersect or cover the given rectangle. |
List<Object> |
GraphPartition.getCells(YRectangle rect)
Returns a list of all
PartitionCell s that intersect or cover the given rectangle by delegating to the
corresponding method of the inner partition . |
List<Object> |
DynamicObstacleDecomposition.getCells(YRectangle rect)
Returns a list of all
PartitionCell s that intersect or cover the given rectangle. |
void |
IObstaclePartition.init(List<Object> obstacles,
YRectangle bounds)
Initializes a new
IObstaclePartition of the area with the given bounds using the given list of
Obstacle s. |
void |
DynamicObstacleDecomposition.init(List<Object> obstacles,
YRectangle partitionBounds)
Initializes this
DynamicObstacleDecomposition instance with the given obstacles and partition bounds. |
Constructor and Description |
---|
Obstacle(YRectangle bounds,
Object data)
Creates a new
Obstacle instance with the given bounds and additional data. |
PartitionCell(YRectangle bounds,
IPartition partition)
Creates a new
PartitionCell of the given IPartition with the location and the size of the given
rectangle. |