Skip to main content

IDiagram interface

Namespace: NextDesign.Core

Description

This is an access object to diagram editor information.
If the EditorType of IEditor is "ERDiagram" or "TreeDiagram", you can access information specific to the diagram editor by casting to this interface type.

Area you belong to

NameDescription
EditorA group of APIs to access the editor.

Inherit Base

NameDescription
IEditorThis is an access object to editor information.

Property

NameDescription
ConnectorsList of connector shapes
DisplayedShapesList of displayed shapes
NodesNode shape list
ShapesList of shapes

Method

NameDescription
AddNodeShapeAdds a node shape corresponding to the specified model.
However, if the corresponding node shape is already hidden, it will be shown.
CanAddNodeShapeChecks whether the corresponding node shape can be added to the specified model.
GetChildNodesGets the child nodes of the specified node.
Returns an empty collection if the corresponding node does not exist.
GetConnectorByNodeGets the connector connected to the specified node.
Returns an empty collection if no such connector exists.
GetSelectedShapesGets the shapes selected in the editor.
The collection of selected elements is in arbitrary order.
Returns an empty collection if there are no selected shapes.
GetShapeByIdGets the shape with the specified identifier.
Returns null if the shape with the corresponding identifier does not exist.
GetShapesByModelGets the shapes corresponding to the specified model.
Returns an empty collection if no such shape exists.
HideShapeHides the specified shape.
If the mapping target specifies a class shape, it will be deleted.
HideShapesHides all specified shapes.
If the mapping target contains a class shape, that shape will be deleted.
MoveToCanvas(IEnumerable<INode>)Moves all specified node shapes so that the diagram becomes the parent on the display.
At this time, the structure of the model corresponding to the node shape will not be changed.
The specified node shape must satisfy all of the following conditions. Node shapes that do not meet the conditions will be ignored.
- Not a port shape
- The mapping target is not a field.
MoveToCanvas(INode)Moves the specified node shape so that the diagram is the parent on the display.
At this time, the structure of the model corresponding to the node shape will not be changed.
The specified node shape must satisfy all of the following conditions. If a node shape that does not meet the conditions is specified, nothing will be done.
- Not a port shape
- The mapping target is not a field.
Relocate()Relocates all nodes.
Relocate(IEnumerable<INode>)Relocates the specified node.
Reroute(bool,IEnumerable<IConnector>)Recalculates the route for the specified connector.
This process may take some time. If the route calculation target includes orthogonal polygonal lines, the calculation process may be sped up by specifying "false" for the argument "avoidOverlap".
Reroute(bool)Recalculates the routes of all connectors on this diagram.
This process may take some time. If the route calculation target includes orthogonal polygonal lines, the calculation process may be sped up by specifying "false" for the argument "avoidOverlap".
ShowShapeDisplays the specified shape.
ShowShapesDisplay all specified shapes.