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.multipage |
Provides the
MultiPageLayout that subdivides the input graph into several smaller graphs whose layouts fit the specified maximum page size. |
Modifier and Type | Class and Description |
---|---|
class |
YRectangle
This class defines a rectangle and provides utility methods for it.
|
Modifier and Type | Method and Description |
---|---|
YDimension |
YOrientedRectangle.getSize()
Gets the size of this rectangle.
|
Modifier and Type | Method and Description |
---|---|
void |
YOrientedRectangle.setSize(YDimension value)
Sets the size of this rectangle.
|
Constructor and Description |
---|
YOrientedRectangle(YPoint anchor,
YDimension size)
Creates a new instance using the provided values to initialize the anchor and size.
|
YOrientedRectangle(YPoint position,
YDimension size,
YVector upVector)
Creates a new instance using the provided values to initialize anchor, size, and up vector.
|
YRectangle(YPoint pos,
YDimension size)
Creates a new rectangle with given upper left corner and size.
|
Modifier and Type | Field and Description |
---|---|
static NodeDpKey<YDimension> |
GroupingKeys.MINIMUM_NODE_SIZE_DPKEY
A
DataProvider key for assigning minimum sizes for group nodes.
|
Modifier and Type | Method and Description |
---|---|
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.
|
YDimension |
OrientationLayout.createOrientedNodeSize(YDimension nodeSize)
Creates a
YDimension that is a geometric transformation of the given size. |
YDimension |
MinimumSizeGroupBoundsCalculator.getDefaultMinimumNodeSize()
Gets the default minimum size (width and height) for group nodes.
|
YDimension |
ComponentLayout.getPreferredSize()
Gets the preferred size of the layout.
|
YDimension |
LabelCandidate.getSize()
Gets the width and height of the candidate's bounds.
|
YDimension |
LayoutGraph.getSize(Node node)
Returns the size of the given node.
|
Modifier and Type | Method and Description |
---|---|
YDimension |
OrientationLayout.createOrientedNodeSize(YDimension nodeSize)
Creates a
YDimension that is a geometric transformation of the given size. |
static YPoint |
LayoutGraphUtilities.getLabelPlacement(IEdgeLabelLayoutModel model,
YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout,
Object param)
Returns the upper-left corner of the paraxial bounding box of the given edge label as encoded by the specified model
parameter.
|
static YPoint |
LayoutGraphUtilities.getLabelPlacement(INodeLabelLayoutModel model,
YDimension labelSize,
INodeLayout nodeLayout,
Object param)
Returns the upper-left corner of the paraxial bounding box of the given node label as encoded by the specified model
parameter.
|
protected YOrientedRectangle |
DiscreteEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout,
DiscreteEdgeLabelPositions position)
Returns the oriented box of the label for the given label position.
|
YOrientedRectangle |
SliderEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode,
Object para) |
YOrientedRectangle |
IEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout,
Object parameter)
Returns the oriented box of the label for the position encoded by the given model parameter.
|
YOrientedRectangle |
FreeEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode,
Object param) |
YOrientedRectangle |
DiscreteEdgeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode,
Object param) |
protected YOrientedRectangle |
DiscreteNodeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
INodeLayout nodeLayout,
DiscreteNodeLabelPositions position)
Returns the oriented box of the label for the given label position.
|
YOrientedRectangle |
INodeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
INodeLayout nodeLayout,
Object param)
Returns the bounds of the label for the position encoded by the given model parameter.
|
YOrientedRectangle |
FreeNodeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
INodeLayout nodeLayout,
Object param) |
YOrientedRectangle |
DiscreteNodeLabelLayoutModel.getLabelPlacement(YDimension labelSize,
INodeLayout nodeLayout,
Object parameter) |
void |
MinimumSizeGroupBoundsCalculator.setDefaultMinimumNodeSize(YDimension value)
Sets the default minimum size (width and height) for group nodes.
|
void |
ComponentLayout.setPreferredSize(YDimension value)
Sets the preferred size of the layout.
|
void |
LayoutGraph.setSize(Node node,
YDimension size)
Specifies the size of the given node.
|
Constructor and Description |
---|
EdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner)
Creates a new instance of
EdgeLabelCandidate described by location, size, model parameter and internal flag. |
EdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
boolean internal)
Creates a new instance of
EdgeLabelCandidate described by location, size, model parameter and internal flag. |
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedEdgeLabelCandidate(YPoint pos,
YDimension size,
Object param,
IEdgeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
ExtendedNodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedNodeLabelCandidate.
|
LabelCandidate(YPoint pos,
YDimension size,
Object param,
ILabelLayout owner)
Creates a new instance of
LabelCandidate described by location, size, model parameter and internal flag. |
LabelCandidate(YPoint pos,
YDimension size,
Object param,
ILabelLayout owner,
boolean internal)
Creates a new instance of
LabelCandidate described by location, size, model parameter and internal flag. |
NodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner)
Creates a new instance of
NodeLabelCandidate described by location, size, model parameter and internal flag. |
NodeLabelCandidate(YPoint pos,
YDimension size,
Object param,
INodeLabelLayout owner,
boolean internal)
Creates a new instance of
NodeLabelCandidate described by location, size, model parameter and internal flag. |
Modifier and Type | Method and Description |
---|---|
protected YDimension |
DefaultElementFactory.getDefaultNodeSize(LayoutContext context,
Object id,
byte type)
Returns the default size for nodes created by this factory.
|
YDimension |
MultiPageLayout.getMaximumPageSize()
Gets the maximum size of a single page.
|
Modifier and Type | Method and Description |
---|---|
void |
MultiPageLayout.setMaximumPageSize(YDimension value)
Sets the maximum size of a single page.
|