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.graphml |
Definitions, default implementations, and support classes for GraphML I/O support.
|
com.yworks.yfiles.layout |
Provides essential classes and interfaces that constitute the infrastructure for automatic graph layout generation.
|
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 |
AbstractGraphWrapper
An abstract
IGraph implementation that delegates all of its work to an existing implementation. |
class |
DefaultGraph
Central implementation of the
IGraph interface. |
class |
FilteredGraphWrapper
|
Modifier and Type | Method and Description |
---|---|
protected IGraph |
GraphClipboard.createClipboardGraph()
Creates the graph used for the clipboard.
|
IGraph |
GraphClipboard.getClipboardGraph()
Gets the graph that contains the clipboard's contents.
|
IGraph |
IFoldingView.getGraph()
Provides a reference to the
IGraph implementation that provides the actual view data. |
IGraph |
FoldingManager.getMasterGraph()
Yields the master
IGraph instance that holds the complete model in expanded group node state. |
IGraph |
IGraphClipboardContext.getSourceGraph()
Gets the source graph for the current operation.
|
IGraph |
IGraphClipboardContext.getTargetGraph()
Gets the target graph for the current operation.
|
IGraph |
AbstractGraphWrapper.getWrappedGraph()
Gets the graph that has been wrapped by this instance.
|
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 void |
FilteredGraphWrapper.addEventHandlers(IGraph graph) |
protected void |
AbstractGraphWrapper.addEventHandlers(IGraph graph)
Adds event handlers that propagate graph events from
graph to listeners on this instance. |
protected ILabel |
GraphCopier.addLabel(IGraph sourceGraph,
IGraph targetGraph,
ILabelOwner targetOwner,
ILabel sourceLabel)
Callback method that adds a label to the target item in the targetGraph as a copy of the source label.
|
protected IPort |
GraphCopier.addPort(IGraph sourceGraph,
IGraph targetGraph,
IPortOwner targetOwner,
IPort sourcePort)
Callback method that adds a port to the targetPortOwner in the targetGraph as a copy of the source port.
|
static void |
LayoutUtilities.applyLayout(IGraph graph,
ILayoutAlgorithm layout)
Convenience method that runs a layout on a graph using
LayoutGraphAdapter.applyLayout(IGraph, ILayoutAlgorithm, LayoutData) . |
static void |
LayoutUtilities.applyLayout(IGraph graph,
ILayoutAlgorithm layout,
LayoutData layoutData)
Convenience method that runs a layout on a graph using
LayoutGraphAdapter.applyLayout(IGraph, ILayoutAlgorithm, LayoutData) . |
RectD |
IGroupBoundsCalculator.calculateBounds(IGraph graph,
INode groupNode)
|
void |
GraphCopier.copy(IGraph sourceGraph,
IGraph targetGraph)
Copies
sourceGraph to targetGraph . |
void |
GraphClipboard.copy(IGraph sourceGraph,
Predicate<IModelItem> filter)
Copies the elements indicated by the filter to the clipboard graph.
|
protected void |
GraphClipboard.copy(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
INode targetRootNode,
IElementCopiedCallback elementCopiedCallback)
Calls
GraphCopier.copy(IGraph, Predicate, IGraph, INode, PointD, IElementCopiedCallback) on the current ToClipboardCopier
instance or FromClipboardCopier instance, depending on whether the targetGraph
is the ClipboardGraph instance. |
void |
GraphCopier.copy(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
INode targetRootNode,
PointD offset,
IElementCopiedCallback elementCopiedCallback)
|
void |
GraphCopier.copy(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
PointD offset,
IElementCopiedCallback elementCopiedCallback)
|
protected IEdge |
GraphCopier.copyEdge(IGraph sourceGraph,
IGraph targetGraph,
IEdge sourceEdge,
IPort targetSourcePort,
IPort targetTargetPort)
Callback method that adds an edge to the targetGraph as a copy of the source edge.
|
IEdgeStyle |
GraphCopier.copyEdgeStyle(IGraph graph,
IEdge edge)
Copies an
IEdgeStyle instance. |
protected INode |
GraphCopier.copyGroupNode(IGraph sourceGraph,
IGraph targetGraph,
INode sourceGroupNode,
INode targetParent,
PointD offset)
Callback method that creates a copy of the
sourceGroupNode in the targetGraph . |
ILabelModelParameter |
GraphCopier.copyLabelLayoutParameter(IGraph graph,
ILabel label)
Copies a
ILabelModelParameter for a given label. |
ILabelStyle |
GraphCopier.copyLabelStyle(IGraph graph,
ILabel label)
Copies an
ILabelStyle instance. |
protected INode |
GraphCopier.copyNode(IGraph sourceGraph,
IGraph targetGraph,
INode node,
INode targetParent,
PointD offset)
Callback method that creates a copy of the
node in the targetGraph . |
protected INode |
GraphCopier.copyNode(IGraph sourceGraph,
IGraph targetGraph,
INode node,
PointD offset)
Callback method that creates a copy of the
node in the targetGraph . |
INodeStyle |
GraphCopier.copyNodeStyle(IGraph graph,
INode node)
Copies an
INodeStyle instance. |
IPortLocationModelParameter |
GraphCopier.copyPortLocationParameter(IGraph graph,
IPort port)
Copies a
IPortLocationModelParameter for a given port. |
IPortStyle |
GraphCopier.copyPortStyle(IGraph graph,
IPort port)
Copies an
IPortStyle instance. |
protected IGraphClipboardContext |
GraphClipboard.createContext(IGraph sourceGraph,
IGraph targetGraph)
Factory method that creates the context for the upcoming calls to the
IClipboardHelper methods. |
Predicate<IModelItem> |
GraphClipboard.createDefaultCopyFilter(IGraphSelection selection,
IGraph graph)
Creates a
Predicate for use in the GraphClipboard.copy(IGraph, Predicate, IGraph, INode, IElementCopiedCallback)
method. |
Predicate<IModelItem> |
GraphClipboard.createDefaultCutFilter(IGraphSelection selection,
IGraph graph)
Creates a
Predicate for use in the GraphClipboard.cut(IGraph, Predicate) method. |
Predicate<IModelItem> |
GraphClipboard.createDefaultDuplicateFilter(IGraphSelection selection,
IGraph graph)
Creates a
Predicate for use in the GraphClipboard.duplicate(IInputModeContext, IGraph, Predicate, IElementCopiedCallback)
method. |
static ILayerConstraintFactory |
LayoutUtilities.createLayerConstraintFactory(HierarchicLayout layout,
IGraph graph)
Creates and registers an incremental layer constraint factory for an
IGraph . |
static IAnimation |
LayoutUtilities.createLayoutAnimation(IGraph graph,
CopiedLayoutGraph layoutGraph,
Duration preferredDuration)
Creates a new
IAnimation instance that animates the current graph to the layout given by a CopiedLayoutGraph
instance. |
Predicate<IModelItem> |
GraphClipboard.createSelectionFilter(IGraphSelection selection,
IGraph graph)
Creates a
Predicate for use in the GraphClipboard.cut(IGraph, Predicate) and GraphClipboard.copy(IGraph, Predicate, IGraph, INode, IElementCopiedCallback)
methods. |
static ISequenceConstraintFactory |
LayoutUtilities.createSequenceConstraintFactory(HierarchicLayout layout,
IGraph graph)
Creates and registers a sequencer constraint factory for an
IGraph . |
static Predicate<IModelItem> |
GraphClipboard.createWrappedFilter(Predicate<IModelItem> coreFilter,
IGraph graph,
boolean restrictive)
Creates an induced
Predicate from coreFilter for use in the GraphClipboard.cut(IGraph, Predicate) and GraphClipboard.copy(IGraph, Predicate, IGraph, INode, IElementCopiedCallback)
methods that takes dependent items into account. |
void |
GraphClipboard.cut(IGraph sourceGraph,
Predicate<IModelItem> filter)
Cuts the items indicated by
filter to the clipboard and removes them from the graph. |
void |
GraphClipboard.duplicate(IInputModeContext context,
IGraph sourceGraph,
Predicate<IModelItem> filter,
IElementCopiedCallback elementDuplicated)
Duplicates the elements indicated by the filter.
|
protected ILabelModelParameter |
GraphClipboard.getLabelLayoutParameter(GraphCopier copier,
IGraph graph,
ILabel label,
ILabelOwner newOwner)
|
protected IPortLocationModelParameter |
GraphClipboard.getPortLocationParameter(GraphCopier copier,
IGraph graph,
IPort originalPort,
IPortOwner newOwner)
|
protected FoldingManager |
GraphCopier.getSourceFoldingManager(IGraph sourceGraph)
Callback method that retrieves the
FoldingManager from the given source graph. |
protected FoldingManager |
GraphCopier.getTargetFoldingManager(IGraph targetGraph)
Callback method that retrieves the
FoldingManager from the given target graph. |
static void |
Table.installDynamicUndoSupport(IGraph graph)
Installs the undo support for use with all tables that are bound to nodes in
graph . |
static void |
Table.installStaticUndoSupport(IGraph graph)
Installs the undo support for use with all tables that are bound to nodes in
graph . |
protected void |
FilteredGraphWrapper.onGraphChanged(IGraph oldGraph,
IGraph newGraph) |
protected void |
AbstractGraphWrapper.onGraphChanged(IGraph oldGraph,
IGraph newGraph)
Called when the
WrappedGraph property value changes and after initialization of the field. |
protected void |
GraphCopier.onGraphCopied(IGraph sourceGraph,
IGraph targetGraph)
Called after the entire graph has been copied.
|
void |
GraphClipboard.paste(IGraph targetGraph)
|
void |
GraphClipboard.paste(IGraph targetGraph,
IGraphSelection selection)
Pastes the
ClipboardGraph 's contents into the
targetGraph , selecting all pasted elements. |
void |
GraphClipboard.paste(IGraph targetGraph,
Predicate<IModelItem> filter)
|
void |
GraphClipboard.paste(IGraph targetGraph,
Predicate<IModelItem> filter,
IElementCopiedCallback elementPasted)
|
protected void |
GraphClipboard.paste(IGraph sourceGraph,
Predicate<IModelItem> filter,
IGraph targetGraph,
INode targetRootNode,
IElementCopiedCallback elementCopiedCallback,
Predicate<IModelItem> targetFilter)
Calls
GraphCopier.copy(IGraph, Predicate, IGraph, INode, PointD, IElementCopiedCallback) on the current FromClipboardCopier
instance, depending on whether the targetGraph is the ClipboardGraph instance. |
void |
GraphClipboard.paste(IInputModeContext context,
IGraph targetGraph,
Predicate<IModelItem> filter,
IElementCopiedCallback elementPasted,
Predicate<IModelItem> targetFilter)
|
static void |
ITable.placeNodeInCell(IGraph graph,
INode node,
INode tableNode,
IColumn column,
IRow row)
Places
node in the center of the table cell determined by column and row . |
static void |
ITable.placeNodeInCell(IGraph graph,
INode node,
INode tableNode,
IColumn column,
IRow row,
boolean reparent)
Places
node in the center of the table cell determined by column and row . |
static void |
ITable.placeNodeInCell(IGraph graph,
INode node,
INode tableNode,
IColumn column,
IRow row,
boolean reparent,
boolean alwaysMove)
Places
node in the center of the table cell determined by column and row . |
protected void |
GraphClipboard.removeElements(IGraph sourceGraph,
Predicate<IModelItem> predicate)
Removes elements from the graph based on a
Predicate . |
protected void |
FilteredGraphWrapper.removeEventHandlers(IGraph graph) |
protected void |
AbstractGraphWrapper.removeEventHandlers(IGraph graph)
Removes event handlers for
graph that have been added with AbstractGraphWrapper.addEventHandlers(IGraph) . |
void |
GraphClipboard.setClipboardGraph(IGraph value)
Sets the graph that contains the clipboard's contents.
|
protected void |
AbstractGraphWrapper.setWrappedGraph(IGraph value)
Sets the graph that has been wrapped by this instance.
|
static void |
Table.uninstallDynamicUndoSupport(IGraph graph)
Uninstalls the undo support that has previously been installed with
Table.installDynamicUndoSupport(IGraph) . |
static void |
Table.uninstallStaticUndoSupport(IGraph graph)
Uninstalls the undo support that has previously been installed with
Table.installStaticUndoSupport(IGraph) . |
Modifier and Type | Method and Description |
---|---|
void |
GraphCopier.addGraphCopiedListener(IEventHandler<ItemCopiedEventArgs<IGraph>> graphCopiedEvent)
Adds the given listener for the
GraphCopied event that occurs after the entire graph has been copied. |
void |
IGraph.addGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent)
Adds the given listener for the
GraphTagChanged event that occurs when the tag of the
graph has been replaced. |
void |
DefaultGraph.addGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent) |
void |
AbstractGraphWrapper.addGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent) |
protected void |
AbstractGraphWrapper.onGraphTagChanged(ItemChangedEventArgs<IGraph,Object> args)
Raises the
GraphTagChanged event. |
void |
GraphCopier.removeGraphCopiedListener(IEventHandler<ItemCopiedEventArgs<IGraph>> graphCopiedEvent)
Removes the given listener for the
GraphCopied event that occurs after the entire graph has been copied. |
void |
IGraph.removeGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent)
Removes the given listener for the
GraphTagChanged event that occurs when the tag of
the graph has been replaced. |
void |
DefaultGraph.removeGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent) |
void |
AbstractGraphWrapper.removeGraphTagChangedListener(IEventHandler<ItemChangedEventArgs<IGraph,Object>> graphTagChangedEvent) |
Constructor and Description |
---|
AbstractGraphWrapper(IGraph graph)
Creates a new instance that wraps a given
IGraph . |
FilteredGraphWrapper(IGraph graph,
Predicate<INode> nodePredicate,
Predicate<IEdge> edgePredicate)
Creates a new graph instance that wraps the original graph and uses the
Predicate s to determine which nodes and edges should be contained in the graph. |
FoldingManager(IGraph masterGraph)
Creates a manager instance for the given
MasterGraph to create views on top of it that support
folding operations. |
GraphDecorator(IGraph graph)
Initializes a new instance of the
GraphDecorator class. |
GroupingSupport(IGraph graph)
Creates a new instance which operates on the given
graph . |
Modifier and Type | Method and Description |
---|---|
IGraph |
IWriteContext.getGraph()
Returns the currently active graph object.
|
IGraph |
IParseContext.getGraph()
Returns the currently active graph object.
|
IGraph |
ChildWriteContext.getGraph() |
IGraph |
ChildParseContext.getGraph() |
IGraph |
IGraphElementResolver.resolveGraph(IParseContext context,
String id)
Resolve the GraphML
id to an IGraph instance. |
IGraph |
GraphElementIdAcceptor.resolveGraph(IParseContext context,
String id) |
Modifier and Type | Method and Description |
---|---|
Map<IGraph,String> |
GraphElementIdAcceptor.getGraphIds()
Return a mapping between all GraphML ids for
<graph> elements and the corresponding IGraph instances. |
Modifier and Type | Method and Description |
---|---|
protected void |
GraphMLIOHandler.configureDeserializationHandlers(IGraph graph,
GraphMLParser parser)
Configure the predefined handlers for the
HandleDeserialization
event. |
protected void |
GraphMLIOHandler.configureGraphMLParser(GraphMLParser parser,
IGraph graph)
Configures a given instance of
GraphMLParser that can handle the given graph. |
protected void |
GraphMLIOHandler.configureGraphMLWriter(GraphMLWriter writer,
IGraph graph)
Configures a given
GraphMLWriter that is used for writing graph . |
protected void |
GraphMLIOHandler.configureLookup(IGraph graph,
GraphMLWriter writer)
Configure the lookup map of
writer . |
protected void |
GraphMLIOHandler.configureOutputHandlers(IGraph graph,
GraphMLWriter writer)
Configures default event handlers for the
QueryOutputHandlers
event. |
protected void |
GraphMLIOHandler.configureSerializationHandlers(IGraph graph,
GraphMLWriter writer)
Configures the predefined handlers for the
HandleSerialization
event. |
protected void |
GraphMLIOHandler.configureSerializationProperties(IGraph graph,
GraphMLWriter writer)
Configure important serialization properties from properties of
GraphMLIOHandler . |
protected IGraphElementFactory |
GraphMLIOHandler.createGraphElementFactory(GraphMLParser parser,
IGraph graph)
Create an
IGraphElementFactory instance that creates the graph elements for the graph instance. |
protected GraphMLParser |
GraphMLIOHandler.createGraphMLParser(IGraph graph)
Create a suitable instance of
GraphMLParser that can handle the given graph. |
protected GraphMLWriter |
GraphMLIOHandler.createGraphMLWriter(IGraph graph)
Create and configure a new
GraphMLWriter that is used for writing graph . |
protected IParseContext |
GraphMLParser.createParseContext(IGraph graph)
Create the initial
IParseContext instance. |
protected IWriteContext |
GraphMLWriter.createWriteContext(IGraph graph,
IXmlWriter writer)
Create the initial
IWriteContext instance. |
String |
IGraphElementIdProvider.getGraphId(IWriteContext context,
IGraph graph)
Get an ID for the specified
graph object. |
void |
GraphMLParser.parse(IGraph graph,
Document document,
IGraphElementFactory elementFactory)
Parse the XML document
document into an graph instance, using elementFactory to create the
elements. |
void |
GraphMLParser.parse(IGraph graph,
InputStream stream,
IGraphElementFactory elementFactory)
Parse the input
stream into an graph instance, using elementFactory to create the elements. |
void |
GraphMLParser.parse(IGraph graph,
InputStream stream,
URI baseUri,
IGraphElementFactory elementFactory)
Parse the input
stream into an graph instance, using elementFactory
to create the elements. |
void |
GraphMLParser.parse(IGraph graph,
Reader reader,
IGraphElementFactory elementFactory)
Parse the input
reader into an graph instance, using elementFactory to create the elements. |
void |
GraphMLParser.parse(IGraph graph,
Reader reader,
URI baseUri,
IGraphElementFactory elementFactory)
Parse the input
reader into an graph instance, using elementFactory
to create the elements. |
void |
GraphMLParser.parse(IGraph graph,
String uri,
IGraphElementFactory elementFactory)
Parse the input
uri into an graph instance, using elementFactory to create the elements. |
void |
GraphMLIOHandler.read(IGraph graph,
Document document)
Read GraphML from an existing XML document.
|
void |
GraphMLIOHandler.read(IGraph graph,
InputStream stream)
Reads GraphML content from the given input stream and populates the Graph object.
|
void |
GraphMLIOHandler.read(IGraph graph,
InputStream stream,
URI baseUri)
Reads GraphML content from the given input stream and populates the Graph
object.
|
void |
GraphMLIOHandler.read(IGraph graph,
Reader reader)
Reads GraphML content from the given reader and populates the Graph object.
|
void |
GraphMLIOHandler.read(IGraph graph,
Reader reader,
URI baseUri)
Reads GraphML content from the given reader and populates the Graph
object.
|
void |
GraphMLIOHandler.read(IGraph graph,
String filename)
Reads a GraphML file from the given GraphML file and populates the
IGraph object. |
void |
GraphMLIOHandler.read(IGraph graph,
URL url)
Reads a GraphML file from the given url inside the applications xap file and populates the Graph
object.
|
void |
IGraphElementIdAcceptor.storeId(IParseContext context,
IGraph graph,
String id)
Store the value of the id attribute for the given graph.
|
void |
GraphElementIdAcceptor.storeId(IParseContext context,
IGraph graph,
String id) |
void |
GraphMLWriter.write(IGraph graph,
IXmlWriter writer)
Write the GraphML representation of
graph , using writer for the actual XML generation. |
void |
GraphMLIOHandler.write(IGraph graph,
OutputStream os)
Writes the given graph object to the output stream creating a GraphML file.
|
void |
GraphMLIOHandler.write(IGraph graph,
OutputStream os,
Charset encoding)
Writes the given graph object to the output stream creating a GraphML file.
|
void |
GraphMLIOHandler.write(IGraph graph,
String filename)
Writes the given graph object to a GraphML file with a given filename.
|
void |
GraphMLIOHandler.write(IGraph graph,
Writer os)
Writes the given graph object to the output writer creating a GraphML file.
|
Modifier and Type | Method and Description |
---|---|
IGraph |
LayoutGraphAdapter.getAdaptedGraph()
Gets or yields the original
IGraph instance that is adapted by this instance. |
protected IGraph |
LayoutExecutor.getGraph()
Gets the graph this instance is working on.
|
IGraph |
YGraphAdapter.getOriginalGraph()
Gets the original graph instance.
|
Modifier and Type | Method and Description |
---|---|
static void |
LayoutGraphAdapter.applyLayout(IGraph graph,
ILayoutAlgorithm layout)
Static convenience method that applies a
layout algorithm to an IGraph . |
static void |
LayoutGraphAdapter.applyLayout(IGraph graph,
ILayoutAlgorithm layout,
LayoutData layoutData)
Static convenience method that applies a
layout algorithm to an IGraph . |
void |
TableLayoutConfigurator.cleanUp(IGraph graph)
Destroy all information that results from a previous
TableLayoutConfigurator.prepare(IGraph) and a subsequent layout. |
protected ILabelCandidateDescriptorProvider |
LayoutGraphAdapter.getLabelCandidateDescriptorProvider(IGraph graph)
Callback method that gets the label candidate descriptor provider for the given
IGraph . |
void |
TableLayoutConfigurator.prepare(IGraph graph)
Setup partition grid information from a graph that contains table structures.
|
void |
TableLayoutConfigurator.restore(IGraph graph)
Write back all information from the partition grid.
|
void |
LayoutGraphAdapter.setAdaptedGraph(IGraph value)
Sets or yields the original
IGraph instance that is adapted by this instance. |
Constructor and Description |
---|
LayoutExecutor(GraphControl graphControl,
IGraph graph,
ILayoutAlgorithm layout)
Initializes a new instance of the
LayoutExecutor class. |
LayoutGraphAdapter(IGraph graph)
Creates the adapter using a given
IGraph and ISelectionModel . |
LayoutGraphAdapter(IGraph graph,
ISelectionModel<IModelItem> selectionModel)
Creates the adapter using a given
IGraph and ISelectionModel . |
YGraphAdapter(IGraph originalGraph)
Initializes a new instance of the
YGraphAdapter class. |
Modifier and Type | Method and Description |
---|---|
protected IGraph |
GraphControl.createGraph()
Factory method for the Graph property.
|
IGraph |
GraphSelection.getGraph()
Gets the
IGraph this instance is using as the domain for the selection. |
IGraph |
GraphOverviewControl.getGraph()
Gets the graph that is rendered in the overview.
|
IGraph |
GraphModelManager.getGraph()
Gets the graph this manager manages.
|
IGraph |
GraphControl.getGraph()
Gets the graph that is displayed in this control.
|
protected IGraph |
GraphObstacleProvider.getGraph(IRenderContext context)
Helper method that retrieves the
IGraph to use from the . |
Modifier and Type | Method and Description |
---|---|
ObjectProperty<IGraph> |
GraphControl.graphProperty()
The property that holds the Graph.
|
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. |
static IAnimation |
IAnimation.createGraphAnimation(IGraph graph,
IMapper<INode,IRectangle> targetNodeLayouts,
IMapper<IEdge,IPoint[]> targetBendLocations,
IMapper<IPort,IPortLocationModelParameter> targetPortLocations,
IMapper<ILabel,ILabelModelParameter> targetLayoutParameters,
Duration preferredDuration)
Creates a new
IAnimation that animates the given layout of all types of graph items. |
protected OverviewGraphVisualCreator |
GraphOverviewControl.createGraphVisualCreator(IGraph graph)
Factory method that creates the
IVisualCreator that renders the preview of the graph. |
static IAnimation |
IAnimation.createLabelAnimation(IGraph graph,
ILabel label,
ILabelModelParameter targetLayoutParameter,
Duration preferredDuration)
Creates a new
IAnimation that animates the given label from its current layout linearly to the layout
given by the targetLayoutParameter . |
static IAnimation |
IAnimation.createNodeAnimation(IGraph graph,
INode node,
IRectangle targetLayout,
Duration preferredDuration)
Creates a new
IAnimation that animates the given node from its current layout to the new given
targetLayout . |
static IAnimation |
IAnimation.createPortAnimation(IGraph graph,
IPort port,
IPortLocationModelParameter targetLocationParameter,
Duration preferredDuration)
Creates a new
IAnimation that animates the given port from its current location to the new location
given by the targetLocationParameter . |
protected void |
GraphModelManager.onGraphChanged(IGraph oldGraph,
IGraph newGraph)
Called when the
Graph property changes. |
void |
GraphSelection.setGraph(IGraph value)
Sets the
IGraph this instance is using as the domain for the selection. |
void |
GraphOverviewControl.setGraph(IGraph value)
Sets the graph that is rendered in the overview.
|
void |
GraphModelManager.setGraph(IGraph value)
Sets the graph this manager manages.
|
void |
GraphControl.setGraph(IGraph value)
Sets the graph that is displayed in this control.
|
Constructor and Description |
---|
GraphSelection(IGraph graph)
Instantiates an instance using the the graph as the model.
|
OverviewGraphVisualCreator(IGraph graph)
Creates a new instance for the given graph.
|
Modifier and Type | Field and Description |
---|---|
protected IGraph |
PortRelocationHandleProvider.graph
The graph this provider is working on.
|
Modifier and Type | Method and Description |
---|---|
protected IGraph |
CreateEdgeInputMode.createDummyEdgeGraph()
Factory method that will create the dummy graph to hold the preview of the
DummyEdge . |
IGraph |
CreateEdgeInputMode.getDummyEdgeGraph()
Gets the dummy graph instance that will hold the items that will render a preview of the newly created edge.
|
IGraph |
NavigationInputMode.getGraph()
Gets the graph this mode operates on.
|
IGraph |
MoveLabelInputMode.getGraph()
Gets the
IGraph this mode is acting upon. |
protected IGraph |
LabelPositionHandler.getGraph()
Gets the graph instance from the
IInputModeContext that has been passed to the LabelPositionHandler.initializeDrag(IInputModeContext)
method. |
default IGraph |
IInputModeContext.getGraph()
Tries to retrieve an
IGraph instance from the IInputModeContext . |
IGraph |
EditLabelHelper.getGraph()
Gets the graph instance to retrieve the default values from.
|
IGraph |
CreateEdgeInputMode.getGraph()
Gets the Graph this mode is acting upon.
|
IGraph |
CreateBendInputMode.getGraph()
Gets the Graph this mode is acting upon.
|
protected IGraph |
PortRelocationHandle.getGraph(IInputModeContext context)
Gets the graph to use from the context.
|
protected IGraph |
PortLocationModelParameterHandle.getGraph(IInputModeContext context)
Gets the graph to use for
setting the parameter
from the context. |
protected IGraph |
ItemDropInputMode.getPreviewGraph()
Returns the graph displayed as item preview.
|
Modifier and Type | Method and Description |
---|---|
void |
OrthogonalEdgeHelper.cleanUpEdge(IInputModeContext context,
IGraph graph,
IEdge edge)
Callback method that is invoked after the provided edge has been edited orthogonally.
|
void |
IOrthogonalEdgeHelper.cleanUpEdge(IInputModeContext context,
IGraph graph,
IEdge edge)
Callback method that is invoked after the provided edge has been edited orthogonally.
|
protected void |
OrthogonalEdgeEditingContext.cleanUpEdgePath(IGraph graph,
IEdge edge)
Cleans up the edge's path after a successfully
finished drag . |
protected void |
OrthogonalEdgeEditingContext.cleanupEdgePaths(IGraph graph)
Called after a successfully
finished drag to clean up artifacts of modified edges. |
int |
IBendCreator.createBend(IInputModeContext context,
IGraph graph,
IEdge edge,
PointD location)
Creates a bend at the given graph for the given edge at the position supplied.
|
int |
DefaultBendCreator.createBend(IInputModeContext context,
IGraph graph,
IEdge edge,
PointD location) |
protected IEdge |
CreateEdgeInputMode.createEdge(IGraph graph,
IPortCandidate sourcePortCandidate,
IPortCandidate targetPortCandidate)
Callback used by
CreateEdgeInputMode.createEdge() if both SourcePortCandidate and TargetPortCandidate
have been set. |
IEdge |
IEdgeCreationCallback.createEdge(IInputModeContext context,
IGraph graph,
IPortCandidate sourcePortCandidate,
IPortCandidate targetPortCandidate,
IEdge templateEdge)
The delegate method that is used by
CreateEdgeInputMode to create edges between
instances of IPort . |
protected IPort |
DefaultPortCandidate.createInstance(IInputModeContext context,
IGraph graph,
IPortLocationModelParameter locationParameter,
IPortStyle style,
Object tag)
Actually creates the
IPort instance. |
T |
IDropCreationCallback.createItem(IInputModeContext context,
IGraph graph,
T draggedItem,
IModelItem dropTarget,
PointD dropLocation)
Callback for creating a copy of the dragged item in graph at the specified location.
|
protected INode |
NodeDropInputMode.createNode(IInputModeContext context,
IGraph graph,
INode node,
IModelItem dropTarget,
RectD layout)
Creates the node in the graph after it's been dropped.
|
INode |
INodeCreationCallback.createNode(IInputModeContext context,
IGraph graph,
PointD location,
INode parent)
A callback that is used by
GraphEditorInputMode for the creation of nodes. |
protected IHandle |
PortRelocationHandleProvider.createPortRelocationHandle(IGraph graph,
IEdge edge,
boolean sourcePort)
Factory method that creates the handle for this provider.
|
protected void |
StripeDropInputMode.populatePreviewGraph(IGraph previewGraph) |
protected void |
NodeDropInputMode.populatePreviewGraph(IGraph previewGraph) |
protected void |
ItemDropInputMode.populatePreviewGraph(IGraph previewGraph)
Subclasses shall fill the specified graph that is used to preview the dragged item.
|
protected void |
OrthogonalEdgeEditingContext.prepareEdgePaths(IGraph graph)
Called during
OrthogonalEdgeEditingContext.dragInitialized() to prepare the edge paths for orthogonal editing. |
protected void |
OrthogonalEdgeEditingContext.prepareOrthogonalEdge(IGraph graph,
IEdge edge,
IListEnumerable<SegmentOrientation> orientations,
IListEnumerable<MovementInfo> infos)
Helper method that inspects and prepares an orthogonal edge for the upcoming edit process.
|
protected void |
OrthogonalEdgeEditingContext.removeAddedBends(IGraph graph,
Iterable<IBend> addedBends)
Removes previously
registered added bends. |
void |
EditLabelHelper.setGraph(IGraph value)
Sets the graph instance to retrieve the default values from.
|
protected void |
PortLocationModelParameterHandle.setParameter(IGraph graph,
IPort port,
IPortLocationModelParameter locationParameter)
Callback method that applies the parameter.
|
protected void |
StripeDropInputMode.updatePreview(IGraph previewGraph,
PointD newLocation) |
protected void |
NodeDropInputMode.updatePreview(IGraph previewGraph,
PointD dragLocation) |
protected void |
ItemDropInputMode.updatePreview(IGraph previewGraph,
PointD dragLocation)
Subclasses shall update the
preview graph so the dragged item is displayed at the specified
dragLocation . |
Constructor and Description |
---|
PortRelocationHandle(IGraph graph,
IEdge edge,
boolean sourceEnd)
Creates a new instance of the
PortRelocationHandle class. |
PortRelocationHandleProvider(IGraph graph,
IEdge edge)
Initializes a new instance of the
PortRelocationHandleProvider class using the given graph and edge. |