Package | Description |
---|---|
com.yworks.yfiles.graph |
Definitions, default implementations, and support classes that represent graph structures and provide facilities for their programmatic modification.
|
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 |
---|---|
IHandle |
NodeReshapeHandles.getHandle(IInputModeContext inputModeContext,
HandlePositions position) |
Modifier and Type | Method and Description |
---|---|
LookupDecorator<IPort,IHandle> |
PortDecorator.getHandleDecorator()
Gets a
LookupDecorator that decorates the IHandle type for the
IPort s of the graph this instance has been created for. |
LookupDecorator<IBend,IHandle> |
BendDecorator.getHandleDecorator()
Gets a
LookupDecorator that decorates the IHandle type for the
IBend s of the graph this instance has been created for. |
Modifier and Type | Class and Description |
---|---|
class |
ConstrainedHandle
A convenience implementation of the
IHandle interface that can be used to constrain the handle of an item. |
class |
PortLocationModelParameterHandle
An implementation of the
IHandle that can be used to move an IPort interactively by assigning new
IPortLocationModelParameter s to the LocationParameter . |
class |
PortRelocationHandle
A sophisticated implementation of the
IHandle interface that lets the user change an edge's source
and target port . |
class |
RectangleHandle
A more sophisticated
IHandle implementation that modifies a rectangle. |
class |
ReshapeHandlerHandle
A more sophisticated
IHandle implementation that delegates to a IReshapeHandler . |
Modifier and Type | Method and Description |
---|---|
IHandle |
HandleInputMode.addHandle(IMutablePoint location)
Factory method that creates and
adds a handle to this mode by wrapping a given IMutablePoint
instance. |
IHandle |
HandleInputMode.addHandle(IMutablePoint location,
Cursor cursor)
Factory method that creates and
adds a handle to this mode by wrapping a given IMutablePoint
instance. |
IHandle |
HandleInputMode.addHandle(IMutablePoint location,
Cursor cursor,
HandleTypes type)
Factory method that creates and
adds a handle to this mode by wrapping a given IMutablePoint
instance. |
protected IHandle |
PortRelocationHandleProvider.createPortRelocationHandle(IGraph graph,
IEdge edge,
boolean sourcePort)
Factory method that creates the handle for this provider.
|
protected IHandle |
HandleInputMode.getClosestHitHandle(PointD location)
Finds the closest hit handle for the given world coordinate pair.
|
protected IHandle |
HandleInputMode.getClosestHitHandleTouch(PointD location)
Finds the closest hit handle for the given world coordinate pair.
|
IHandle |
HandleInputMode.getCurrentHandle()
Gets the handle that is currently being moved or
null otherwise. |
IHandle |
RectangleReshapeHandleProvider.getHandle(IInputModeContext context,
HandlePositions position)
Provides a
IHandle that uses the rectangle instance to perform the actual reshaping. |
IHandle |
IReshapeHandleProvider.getHandle(IInputModeContext context,
HandlePositions position)
Returns an implementation of an
IHandle for the given position, that can be used to reshape an object. |
abstract IHandle |
AbstractReshapeHandleProvider.getHandle(IInputModeContext context,
HandlePositions position)
Provides a
IHandle that uses the rectangle and reshapeable instance bound to this instance to perform the actual
reshaping. |
IHandle |
PortRelocationHandleProvider.getHandle(IInputModeContext context,
IEdge edge,
boolean sourceHandle) |
IHandle |
IEdgePortHandleProvider.getHandle(IInputModeContext context,
IEdge edge,
boolean sourceHandle)
Gets an
IHandle implementation for one end of the provided edge . |
protected IHandle |
PortsHandleProvider.getHandle(IPort port)
Retrieves the handle implementation from the port's lookup.
|
Modifier and Type | Method and Description |
---|---|
IObservableCollection<IHandle> |
HandleInputMode.getHandles()
Gets the collection of
IHandle s this mode manages. |
Iterable<IHandle> |
PortsHandleProvider.getHandles(IInputModeContext context)
Returns a collection of zero or more
IHandle implementations that are associated with the ports of this
context. |
Iterable<IHandle> |
PortRelocationHandleProvider.getHandles(IInputModeContext context) |
Iterable<IHandle> |
IHandleProvider.getHandles(IInputModeContext context)
Returns a collection of zero or more
IHandle implementations that are associated with this instance. |
Modifier and Type | Method and Description |
---|---|
void |
HandleInputMode.addHandle(IHandle handle)
Adds a handle to the collection of handles managed by this instance.
|
protected void |
HandleInputMode.arm(IHandle handle)
Callback method that is invoked when this mode gets "armed".
|
void |
HandleInputMode.beginDragging(IHandle handle)
Method that can be used to initialize the dragging of a given handle by hand.
|
protected Node |
HandleInputMode.createVisual(IRenderContext context,
IHandle handle)
Callback that creates the
Node for the given handle. |
protected boolean |
HandleInputMode.handleIsHit(IHandle handle,
PointD location,
PointD distance)
Determines whether a given handle has been visually hit by the mouse at the given world coordinates.
|
protected boolean |
HandleInputMode.handleIsHitTouch(IHandle handle,
PointD location,
PointD distance)
Determines whether a given handle has been visually hit by the touch device at the given world coordinates.
|
void |
HandleInputMode.removeHandle(IHandle handle)
Removes a handle from the collection of handles managed by this instance.
|
Modifier and Type | Method and Description |
---|---|
void |
HandleInputMode.setHandles(IObservableCollection<IHandle> value)
Sets the collection of
IHandle s this mode manages. |
Constructor and Description |
---|
ConstrainedHandle(IHandle wrappedHandle)
Initializes a new instance of the
ConstrainedHandle class that delegates to the wrappedHandle . |