public final class ReshapeRectangleContext extends Object
This class is mainly intended for use by
INodeReshapeSnapResultProvider.collectSnapResults(GraphSnapContext, CollectSnapResultsEventArgs, com.yworks.yfiles.graph.INode, ReshapeRectangleContext)
.
Constructor and Description |
---|
ReshapeRectangleContext(RectD initialBounds,
ISize minimumSize,
ISize maximumSize,
IRectangle minimumEnclosedArea,
HandlePositions reshapePosition,
PointD topLeftChangeFactor,
PointD bottomRightChangeFactor,
SizeD sizeChangeFactor)
Initializes a new instance of the
ReshapeRectangleContext class. |
Modifier and Type | Method and Description |
---|---|
PointD |
getBottomRightChangeFactor()
Gets the factor by which the bottom right corner of the node layout changes when the handle is dragged.
|
RectD |
getInitialBounds()
Gets the initial bounds of the node.
|
ISize |
getMaximumSize()
Gets the maximum size of the node.
|
IRectangle |
getMinimumEnclosedArea()
Gets minimum area the node's layout needs to encompass.
|
ISize |
getMinimumSize()
Gets the minimum size of the node.
|
HandlePositions |
getReshapePosition()
Gets the position of the reshape handle.
|
SizeD |
getSizeChangeFactor()
Gets the factor by which the size of the node layout changes when the handle is dragged.
|
PointD |
getTopLeftChangeFactor()
Gets the factor by which the top left corner of the node layout changes when the handle is dragged.
|
public ReshapeRectangleContext(RectD initialBounds, ISize minimumSize, ISize maximumSize, IRectangle minimumEnclosedArea, HandlePositions reshapePosition, PointD topLeftChangeFactor, PointD bottomRightChangeFactor, SizeD sizeChangeFactor)
ReshapeRectangleContext
class.initialBounds
- The initial bounds of the node.minimumSize
- The minimum size of the node.maximumSize
- The maximum size of the node.minimumEnclosedArea
- The minimum area the node's layout needs to encompass.reshapePosition
- The position of the reshape handle.topLeftChangeFactor
- The factor by which the top left corner of the node layout changes when the handle is dragged.bottomRightChangeFactor
- The factor by which the bottom right corner of the node layout changes when the handle is dragged.sizeChangeFactor
- The factor by which the size of the node layout changes when the handle is dragged.public final PointD getBottomRightChangeFactor()
public final RectD getInitialBounds()
public final ISize getMaximumSize()
public final IRectangle getMinimumEnclosedArea()
empty
the value can be ignored.public final ISize getMinimumSize()
public final HandlePositions getReshapePosition()
public final SizeD getSizeChangeFactor()
public final PointD getTopLeftChangeFactor()