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
Name | Description |
---|---|
Editor | A group of APIs to access editors. |
Inherit Base
Name | Description |
---|---|
IEditor | Access object for editor information. |
Property
Name | Description |
---|---|
Connectors | List of connector shapes |
DisplayedShapes | List of displayed shapes |
Nodes | List of node shapes |
Shapes | List of shapes |
Method
Name | Description |
---|---|
AddNodeShape | Adds a node shape that corresponds to the specified model. However, if a corresponding node shape already exists but is hidden, it will be displayed. |
CanAddNodeShape | Checks whether a node shape that corresponds to the specified model can be added. |
GetChildNodes | Gets the child nodes of a given node. Returns an empty collection if no such node exists. |
GetConnectorByNode | Gets the connectors connected to a given node. Returns an empty collection if no such connector exists. |
GetSelectedShapes | Gets 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. |
GetShapeById | Gets the shape for a given identifier. Returns null if no such shape exists. |
GetShapesByModel | Gets the shapes corresponding to a given 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 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. |
Relocate | Relocates 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". |
ShowShape | Shows the specified shape. |
ShowShapes | Shows all specified shapes. |