Package | Description |
---|---|
com.yworks.yfiles.view.input |
Contains definitions, default implementations, and support classes that deal with the user interaction in a
CanvasControl in general, as well as specialized utility classes and IInputMode implementations that can be used to work with and edit IGraph instances in a GraphControl . |
Modifier and Type | Method and Description |
---|---|
static SnapLineOrientation |
SnapLineOrientation.fromOrdinal(int ordinal) |
SnapLineOrientation |
OrthogonalSnapLine.getOrientation()
The orientation of the snap line.
|
static SnapLineOrientation |
SnapLineOrientation.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SnapLineOrientation[] |
SnapLineOrientation.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeReshapeSnapResultProvider.addSameSizeSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineOrientation orientation,
Iterable<RectD> rectangles,
double finalSize,
double snapDelta)
Adds a snap result for "same size" to the collect event argument.
|
protected OrthogonalSnapLine |
NodeSnapLineProvider.createCenterSnapLine(GraphSnapContext context,
INode node,
SnapLineOrientation orientation,
PointD location)
Convenience method that creates a snap line for the center of nodes.
|
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getAdditionalSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
AdditionalSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedNodeSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedNodeSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedPortSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedPortSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
IEnumerable<OrthogonalSnapLine> |
GraphSnapContext.getFixedSegmentSnapLines(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
RectD area)
Gets a subset of
FixedSegmentSnapLines that matches the given orientation , snapType
and intersects with the provided area . |
Constructor and Description |
---|
NodeBasedSnapLine(INode node,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
NodeBasedSnapLine class. |
NodeBasedSnapLine(INode node,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
NodeBasedSnapLine class. |
NodePairBasedSnapLine(INode firstNode,
INode secondNode,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
NodePairBasedSnapLine class. |
NodePairBasedSnapLine(INode firstNode,
INode secondNode,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
NodePairBasedSnapLine class. |
OrthogonalSnapLine(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Creates a new snap line using the provided attributes.
|
OrthogonalSnapLine(SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Creates a new snap line using the provided attributes.
|
PointBasedSnapLine(IPoint point,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
double from,
double to,
Object tag,
double weight)
Initializes a new instance of the
PointBasedSnapLine class. |
PointBasedSnapLine(IPoint point,
SnapLineOrientation orientation,
SnapLineSnapTypes snapType,
ResourceKey resourceKey,
PointD coordinates,
Object tag,
double weight)
Initializes a new instance of the
PointBasedSnapLine class. |