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.organic |
Provides organic layout style algorithms that are based on a force-directed layout paradigm.
|
com.yworks.yfiles.layout.radial |
Provides the radial layout algorithm.
|
com.yworks.yfiles.layout.router |
Provides classes for automatic routing of the edges in a graph.
|
com.yworks.yfiles.layout.router.polyline |
Provides classes and interfaces for automatic polyline routing of the edges of a graph.
|
com.yworks.yfiles.layout.tree |
Provides tree layout style algorithms.
|
Modifier and Type | Field and Description |
---|---|
static YPoint |
YPoint.ORIGIN
A YPoint constant with coordinates (0,0).
|
Modifier and Type | Method and Description |
---|---|
static YPoint |
YPoint.add(YPoint p1,
YPoint p2)
Adds two points and returns the result.
|
static YPoint |
YVector.add(YPoint p,
YVector v)
Adds the vector to a point and returns the resulting point.
|
static YPoint |
Geom.calcIntersection(double x1,
double y1,
double x2,
double y2,
double x3,
double y3,
double x4,
double y4)
Calculates the intersection point of two affine lines.
|
static YPoint |
Geom.calcIntersection(YPoint p1,
YPoint p2,
YPoint p3,
YPoint p4)
Calculates the intersection point of two affine lines.
|
static YPoint |
Geom.calcIntersection(YPoint p1,
YVector d1,
YPoint p2,
YVector d2)
Calculates the intersection point of two affine lines.
|
static YPoint[] |
YOrientedRectangle.calcPoints(YOrientedRectangle rect)
Determines the four corner points of an oriented rectangle.
|
YPoint |
YOrientedRectangle.getAnchor()
Gets the anchor of this oriented rectangle.
|
YPoint |
YOrientedRectangle.getCenter()
Gets the current center of the oriented rectangle.
|
static YPoint |
AffineLine.getCrossing(AffineLine l1,
AffineLine l2)
Returns the crossing of two lines.
|
YPoint |
YPointPath.getFirst()
Gets the first point in the path.
|
YPoint |
LineSegment.getFirstEndPoint()
Gets the first end point of the line segment.
|
static YPoint |
LineSegment.getIntersection(LineSegment s1,
LineSegment s2)
Returns intersection point between the two line segments, if there is one or
null if the two line segments do
not intersect. |
YPoint |
YPointPath.getLast()
Gets the last point in the path.
|
YPoint |
YRectangle.getLocation()
Gets coordinates of upper left corner.
|
YPoint |
LineSegment.getSecondEndPoint()
Gets the second end point of the line segment.
|
YPoint |
AffineLine.getXProjection(YPoint p)
Projects an point on the line in direction of the X-axis.
|
YPoint |
AffineLine.getYProjection(YPoint p)
Projects an point on the line in direction of the Y-axis.
|
static YPoint |
YOrientedRectangle.intersectionPoint(YOrientedRectangle rect,
LineSegment line,
double eps)
Determines an intersection point of the specified oriented rectangle and the specified line segment.
|
static YPoint |
YPoint.midPoint(YPoint p1,
YPoint p2)
Returns a point that geometrically lies in in the middle of the line formed by the given points.
|
YPoint |
YPoint.moveBy(double x,
double y)
Returns the point, got by moving this point to another position.
|
YPoint |
IPointCursor.point()
Gets the instance of YPoint the cursor is currently pointing on.
|
static YPoint |
Geom.projection(double pointX,
double pointY,
double lineX1,
double lineY1,
double lineX2,
double lineY2)
Determines the projection of the point
p onto the line segment [l1, l2] . |
static YPoint |
YPoint.subtract(YPoint p1,
YPoint p2)
Subtracts two points (p1 - p2) and returns the result.
|
static YPoint |
YPoint.swap(YPoint p)
Returns a copy of the given point with exchanged x- and y-coordinates.
|
YPoint[] |
YPointPath.toArray()
Get the points in the list as array.
|
Modifier and Type | Method and Description |
---|---|
static YPoint |
YPoint.add(YPoint p1,
YPoint p2)
Adds two points and returns the result.
|
static YPoint |
YVector.add(YPoint p,
YVector v)
Adds the vector to a point and returns the resulting point.
|
static boolean |
LineSegment.boxIntersectsSegment(YRectangle box,
YPoint s,
YPoint t)
Checks whether a line segment intersects a box.
|
static YPoint |
Geom.calcIntersection(YPoint p1,
YPoint p2,
YPoint p3,
YPoint p4)
Calculates the intersection point of two affine lines.
|
static YPoint |
Geom.calcIntersection(YPoint p1,
YVector d1,
YPoint p2,
YVector d2)
Calculates the intersection point of two affine lines.
|
static boolean |
Geom.collinear(YPoint p,
YPoint q,
YPoint r)
Returns
true iff the given points are collinear, i.e. |
static boolean |
YOrientedRectangle.contains(YOrientedRectangle rect,
YPoint p,
double eps)
Determines whether the given oriented rectangle contains the provided point, using an epsilon value.
|
boolean |
YRectangle.contains(YPoint p)
Checks whether or not this
YRectangle contains the given point. |
boolean |
LineSegment.contains(YPoint point)
Checks whether a given point lies on this line segment.
|
static double |
YPoint.distance(YPoint p1,
YPoint p2)
Returns the euclidean distance between two points.
|
double |
YPoint.distanceTo(YPoint p)
Returns the euclidean distance between this point and a given point.
|
YPoint |
AffineLine.getXProjection(YPoint p)
Projects an point on the line in direction of the X-axis.
|
YPoint |
AffineLine.getYProjection(YPoint p)
Projects an point on the line in direction of the Y-axis.
|
boolean |
LineSegment.intersects(YPoint p)
Checks whether the line segment intersects a point.
|
static boolean |
LineSegment.isHorizontal(YPoint p1,
YPoint p2)
Determines if the given points define a horizontal line segment.
|
static boolean |
LineSegment.isVertical(YPoint p1,
YPoint p2)
Determines if the given points define a vertical line segment.
|
static int |
Groups.kMeansClustering(Graph graph,
INodeMap clusterIDs,
IDataProvider nodePositions,
DistanceMetric distanceMetric,
int k,
int iterations,
YPoint[] centroids)
Partitions the graph into clusters using k-means clustering algorithm.
|
static boolean |
Geom.leftTurn(YPoint p,
YPoint q,
YPoint r)
Same as
orientation(p,q,r) > 0 . |
static YPoint |
YPoint.midPoint(YPoint p1,
YPoint p2)
Returns a point that geometrically lies in in the middle of the line formed by the given points.
|
static int |
Geom.orientation(YPoint p,
YPoint q,
YPoint r)
Returns the orientation of point
r relative to the directed line from point p to point q . |
static boolean |
Geom.rightTurn(YPoint p,
YPoint q,
YPoint r)
Same as
orientation(p,q,r) < 0 . |
void |
YOrientedRectangle.setAnchor(YPoint value)
Sets the anchor of this oriented rectangle.
|
void |
YOrientedRectangle.setCenter(YPoint value)
Sets the current center of the oriented rectangle.
|
static int |
Geom.sideOfCircle(YPoint a,
YPoint b,
YPoint c,
YPoint d)
Returns +1 if point
d lies left of the directed circle through points a , b , and c , 0 if
a,b,c and d are cocircular, and -1 otherwise. |
static YPoint |
YPoint.subtract(YPoint p1,
YPoint p2)
Subtracts two points (p1 - p2) and returns the result.
|
static YPoint |
YPoint.swap(YPoint p)
Returns a copy of the given point with exchanged x- and y-coordinates.
|
Constructor and Description |
---|
AffineLine(YPoint p1,
YPoint p2)
Creates an affine line which is defined by two points.
|
AffineLine(YPoint p1,
YVector v)
Creates an affine line which is defined by a point and a vector.
|
LineSegment(YPoint p1,
YPoint p2)
Returns a new LineSegment.
|
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.
|
YPointPath(YPoint[] path)
Creates a new path from an array of points.
|
YRectangle(YPoint pos,
YDimension size)
Creates a new rectangle with given upper left corner and size.
|
YVector(YPoint p1)
Creates a new vector, whose direction is given by two points.
|
YVector(YPoint p1,
YPoint p2)
Creates a new vector, whose direction is given by two points.
|
Modifier and Type | Method and Description |
---|---|
protected YPoint |
FixNodeLayoutStage.calculateFixPoint(LayoutGraph graph,
NodeList fixed)
Calculates the fix point for the specified nodes in the specified graph.
|
protected YPoint |
FixNodeLayoutStage.calculateFixPoint(Rectangle2D bounds)
Calculates the fix point of the specified rectangle according to the policy returned by
FixPointPolicy . |
YPoint |
IIntersectionCalculator.calculateIntersectionPoint(INodeLayout nodeLayout,
double xOffset,
double yOffset,
double dx,
double dy)
Calculates an intersection point between the edge and the given
INodeLayout . |
protected YPoint |
OrientationLayout.completeTransform(YPoint point)
Transforms the given point during completion.
|
YPoint |
LayoutGraph.getCenter(Node node)
Returns the center coordinates of the given node.
|
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.
|
YPoint |
LabelCandidate.getLocation()
Gets the coordinates of the upper-left corner of the candidate's bounds.
|
YPoint |
LayoutGraph.getLocation(Node node)
Returns the coordinates of the given node's upper-left corner.
|
YPoint |
FreeNodeLabelLayoutModel.ModelParameter.getPoint()
Gets the offset of the label's center to the upper-left corner of the node.
|
YPoint |
FreeEdgeLabelLayoutModel.ModelParameter.getPoint()
Gets a point that represents the location of the label's center in relation to the source point of the edge.
|
YPoint |
IEdgeLayout.getPoint(int index)
Returns the control point at the given position in the sequence of control points.
|
YPoint |
IEdgeLayout.getSourcePoint()
Gets the relative coordinates of the first end point of this layout.
|
YPoint |
LayoutGraph.getSourcePointAbs(Edge edge)
Returns the absolute coordinates of the source point of the given edge.
|
YPoint |
LayoutGraph.getSourcePointRel(Edge edge)
Returns the relative coordinates of the source point of the given edge.
|
YPoint |
IEdgeLayout.getTargetPoint()
Gets the relative coordinates of the second end point of this layout.
|
YPoint |
LayoutGraph.getTargetPointAbs(Edge edge)
Returns the absolute coordinates of the target point of the given edge.
|
YPoint |
LayoutGraph.getTargetPointRel(Edge edge)
Returns the relative coordinates of the target point of the given edge.
|
protected YPoint |
OrientationLayout.prepareTransform(YPoint point)
Transforms the given point during preparation.
|
protected YPoint |
OrientationLayout.transform(YPoint point,
boolean prepare)
Transforms the given point during the preparation or completion step.
|
Modifier and Type | Method and Description |
---|---|
protected YPoint |
OrientationLayout.completeTransform(YPoint point)
Transforms the given point during completion.
|
protected YPoint |
OrientationLayout.prepareTransform(YPoint point)
Transforms the given point during preparation.
|
void |
LayoutGraph.setCenter(Node node,
YPoint position)
Specifies the center coordinates of the given node.
|
void |
LayoutGraph.setEndPointsAbs(Edge edge,
YPoint source,
YPoint target)
Specifies the two end points of the given edge in absolute coordinates.
|
void |
LayoutGraph.setLocation(Node node,
YPoint position)
Specifies the coordinates of the upper-left corner of the given node.
|
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.
|
void |
IEdgeLayout.setSourcePoint(YPoint value)
Sets the relative coordinates of the first end point of this layout.
|
void |
LayoutGraph.setSourcePointAbs(Edge edge,
YPoint point)
Specifies the absolute coordinates of the source point of the given edge.
|
void |
LayoutGraph.setSourcePointRel(Edge edge,
YPoint point)
Specifies the relative coordinates of the source point of the given edge.
|
void |
IEdgeLayout.setTargetPoint(YPoint value)
Sets the relative coordinates of the second end point of this layout.
|
void |
LayoutGraph.setTargetPointAbs(Edge edge,
YPoint point)
Specifies the absolute coordinates of the target point of the given edge.
|
void |
LayoutGraph.setTargetPointRel(Edge edge,
YPoint point)
Specifies the relative coordinates of the target point of the given edge.
|
protected YPoint |
OrientationLayout.transform(YPoint point,
boolean prepare)
Transforms the given point during the preparation or completion step.
|
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 |
---|---|
YPoint |
NodeLayoutDescriptor.getGridReference()
Gets a reference point relative to the center of the node which will be placed on a grid coordinate.
|
Modifier and Type | Method and Description |
---|---|
void |
NodeLayoutDescriptor.setGridReference(YPoint value)
Sets a reference point relative to the center of the node which will be placed on a grid coordinate.
|
Modifier and Type | Method and Description |
---|---|
YPoint |
InteractiveOrganicLayout.getCenter(Node node)
Polls the current coordinates of the center of the given node.
|
Modifier and Type | Method and Description |
---|---|
YPoint |
RadialLayout.NodeInfo.getCenterOffset()
Gets the offset from the center of the circle, the node is placed on, to the center of the node.
|
Modifier and Type | Method and Description |
---|---|
YPoint |
OrthogonalPatternEdgeRouter.getGridOrigin()
Gets the origin of the grid.
|
Modifier and Type | Method and Description |
---|---|
void |
OrthogonalPatternEdgeRouter.setGridOrigin(YPoint value)
Sets the origin of the grid.
|
Modifier and Type | Method and Description |
---|---|
YPoint |
OrthogonalInterval.getCenter()
Gets the center of this
orthogonal interval in the 2D-coordinate system. |
YPoint |
EdgeInfo.getStrongSourcePort()
Gets the location of the strong source port that the edge uses.
|
YPoint |
EdgeInfo.getStrongTargetPort()
Gets the location of the strong target port that the edge uses.
|
Modifier and Type | Method and Description |
---|---|
void |
EdgeInfo.setStrongSourcePort(YPoint value)
Sets the location of the strong source port that the edge uses.
|
void |
EdgeInfo.setStrongTargetPort(YPoint value)
Sets the location of the strong target port that the edge uses.
|
Modifier and Type | Method and Description |
---|---|
protected YPoint |
AbstractRotatableNodePlacer.getSourcePointAbs(Edge edge)
Returns the absolute source point of the given edge depending on the rotation of this
INodePlacer . |
static YPoint |
AbstractRotatableNodePlacer.translatePoint(AbstractRotatableNodePlacer.Matrix modificationMatrix,
YPoint realWorldPoint)
Translates a point from the real layout direction to the model direction using the given modification matrix.
|
Modifier and Type | Method and Description |
---|---|
static YPoint |
AbstractRotatableNodePlacer.translatePoint(AbstractRotatableNodePlacer.Matrix modificationMatrix,
YPoint realWorldPoint)
Translates a point from the real layout direction to the model direction using the given modification matrix.
|