Package | Description |
---|---|
com.yworks.yfiles.geometry |
Contains definitions, default implementations, structs and support classes that deal with the representation of geometric data.
|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
com.yworks.yfiles.graph.labelmodels |
Contains interfaces and default implementations for label layout models.
|
com.yworks.yfiles.view |
Contains the main UI classes, interfaces, default implementations and support classes that can be used to display
IGraph instances. |
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 | Interface and Description |
---|---|
interface |
IMutablePoint
Interface for a mutable point in 2D coordinate space with double precision coordinates.
|
interface |
IMutableRectangle
Interface for mutable rectangles aligned to the axes in 2D coordinate space with double precision coordinates.
|
interface |
IRectangle
Interface for rectangles aligned to the axes in 2D coordinate space with double precision coordinates.
|
Modifier and Type | Class and Description |
---|---|
class |
MutablePoint
A simple default implementation of a mutable point in 2D coordinate space with double precision coordinates.
|
class |
MutableRectangle
A simple default implementation of a mutable rectangle in 2D coordinate space with double precision values stored in an
instance of
IMutablePoint and IMutableSize . |
class |
OrientedRectangle
A simple default implementation of a mutable oriented rectangle in 2D coordinate space with double precision values
stored in an instance of
IMutablePoint and IMutableSize as well as two doubles for the up vector
components. |
class |
PointD
An immutable struct that models a point in 2-d Cartesian coordinate space with double coordinates.
|
class |
RectD
An immutable struct that models a rectangle in 2-d Cartesian coordinate space with double coordinates.
|
Modifier and Type | Method and Description |
---|---|
IPoint |
OrientedRectangle.getAnchor()
Returns the instance that stores the anchor of this oriented rectangle.
|
default IPoint |
IRectangle.getDynamicCenter()
Create a dynamic
IPoint implementation that always points to the center of the given rectangle. |
default IPoint |
IOrientedRectangle.getDynamicCenter()
Create a dynamic
IPoint implementation that always points to the center of the given oriented rectangle. |
default IPoint |
IRectangle.getDynamicPoint(HandlePositions handlePositions)
Create a dynamic
IPoint implementation that always points to the specified position at the given rectangle. |
IPoint |
MutableRectangle.getLocation()
Returns the instance that stores the position of this rectangle.
|
Modifier and Type | Method and Description |
---|---|
default void |
IMutableRectangle.add(IPoint point)
Adds a point to a rectangle, possibly enlarging the rectangle.
|
boolean |
GeneralPath.areaContains(IPoint point)
Checks whether the point lies inside the area that is described by this path instance.
|
default boolean |
IRectangle.contains(IPoint point)
Determines whether the given rectangle contains the provided point.
|
void |
GeneralPath.cubicTo(IPoint c1,
IPoint c2,
IPoint end)
Appends a
cubic Bézier curve to the path elements. |
default double |
IPoint.distanceTo(IPoint point2)
Calculates the Euclidean distance between two points.
|
boolean |
MutablePoint.equals(IPoint other) |
void |
GeneralPath.lineTo(IPoint point)
Appends a
PathType.LINE_TO operation to the path elements. |
void |
GeneralPath.moveTo(IPoint point)
Appends a
PathType.MOVE_TO operation to the path elements. |
void |
GeneralPath.quadTo(IPoint center,
IPoint point)
Appends a
quadratic Bézier curve to the path elements. |
default void |
IMutablePoint.relocate(IPoint location)
Sets the coordinates of the point to the given values.
|
default void |
IMutableRectangle.reshape(IPoint position,
ISize size)
Applies a new position and size to a given mutable rectangle.
|
void |
OrientedRectangle.setAnchor(IPoint value)
Returns the instance that stores the anchor of this oriented rectangle.
|
void |
MutableRectangle.setLocation(IPoint value)
Returns the instance that stores the position of this rectangle.
|
Modifier and Type | Method and Description |
---|---|
boolean |
PointD.hitsPolyline(Iterable<IPoint> points,
double radius)
Determines whether a polygonal line is hit by this point given an epsilon.
|
boolean |
RectD.intersectsPolyline(Iterable<IPoint> points)
Determines whether a rectangle intersects a polygonal line.
|
Constructor and Description |
---|
MutablePoint(IPoint point)
Creates an instance using the given coordinate pair.
|
PointD(IPoint point)
Initializes a new instance using the coordinates of the provided
IPoint . |
Modifier and Type | Method and Description |
---|---|
default IPoint |
IPort.getDynamicLocation()
Gets a live view of the location of the port in world coordinates.
|
IPoint |
SimpleBend.getLocation()
Gets the location of this bend.
|
IPoint |
IBend.getLocation()
Gets a view of the location of the bend in the world coordinate system.
|
Modifier and Type | Method and Description |
---|---|
void |
SimpleBend.setLocation(IPoint value)
Sets the location of this bend.
|
Constructor and Description |
---|
SimpleBend(IEdge owner,
IPoint location)
Initializes a new instance of the
SimpleBend class using the given owner and location. |
Modifier and Type | Method and Description |
---|---|
ILabelModelParameter |
FreeLabelModel.createAnchored(IPoint location,
double angle)
Creates a new label at the given dynamic location using the provided angle.
|
Modifier and Type | Method and Description |
---|---|
protected IPoint |
PointSelectionIndicatorInstaller.getCenterPoint(Object userObject)
Factory method that retrieves the center for a given user object.
|
Modifier and Type | Method and Description |
---|---|
static IAnimation |
IAnimation.createEdgeSegmentAnimation(IGraph graph,
IEdge edge,
IPoint[] endBends,
PointD endSourceLocation,
PointD endTargetLocation,
Duration preferredDuration)
Creates a new
IAnimation that animates the given edge 's bends from its current shape linearly to the
shape given by the endBends and final port locations. |
Constructor and Description |
---|
PointSelectionIndicatorInstaller(IPoint point)
Creates a new instance that indicates a point.
|
Modifier and Type | Class and Description |
---|---|
class |
RectangleHandle
A more sophisticated
IHandle implementation that modifies a rectangle. |
Modifier and Type | Method and Description |
---|---|
IPoint |
TextEditorInputMode.getAnchor()
Gets the anchor of the text box.
|
abstract IPoint |
MovementInfo.getCurrentLocation()
Gets the current location as a live point.
|
IPoint |
CreateEdgeInputMode.getDragPoint()
Gets the dynamically updated dragging point for the edge creation.
|
IPoint |
TextEditorInputMode.getLocation()
Gets the location of the text box in world coordinates.
|
IPoint |
ReshapeHandlerHandle.getLocation()
Returns a view of the center of the handle.
|
IPoint |
ReparentStripePositionHandler.getLocation() |
IPoint |
RectangleHandle.getLocation()
Returns a view of the center of the handle.
|
IPoint |
PortRelocationHandle.getLocation()
Returns a view of the location of the item.
|
IPoint |
PortLocationModelParameterHandle.getLocation() |
IPoint |
LabelPositionHandler.getLocation() |
IPoint |
IDragHandler.getLocation()
Returns a view of the location of the item.
|
IPoint |
ConstrainedDragHandler.getLocation()
Delegates to the
WrappedHandler 's Location property. |
IPoint |
DropInputMode.getMousePosition()
Gets the current mouse position during drag operations.
|
IPoint |
PointBasedSnapLine.getPoint()
Gets the point that is associated with this snap line.
|
IPoint |
TextEditorInputMode.getUpVector()
Gets the point that describes the "up"-vector that will be used to determine the orientation of the text box in the
world coordinate system.
|
Modifier and Type | Method and Description |
---|---|
protected void |
NodeReshapeSnapResultProvider.addGridLineSnapResult(GraphSnapContext context,
CollectSnapResultsEventArgs args,
INode node,
SnapLineSnapTypes snapLineType,
IPoint snapLineLocation,
double delta,
PointD snappedLocation,
double from,
double to,
PointD snapLinePoint)
Adds a snap result for a location that snaps to a grid line.
|
protected StripeReparentPolicy |
ReparentStripePositionHandler.determineGesture(IInputModeContext context,
IPoint location,
IStripe sourceStripe,
StripeSubregion targetSubregion,
RectD targetBounds)
Determine the reparent gesture that would result from the given parameters.
|
void |
TextEditorInputMode.setAnchor(IPoint value)
Sets the anchor of the text box.
|
void |
TextEditorInputMode.setLocation(IPoint value)
Sets the location of the text box in world coordinates.
|
void |
TextEditorInputMode.setUpVector(IPoint value)
Sets the point that describes the "up"-vector that will be used to determine the orientation of the text box in the
world coordinate system.
|
Constructor and Description |
---|
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. |