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 |
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 | Class and Description |
---|---|
class |
SimpleBend
A simple mutable implementation of the
IBend interface that can be used stand-alone. |
Modifier and Type | Method and Description |
---|---|
default IBend |
IGraph.addBend(IEdge edge,
PointD location)
Adds a bend at the given index to the given edge using the coordinates provided.
|
IBend |
IGraph.addBend(IEdge edge,
PointD location,
int index)
Adds a bend at the given index to the given edge using the coordinates provided.
|
IBend |
DefaultGraph.addBend(IEdge edge,
PointD location,
int index) |
IBend |
AbstractGraphWrapper.addBend(IEdge edge,
PointD location,
int index) |
protected IBend |
GraphCopier.addBend(IGraph sourceGraph,
IGraph targetGraph,
IEdge targetEdge,
IBend sourceBend,
PointD offset,
int index)
Callback method that adds a bend to the targetEdge in the targetGraph as a copy of the source bend.
|
IBend |
FoldingBendState.asBend()
Returns an
IBend instance which represents this bend state. |
Modifier and Type | Method and Description |
---|---|
IListEnumerable<IBend> |
SimpleEdge.getBends() |
default IListEnumerable<IBend> |
IGraph.getBends()
Gets a live view of all bends contained in this
IGraph . |
IListEnumerable<IBend> |
IEdge.getBends()
Provides access to a collection of
bends that describe the geometry of this edge. |
LookupDecorator<IBend,IBendSnapResultProvider> |
BendDecorator.getBendSnapResultProviderDecorator()
Gets a
LookupDecorator that decorates the IBendSnapResultProvider for the
IBend s this instance has been created for. |
LookupDecorator<IBend,IClipboardHelper> |
BendDecorator.getClipboardHelperDecorator()
Gets a
LookupDecorator that decorates the IClipboardHelper type for the type of items this instance has
been created for. |
<TInterface> |
BendDecorator.getDecoratorFor(Class<TInterface> interfaceType)
|
<TInterface> |
BendDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls)
|
<TInterface> |
BendDecorator.getDecoratorFor(Class<TInterface> interfaceType,
boolean decorateNulls,
boolean nullIsFallback)
|
LookupDecorator<IBend,IFocusIndicatorInstaller> |
BendDecorator.getFocusIndicatorDecorator()
Gets a
LookupDecorator that decorates the IFocusIndicatorInstaller type for the type of items 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. |
LookupDecorator<IBend,IHandleProvider> |
BendDecorator.getHandleProviderDecorator()
Gets a
LookupDecorator that decorates the IHandleProvider type for the type of items this instance has
been created for. |
LookupDecorator<IBend,IHighlightIndicatorInstaller> |
BendDecorator.getHighlightDecorator()
Gets a
LookupDecorator that decorates the IHighlightIndicatorInstaller type for the type of items this
instance has been created for. |
LookupDecorator<IBend,IMarqueeTestable> |
BendDecorator.getMarqueeTestableDecorator()
Gets a
LookupDecorator that decorates the IMarqueeTestable type for the type of items this instance has
been created for. |
LookupDecorator<IBend,IMementoSupport> |
BendDecorator.getMementoSupportDecorator()
Gets a
LookupDecorator that decorates the IMementoSupport type for the type of items this instance has
been created for. |
LookupDecorator<IBend,IObstacleProvider> |
BendDecorator.getObstacleProviderDecorator()
Gets a
LookupDecorator that decorates the IObstacleProvider type for the type of items this instance has
been created for. |
LookupDecorator<IBend,IPositionHandler> |
BendDecorator.getPositionHandlerDecorator()
Gets a
LookupDecorator that decorates the IPositionHandler type for the type of items this instance has
been created for. |
LookupDecorator<IBend,ISelectionIndicatorInstaller> |
BendDecorator.getSelectionDecorator()
Gets a
LookupDecorator that decorates the ISelectionIndicatorInstaller type for the type of items this
instance has been created for. |
Modifier and Type | Method and Description |
---|---|
protected IBend |
GraphCopier.addBend(IGraph sourceGraph,
IGraph targetGraph,
IEdge targetEdge,
IBend sourceBend,
PointD offset,
int index)
Callback method that adds a bend to the targetEdge in the targetGraph as a copy of the source bend.
|
protected IUndoUnit |
DefaultGraph.createUndoUnitForBendAddition(IBend bend,
int index)
Creates the bend addition
undo unit for the given bend. |
protected IUndoUnit |
DefaultGraph.createUndoUnitForBendRemoval(IBend bend)
Creates the bend removal
undo unit for the given bend. |
protected IEdge |
GraphClipboard.getTarget(IBend originalBend)
Provides an
IEdge where the given originalBend can be added to. |
protected void |
DefaultGraph.onAddingBend(IEdge edge,
IBend bend,
int index)
Callback that is invoked before a bend is added to this graph's structure.
|
protected void |
DefaultGraph.onBendAdded(IBend bend)
Callback that after a bend has been added to this graph's structure.
|
protected void |
GraphCopier.onBendCopied(IBend original,
IBend copy)
Called after a bend has been copied.
|
protected void |
DefaultGraph.onBendLocationChanged(IBend bend,
PointD oldLocation)
Callback that is invoked after a bend location has changed.
|
protected void |
AbstractGraphWrapper.onBendLocationChanged(IBend bend,
PointD oldLocation)
Raises the
BendLocationChanged event. |
void |
IBendLocationChangedHandler.onBendLocationChanged(Object source,
IBend bend,
PointD oldLocation)
Event delegate method that is used in
IGraph 's BendLocationChanged
event. |
protected void |
DefaultGraph.onBendRemoved(IEdge owner,
IBend bend,
int index)
Callback method that is invoked just after a bend has been removed from its edge.
|
protected void |
DefaultGraph.onBendTagChanged(IBend bend,
Object oldTag)
Callback that is invoked after a bend tag has changed.
|
protected void |
DefaultGraph.onRemovingBend(IBend bend)
Callback method that is invoked just before a bend is removed.
|
void |
IGraph.setBendLocation(IBend bend,
PointD location)
Modifies the location of the given bend.
|
void |
DefaultGraph.setBendLocation(IBend bend,
PointD location)
Modifies the location of the given bend.
|
void |
AbstractGraphWrapper.setBendLocation(IBend bend,
PointD location) |
Modifier and Type | Method and Description |
---|---|
void |
IGraph.addBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent)
Adds the given listener for the
BendAdded event that occurs when a bend has been added to an edge in this
graph. |
void |
DefaultGraph.addBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent) |
void |
AbstractGraphWrapper.addBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent) |
void |
GraphCopier.addBendCopiedListener(IEventHandler<ItemCopiedEventArgs<IBend>> bendCopiedEvent)
Adds the given listener for the
BendCopied event that occurs after a bend has been copied. |
void |
IGraph.addBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent)
Adds the given listener for the
BendTagChanged event that occurs when the tag of a
bend has been replaced. |
void |
DefaultGraph.addBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent) |
void |
AbstractGraphWrapper.addBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent) |
protected void |
AbstractGraphWrapper.onBendAdded(ItemEventArgs<IBend> args)
Raises the
BendAdded event. |
protected void |
AbstractGraphWrapper.onBendTagChanged(ItemChangedEventArgs<IBend,Object> args)
Raises the
BendTagChanged event. |
void |
IGraph.removeBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent)
Removes the given listener for the
BendAdded event that occurs when a bend has been added to an edge in this
graph. |
void |
DefaultGraph.removeBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent) |
void |
AbstractGraphWrapper.removeBendAddedListener(IEventHandler<ItemEventArgs<IBend>> bendAddedEvent) |
void |
GraphCopier.removeBendCopiedListener(IEventHandler<ItemCopiedEventArgs<IBend>> bendCopiedEvent)
Removes the given listener for the
BendCopied event that occurs after a bend has been copied. |
void |
IGraph.removeBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent)
Removes the given listener for the
BendTagChanged event that occurs when the tag of a
bend has been replaced. |
void |
DefaultGraph.removeBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent) |
void |
AbstractGraphWrapper.removeBendTagChangedListener(IEventHandler<ItemChangedEventArgs<IBend,Object>> bendTagChangedEvent) |
void |
SimpleEdge.setBends(IListEnumerable<IBend> value)
Provides access to a collection of
bends that describe the geometry of this edge. |
Constructor and Description |
---|
BendEventArgs(IBend bend,
IEdge owner,
int index)
Initializes a new instance of the
BendEventArgs class. |
Modifier and Type | Method and Description |
---|---|
protected DefaultSelectionModel<IBend> |
GraphSelection.createBendSelectionModel()
Factory method that creates the
DefaultSelectionModel to use for the bends. |
ISelectionModel<IBend> |
IGraphSelection.getSelectedBends()
An
ISelectionModel of the selected bends. |
ISelectionModel<IBend> |
GraphSelection.getSelectedBends() |
Modifier and Type | Method and Description |
---|---|
protected IBend |
CreateBendInputMode.createBend(IEdge edge,
PointD location)
Creates the bend.
|
IBend |
IBendSelectionTester.getHitBend(IInputModeContext context,
PointD location)
Returns the bend at the given world coordinate position.
|
Modifier and Type | Method and Description |
---|---|
protected IEnumerable<IBend> |
OrthogonalEdgeEditingContext.getAddedBends()
Gets the previously
registered added bends. |
IGridConstraintProvider<IBend> |
GraphSnapContext.getBendGridConstraintProvider()
Gets the grid constraint provider for the
IBend s. |
Iterable<IBend> |
IBendSelectionTester.getBendsInBox(IInputModeContext context,
RectD rectangle)
Returns the bends within the given rectangle.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
OrthogonalEdgeHelper.canRemoveBend(IInputModeContext context,
IBend bend)
Returns whether the given bend can be removed.
|
void |
IBendSnapResultProvider.collectSnapResults(GraphSnapContext context,
CollectSnapResultsEventArgs args,
PointD suggestedLocation,
IBend bend)
Called when a node is
dragged
to add SnapResult s for
OrthogonalSnapLine s to which this bend can potentially snap. |
boolean |
IContainsBendTester.contains(IInputModeContext context,
IBend bend)
Determines whether the provided
bend is deemed to lie within the shape this test is implemented for. |
MovementInfo |
OrthogonalEdgeEditingContext.createImplicitlyMovedBendInfo(IBend bend,
MovementInfo horizontalAdjacentInfo,
MovementInfo verticalAdjacentInfo)
Creates or obtains a previously created
MovementInfo for the provided implicitly moved bend. |
void |
GraphEditorInputMode.dragBend(IBend bend)
Initiates the
HandleInputMode to drag the given bend. |
MovementInfo |
GraphSnapContext.getMovementInfo(IBend bend)
Gets the movement info for the given bend.
|
protected void |
OrthogonalEdgeEditingContext.registerAddedBend(IBend bend)
Can be used by subclasses during
OrthogonalEdgeEditingContext.prepareOrthogonalEdge(IGraph, IEdge, IListEnumerable, IListEnumerable) to
register added bends that can later be removed in case the operation is
canceled. |
Modifier and Type | Method and Description |
---|---|
protected void |
GraphEditorInputMode.onCreateBendInputModeBendCreated(Object sender,
ItemEventArgs<IBend> e)
Callback that is called as soon as
CreateBendInputMode created a new bend. |
protected void |
OrthogonalEdgeEditingContext.removeAddedBends(IGraph graph,
Iterable<IBend> addedBends)
Removes previously
registered added bends. |
void |
GraphSnapContext.setBendGridConstraintProvider(IGridConstraintProvider<IBend> value)
Sets the grid constraint provider for the
IBend s. |