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 |
---|---|
IFoldingView |
FoldingManager.createFoldingView()
Creates a separate view instance of the
MasterGraph which is a synchronized copy of a subset
of the items from the master graph. |
IFoldingView |
FoldingManager.createFoldingView(INode root)
Creates a separate view instance of the
MasterGraph which is a synchronized copy of a subset
of the items from the master graph. |
IFoldingView |
FoldingManager.createFoldingView(INode root,
Predicate<INode> isExpanded)
Creates a separate view instance of the
MasterGraph which is a synchronized copy of a subset
of the items from the master graph. |
default IFoldingView |
IGraph.getFoldingView()
|
Modifier and Type | Method and Description |
---|---|
IEnumerable<IFoldingView> |
FoldingManager.getViews()
Yields all currently known
view instances that are managed by this
instance. |
Modifier and Type | Method and Description |
---|---|
protected IEdge |
MergingFoldingEdgeConverter.addFirstSeparateEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode viewSourceNode,
boolean sourceIsCollapsed,
INode targetSourceNode,
boolean targetIsCollapsed)
Adds the first separate edge to the source and target node pair using the
IFoldingEdgeFactory.addAsSeparateEdge(com.yworks.yfiles.graph.IPort, com.yworks.yfiles.graph.IPort)
method. |
IEdge |
MergingFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode source,
boolean sourceIsCollapsed,
INode target,
boolean targetIsCollapsed)
Tries to add the folding edge to an
existing folding edge,
considering the EdgeDirectionIgnoringEnabled property. |
IEdge |
IFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode source,
boolean sourceIsCollapsed,
INode target,
boolean targetIsCollapsed)
This method gets called by the
IFoldingView implementation to determine whether a given edge in the MasterGraph
should be represented by a folding edge in the given view. |
IEdge |
ExcludingFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode source,
boolean sourceIsCollapsed,
INode target,
boolean targetIsCollapsed)
Always calls
IFoldingEdgeFactory.excludeFoldingEdge() . |
IEdge |
DefaultFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode source,
boolean sourceIsCollapsed,
INode target,
boolean targetIsCollapsed)
Actually adds the folding edge as a
separate edge
to the view, reusing existing view ports of the
original source and target port, if ReusingMasterPortsEnabled is enabled and that
is possible for the given edge. |
abstract IEdge |
AbstractFoldingEdgeConverter.addFoldingEdge(IFoldingEdgeFactory factory,
IFoldingView foldingView,
IEdge masterEdge,
INode source,
boolean sourceIsCollapsed,
INode target,
boolean targetIsCollapsed) |
protected IEdgeStyle |
AbstractFoldingEdgeConverter.createEdgeStyle(IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IEdgeStyle for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgeStyle(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected ILabelModelParameter |
DefaultFolderNodeConverter.createLabelLayoutParameter(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelModelParameter for use in
DefaultFolderNodeConverter.initializeFolderNodeLabels(FolderNodeState, IFoldingView, INode, INode) . |
protected ILabelModelParameter |
AbstractFoldingEdgeConverter.createLabelLayoutParameter(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelModelParameter for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgeLabels(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected ILabelStyle |
DefaultFolderNodeConverter.createLabelStyle(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelStyle for use in
DefaultFolderNodeConverter.initializeFolderNodeLabels(FolderNodeState, IFoldingView, INode, INode) . |
protected ILabelStyle |
AbstractFoldingEdgeConverter.createLabelStyle(IFoldingView foldingView,
ILabel localLabel,
ILabel masterLabel)
Callback factory method that creates the
ILabelStyle for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgeLabels(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected INodeStyle |
DefaultFolderNodeConverter.createNodeStyle(IFoldingView foldingView,
INode viewNode,
INode masterNode)
Callback factory method that creates the
INodeStyle for use in
DefaultFolderNodeConverter.initializeFolderNodeStyle(FolderNodeState, IFoldingView, INode, INode) . |
protected IPortLocationModelParameter |
DefaultFolderNodeConverter.createPortLocationParameter(IFoldingView foldingView,
IPort localPort,
IPort masterPort)
Callback factory method that creates the
IPortLocationModelParameter for use in
DefaultFolderNodeConverter.initializeFolderNodePorts(FolderNodeState, IFoldingView, INode, INode) . |
protected IPortStyle |
DefaultFolderNodeConverter.createPortStyle(IFoldingView foldingView,
IPort localPort,
IPort masterPort)
Callback factory method that creates the
IPortStyle for use in
DefaultFolderNodeConverter.initializeFolderNodePorts(FolderNodeState, IFoldingView, INode, INode) . |
protected IPortLocationModelParameter |
AbstractFoldingEdgeConverter.createSourcePortLocationParameter(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortLocationModelParameter of the source port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected IPortStyle |
AbstractFoldingEdgeConverter.createSourcePortStyle(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortStyle of the source port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected IPortLocationModelParameter |
AbstractFoldingEdgeConverter.createTargetPortLocationParameter(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortLocationModelParameter of the target port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected IPortStyle |
AbstractFoldingEdgeConverter.createTargetPortStyle(IFoldingView foldingView,
IEdge localEdge,
List<IEdge> masterEdges)
Callback factory method that creates the
IPortStyle of the target port for use in
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState, IFoldingView, IEdge, List) . |
protected void |
DefaultFolderNodeConverter.initializeFolderNodeLabels(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Callback method that initializes the initial labels of the collapsed group node.
|
protected void |
DefaultFolderNodeConverter.initializeFolderNodeLayout(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Callback method that initializes the
Layout of the collapsed group node. |
protected void |
DefaultFolderNodeConverter.initializeFolderNodePorts(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Called by
DefaultFolderNodeConverter.initializeFolderNodeState(FolderNodeState, IFoldingView, INode, INode) to initialize the appearance
of the representatives of the master ports at the
collapsed group node. |
void |
IFolderNodeConverter.initializeFolderNodeState(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
|
void |
DefaultFolderNodeConverter.initializeFolderNodeState(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Implements the
IFolderNodeConverter.initializeFolderNodeState(FolderNodeState, IFoldingView, INode, INode)
method and initializes the appearance of the collapsed group node. |
protected void |
DefaultFolderNodeConverter.initializeFolderNodeStyle(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Callback method that initializes the
style property of the collapsed group node. |
protected void |
AbstractFoldingEdgeConverter.initializeFoldingEdgeBends(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback method that initializes the bends of the folding edge.
|
protected void |
AbstractFoldingEdgeConverter.initializeFoldingEdgeLabels(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback method that initializes the initial labels of the folding edge.
|
protected void |
AbstractFoldingEdgeConverter.initializeFoldingEdgePorts(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback method that initializes the ports of the folding edge.
|
void |
IFoldingEdgeConverter.initializeFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback that is triggered by the
view to initially create the appearance of a folding edge. |
void |
ExcludingFoldingEdgeConverter.initializeFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Does nothing and should not normally be called by the view since all folding edges are excluded from it.
|
void |
AbstractFoldingEdgeConverter.initializeFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Implements the
IFoldingEdgeConverter.initializeFoldingEdgeState(FoldingEdgeState, IFoldingView, IEdge, List)
method and initializes the folding edge appearance. |
protected void |
AbstractFoldingEdgeConverter.initializeFoldingEdgeStyle(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback method that initializes the
style property of the folding edge. |
protected void |
FoldingManager.prepareFoldingView(IFoldingView foldingView)
Callback that can be overridden by subclasses to prepare the
IFoldingView instance right before it will be
initialized with a copy of the elements in the initial graph. |
protected void |
DefaultFolderNodeConverter.synchronizeLabels(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Called by
DefaultFolderNodeConverter.updateFolderNodeState(FolderNodeState, IFoldingView, INode, INode) to synchronize the first label if
CopyingFirstLabelEnabled is enabled. |
protected void |
AbstractFoldingEdgeConverter.synchronizeLabels(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Called by
AbstractFoldingEdgeConverter.updateFoldingEdgeState(FoldingEdgeState, IFoldingView, IEdge, List) to synchronize the first label if
CopyingFirstLabelEnabled is enabled. |
void |
IFolderNodeConverter.updateFolderNodeState(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
|
void |
DefaultFolderNodeConverter.updateFolderNodeState(FolderNodeState state,
IFoldingView foldingView,
INode viewNode,
INode masterNode)
Implements the
IFolderNodeConverter.updateFolderNodeState(FolderNodeState, IFoldingView, INode, INode) method
and changes the folder node appearance. |
void |
IFoldingEdgeConverter.updateFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Callback that is triggered by the
view to adjust the appearance of a folding edge. |
void |
ExcludingFoldingEdgeConverter.updateFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Does nothing and should not normally be called by the view since all folding edges are excluded from it.
|
void |
AbstractFoldingEdgeConverter.updateFoldingEdgeState(FoldingEdgeState state,
IFoldingView foldingView,
IEdge foldingEdge,
List<IEdge> masterEdges)
Implements the
IFoldingEdgeConverter.updateFoldingEdgeState(FoldingEdgeState, IFoldingView, IEdge, List) method
and changes the folding edge appearance. |
Constructor and Description |
---|
FoldingEdgeStateId(IFoldingView foldingView,
IEdge foldingEdge)
Initializes an id for a folding edge that is currently part of the given view.
|
Modifier and Type | Method and Description |
---|---|
default IFoldingView |
IInputModeContext.getFoldingView()
Tries to retrieve an
IFoldingView instance from the IInputModeContext . |