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
Name | Description |
---|---|
Editor | A group of APIs to access the editor. |
Inherit Base
Name | Description |
---|---|
IEditor | This is an access object to editor information. |
Property
Name | Description |
---|---|
Connectors | List of connector shapes |
DisplayedShapes | List of displayed shapes |
Nodes | Node shape list |
Shapes | List of shapes |
Method
Name | Description |
---|---|
AddNodeShape | Adds a node shape corresponding to the specified model. However, if the corresponding node shape is already hidden, it will be shown. |
CanAddNodeShape | Checks whether the corresponding node shape can be added to the specified model. |
GetChildNodes | Gets the child nodes of the specified node. Returns an empty collection if the corresponding node does not exist. |
GetConnectorByNode | Gets the connector connected to the specified node. Returns an empty collection if no such connector exists. |
GetSelectedShapes | Gets 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. |
GetShapeById | Gets the shape with the specified identifier. Returns null if the shape with the corresponding identifier does not exist. |
GetShapesByModel | Gets the shapes corresponding to the specified model. Returns an empty collection if no such shape exists. |
HideShape | Hides the specified shape. If the mapping target specifies a class shape, it will be deleted. |
HideShapes | Hides 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". |
ShowShape | Displays the specified shape. |
ShowShapes | Display all specified shapes. |