Skip to main content

IDiagram Interface

Namespace: NextDesign.Core

Description

Access object for 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.

Belonging Area

NameDescription
EditorA group of APIs to access editors.

Inherit Base

NameDescription
IEditorAccess object for editor information.

Property

NameDescription
ConnectorsList of connector shapes
DisplayedShapesList of displayed shapes
NodesList of node shapes
ShapesList of shapes

Method

NameDescription
AddNodeShapeAdds a node shape that corresponds to the specified model.
However, if a corresponding node shape already exists but is hidden, it will be displayed.
CanAddNodeShapeChecks whether a node shape that corresponds to the specified model can be added.
GetChildNodesGets the child nodes of a given node.
Returns an empty collection if no such node exists.
GetConnectorByNodeGets the connectors connected to a given node.
Returns an empty collection if no such connector exists.
GetSelectedShapesGets the shapes selected in the editor.
The order of the selected elements in the collection is unspecified.
Returns an empty collection if no such shape exists.
GetShapeByIdGets the shape for a given identifier.
Returns null if no such shape exists.
GetShapesByModelGets the shapes corresponding to a given 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 includes a class shape, that shape will be deleted.
MoveToCanvas(IEnumerable<INode>)Moves all specified node shapes so that the diagram becomes the parent on display.
At this time, the structure of the model to which the node shapes correspond will not be changed.
Note that the specified node shape must meet 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 becomes the parent on the display.
At this time, the structure of the model that the node shape corresponds to will not be changed.
Note that the specified node shape must meet 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.
RelocateRelocates all nodes.
Relocate(IEnumerable<INode>)Relocates the specified node.
Reroute(bool,IEnumerable<IConnector>)Recalculates the route of the specified connector.
This process may take some time. If the route calculation includes orthogonal broken lines, you may be able to speed up the calculation process by setting the argument "avoidOverlap" to "false".
Reroute(bool)Recalculates the routes of all connectors on this diagram.
This process may take some time. If the route calculation includes orthogonal broken lines, you may be able to speed up the calculation process by setting the argument "avoidOverlap" to "false".
ShowShapeShows the specified shape.
ShowShapesShows all specified shapes.