Package | Description |
---|---|
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 |
---|---|
protected INodeLayout |
LayoutGraphAdapter.createEdgePortLayout(IPort port)
Callback factory method that creates the
INodeLayout for the given IPort that is used as a dummy to
represent the port at the IEdge that owns port . |
protected INodeLayout |
DefaultLayoutGraph.createNodeLayout()
Creates a new implementation of
INodeLayout . |
protected INodeLayout |
LayoutGraphAdapter.createNodeLayout(INode node)
Factory method that creates a
INodeLayout implementation that wraps the given INode . |
abstract INodeLayout |
LayoutGraph.getLayout(Node node)
Returns the layout information for the given node.
|
INodeLayout |
DefaultLayoutGraph.getLayout(Node node) |
INodeLayout |
CopiedLayoutGraph.getLayout(Node copiedNode)
Returns the layout information for the given node of the copied graph.
|
INodeLayout |
LayoutGraphAdapter.getNodeLayout(Object o) |
Modifier and Type | Method and Description |
---|---|
YPoint |
IIntersectionCalculator.calculateIntersectionPoint(INodeLayout nodeLayout,
double xOffset,
double yOffset,
double dx,
double dy)
Calculates an intersection point between the edge and the given
INodeLayout . |
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) |
Object |
INodeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
INodeLayout nodeLayout)
Creates a model parameter that represents the given node label position within this model.
|
Object |
FreeNodeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
INodeLayout nodeLayout)
Creates a model parameter that represents the given node label position within this model.
|
Object |
DiscreteNodeLabelLayoutModel.createModelParameter(YOrientedRectangle labelBounds,
INodeLayout nodeLayout) |
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) |
YList |
INodeLabelLayoutModel.getLabelCandidates(INodeLabelLayout labelLayout,
INodeLayout nodeLayout)
Returns all
NodeLabelCandidate s that describe valid label positions within this model. |
YList |
FreeNodeLabelLayoutModel.getLabelCandidates(INodeLabelLayout labelLayout,
INodeLayout nodeLayout)
Returns the
NodeLabelCandidate that describes the current label position. |
YList |
DiscreteNodeLabelLayoutModel.getLabelCandidates(INodeLabelLayout labelLayout,
INodeLayout nodeLayout) |
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) |
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.
|
void |
DefaultLayoutGraph.setLayout(Node node,
INodeLayout layout)
Specifies the layout information for the given node.
|
Modifier and Type | Method and Description |
---|---|
BorderLine |
INodeData.createBorderLine(int side,
INodeLayout nodeLayout)
Creates, stores and returns a
BorderLine for the given side or returns the current BorderLine instance
if it already exists. |
Modifier and Type | Method and Description |
---|---|
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 |
DefaultNodePlacer.calculateSlopedSourceEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge,
double childForkCoordinate,
double rootForkCoordinate)
Calculates the routing of the source side of the edge to the given child node.
|
protected void |
DefaultNodePlacer.calculateSourceEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge)
Calculates the routing of the source side of the edge to the given child node.
|
protected void |
DefaultNodePlacer.calculateTargetEdgeLayout(INodeLayout rootLayout,
TreeLayout.SubtreeShape childShape,
Edge edge)
Calculates the routing of the target side of the edge to the given child node.
|