Package | Description |
---|---|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
com.yworks.yfiles.layout.tree |
Provides tree layout style algorithms.
|
Modifier and Type | Method and Description |
---|---|
protected IEdgeLayout |
DefaultLayoutGraph.createEdgeLayout()
Creates a new implementation of
IEdgeLayout . |
protected IEdgeLayout |
LayoutGraphAdapter.createEdgeLayout(IEdge edge)
Factory method that creates an
IEdgeLayout implementation that wraps the given IEdge . |
IEdgeLayout |
LayoutGraphAdapter.getEdgeLayout(Object edge) |
abstract IEdgeLayout |
LayoutGraph.getLayout(Edge edge)
Returns the layout information for the given edge.
|
IEdgeLayout |
DefaultLayoutGraph.getLayout(Edge edge) |
IEdgeLayout |
CopiedLayoutGraph.getLayout(Edge copiedEdge)
Returns the layout information for the given edge of the copied graph.
|
Modifier and Type | Method and Description |
---|---|
static YPointPath |
LayoutGraphUtilities.clipEdgePathOnBounds(IEdgeLayout edge,
INodeLayout source,
INodeLayout target)
Returns the path of an edge clipped on insets of the bounding box of the source and target node.
|
static YPointPath |
LayoutGraphUtilities.clipEdgePathOnBounds(IEdgeLayout edge,
INodeLayout source,
INodeLayout target,
double inset)
Returns the path of an edge clipped on insets of the bounding box of the source and target node.
|
Object |
SliderEdgeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode) |
Object |
IEdgeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout)
Creates a model parameter that represents the given edge label position within this model.
|
Object |
FreeEdgeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout)
Creates a model parameter that represents the given edge label position within this model.
|
Object |
DiscreteEdgeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode) |
YList |
SliderEdgeLabelLayoutModel.getLabelCandidates(IEdgeLabelLayout labelLayout,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout)
Returns all
EdgeLabelCandidate s that describe valid label positions within this model. |
YList |
IEdgeLabelLayoutModel.getLabelCandidates(IEdgeLabelLayout labelLayout,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout)
Returns all
EdgeLabelCandidate s that describe valid label positions within this model. |
YList |
FreeEdgeLabelLayoutModel.getLabelCandidates(IEdgeLabelLayout labelLayout,
IEdgeLayout edgeLayout,
INodeLayout sourceLayout,
INodeLayout targetLayout)
Returns the
EdgeLabelCandidate that describes the current label position. |
YList |
DiscreteEdgeLabelLayoutModel.getLabelCandidates(IEdgeLabelLayout label,
IEdgeLayout edgeLayout,
INodeLayout sourceNode,
INodeLayout targetNode) |
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.
|
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) |
static boolean |
LayoutGraphUtilities.isEdgeOutsideNodes(IEdgeLayout edge,
INodeLayout source,
INodeLayout target,
double halo)
Checks whether or not the path of an edge is outside the bounding box of the source and target node, considering the
given halo.
|
static void |
LayoutGraphUtilities.reverseEdgeLayout(IEdgeLayout el)
Reverses the layout of an edge.
|
void |
DefaultLayoutGraph.setLayout(Edge edge,
IEdgeLayout layout)
Specifies the layout information for the given edge.
|
Modifier and Type | Method and Description |
---|---|
void |
TreeLayout.SubtreeShape.appendTargetPoints(IEdgeLayout edgeLayout)
Appends all target points that have previously been added to this shape to the given
IEdgeLayout instance. |
protected void |
DefaultNodePlacer.calculateParentConnector(LayoutGraph graph,
Node localRoot,
INodeLayout rootLayout,
TreeLayout.SubtreeShape subtreeShape,
Edge parentEdge,
IEdgeLayout parentEdgeLayout,
byte direction)
Calculates the bends for the connector to the parent node.
|
protected void |
AspectRatioTreeLayout.createBends(IEdgeLayout edgeLayout,
Node localRoot,
Node child,
RootPlacement rootPlacement,
SubtreeArrangement routingPolicy)
Adds bends to the given
IEdgeLayout . |