Package | Description |
---|---|
com.yworks.yfiles.algorithms | |
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
Modifier and Type | Method and Description |
---|---|
YOrientedRectangle |
YOrientedRectangle.getMovedInstance(double dx,
double dy)
Creates a new
OrientedRectangle instance whose anchor point is moved by the specified distance values, but has
the same width, height, and up vector as this rectangle. |
YOrientedRectangle |
YOrientedRectangle.getResizedInstance(double width,
double height)
Creates a new
OrientedRectangle instance that has the specified width and height, but has the same anchor point
and up vector as this rectangle. |
Modifier and Type | Method and Description |
---|---|
void |
YOrientedRectangle.adoptValues(YOrientedRectangle other)
Copies the actual values from the given
OrientedRectangle to this instance. |
static YPoint[] |
YOrientedRectangle.calcPoints(YOrientedRectangle rect)
Determines the four corner points of an oriented rectangle.
|
static double[] |
YOrientedRectangle.calcPointsInDouble(YOrientedRectangle rect)
Determines the coordinates of the four corners of an oriented rectangle.
|
static boolean |
YOrientedRectangle.contains(YOrientedRectangle rect,
double x,
double y,
double eps)
Determines whether the given oriented rectangle contains the provided point, using an epsilon value.
|
static boolean |
YOrientedRectangle.contains(YOrientedRectangle r1,
YOrientedRectangle r2,
double eps)
Determines whether the given rectangle r1 contains rectangle r2, using an epsilon value.
|
static boolean |
YOrientedRectangle.contains(YOrientedRectangle rect,
YPoint p,
double eps)
Determines whether the given oriented rectangle contains the provided point, using an epsilon value.
|
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 boolean |
YOrientedRectangle.intersects(YOrientedRectangle rect,
LineSegment line,
double eps)
Determines whether or not the specified oriented rectangle and the specified line segment intersect.
|
static boolean |
YOrientedRectangle.intersects(YOrientedRectangle orientedRectangle,
YRectangle rectangle,
double eps)
Determines whether a rectangle intersects an oriented rectangle, given an epsilon.
|
Constructor and Description |
---|
YOrientedRectangle(YOrientedRectangle rect)
Creates a new instance using the provided rectangle's values to initialize anchor, size, and up vector.
|
Modifier and Type | Method and Description |
---|---|
YOrientedRectangle |
LabelLayoutData.getBounds()
Gets the
oriented box of the label. |
YOrientedRectangle |
LabelCandidate.getBox()
Gets the oriented box of this candidate.
|
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) |
YOrientedRectangle |
ILabelLayout.getOrientedBox()
Gets the box of the label.
|
YOrientedRectangle |
AbstractLabelLayout.getOrientedBox()
Gets the box of the label.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
LayoutGraphUtilities.autoFlipBox(YOrientedRectangle rect)
|
IEdgeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Edge edge,
YOrientedRectangle orientedBox)
Creates a new
ILabelLayout for the given edge. |
IEdgeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Edge edge,
YOrientedRectangle orientedBox,
IEdgeLabelLayoutModel model,
PreferredPlacementDescriptor descriptor)
Creates a new
ILabelLayout for the given edge. |
INodeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Node node,
YOrientedRectangle orientedBox)
Creates a new
ILabelLayout for the given node. |
INodeLabelLayout |
ILabelLayoutFactory.createLabelLayout(Node node,
YOrientedRectangle orientedBox,
INodeLabelLayoutModel model)
Creates a new
ILabelLayout for the given 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) |
void |
LabelLayoutData.setBounds(YOrientedRectangle value)
Sets the
oriented box of the label. |
void |
AbstractLabelLayout.setOrientedBox(YOrientedRectangle value)
Sets the box of the label.
|
Constructor and Description |
---|
EdgeLabelCandidate(YOrientedRectangle labelBox,
Object param,
IEdgeLabelLayout owner)
Creates a new instance of
EdgeLabelCandidate described by its box, model parameter and internal flag. |
EdgeLabelCandidate(YOrientedRectangle labelBox,
Object param,
IEdgeLabelLayout owner,
boolean internal)
Creates a new instance of
EdgeLabelCandidate described by its box, model parameter and internal flag. |
ExtendedEdgeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
IEdgeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of ExtendedEdgeLabelCandidate.
|
ExtendedNodeLabelCandidate(YOrientedRectangle orientedBox,
Object param,
INodeLabelLayout owner,
boolean internal,
ILabelCandidateDescriptor descriptor)
Returns a new instance of NodeLabelCandidate.
|
LabelCandidate(YOrientedRectangle labelBox,
Object param,
ILabelLayout owner)
Creates a new instance of
LabelCandidate described by its box, model parameter and internal flag. |
LabelCandidate(YOrientedRectangle labelBox,
Object param,
ILabelLayout owner,
boolean internal)
Creates a new instance of
LabelCandidate described by its box, model parameter and internal flag. |
LabelLayoutData(YOrientedRectangle bounds)
Creates a new instance of
LabelLayoutData for a label with the given oriented box and preferred placement
descriptor. |
LabelLayoutData(YOrientedRectangle bounds,
PreferredPlacementDescriptor preferredPlacement)
Creates a new instance of
LabelLayoutData for a label with the given oriented box and preferred placement
descriptor. |
NodeLabelCandidate(YOrientedRectangle labelBox,
Object param,
INodeLabelLayout owner)
Creates a new instance of
NodeLabelCandidate described by its box, model parameter and internal flag. |
NodeLabelCandidate(YOrientedRectangle labelBox,
Object param,
INodeLabelLayout owner,
boolean internal)
Creates a new instance of
NodeLabelCandidate described by its box, model parameter and internal flag. |