<< Click to Display Table of Contents >> NShape Reference
|
Base class for the graphical objects presented in a diagram.
public abstract class Shape : IEntity, ISecurityDomainObject, IDisposable, IEquatable<Shape> |
The shape is responsible for:
• | Drawing |
• | Connecting |
• | Moving and sizing |
• | Loading and Saving |
Every shape has a reference point, which is the point, which is moved in MoveTo. Every shape has control points that are used to resize or form the shape. Every shape can have connection points, which are used to connect to other shapes.
Name |
Description |
---|---|
Provides access to the child shapes. |
|
Indicates the diagram this shape is part of. |
|
Specifies the display service for the shape. |
|
HomeLayer |
Specifies the id of the layer that should serve as home layer of the shape. Any layer can be used as home layer. |
Layers |
Specifies the layer(s) this shape is part of. |
Specifies the line style used for drawing. |
|
Specifies the model object the shape represents. |
|
Indicates the parent shape if this shape is part of an aggregation. |
|
Name of the security domain. |
|
SupplementalLayers |
Specifies the LayerIds flags of all combinable layers the shape is part of. Only combinable layers (the first 32 layers) can be used as supplemental layers. |
Specifies a user-defined transient general purpose property. |
|
Indicates the shape's template. |
|
Indicates the shape's type. |
|
X coordinate of the shape. |
|
Y coordinate of the shape. |
Name |
Description |
---|---|
Transforms a relative position to absolute coordinates. |
|
Calculates the foot of a point-to-shape connection. |
|
Calculates a vector perpendicular to the shape's outline. |
|
Transforms absolute coordinates to a relative position. |
|
Returns true if a connection between the specified shapes and their connection points is feasible. |
|
Creates a copy of the shape. |
|
Connects a shape to another shape. |
|
Determines whether the given point is inside the shape. |
|
Copies as many properties as possible from the source shape. |
|
Disconnects a shape control point from another shape. |
|
Dispose |
Disposes the shape. All attached model objects will be notified that this shape will no longer exist. |
Draws the shape. |
|
Draws the shape's outline. |
|
Draws a thumbnail picture of the shape. |
|
Equals |
|
Finds the control point, with the least distance to the given coordinates fulfilling the ControlPointCapabilities constraints. |
|
Resizes and moves the shape to fit into the given rectangle. |
|
Moves a connected glue point when the connection point has moved. |
|
Retrieves an axis-aligned bounding box for the shape. |
|
Retrieves information about a specific connection of the shape. |
|
Retrieves information about the connections of the shape. |
|
Returns a list of ControlPointIds that fulfill at least one of the requested ControlPointCapabilities. |
|
Retrieves the position of the given control point. |
|
Retrieves the list of context menu item definitions of the shape. |
|
Tests, whether a control point has at least one of a set of given capabilities. |
|
Checks whether the given style is used by the shape. |
|
Tests whether the shape has a control point near the given coordinates. |
|
Calculates the intersection points of the shape's outline with the given line segment. |
|
Determines whether the given rectangle intersects with the shape. |
|
Invalidates the shape. |
|
Tests, whether the shape is connected to a given other shape. |
|
Transforms the shape into a preview shape. |
|
Moves the shape by a given distance. |
|
Moves the control point by a given distance. |
|
Moves the control point to a given position. |
|
Moves the shape to a given position. |
|
NotifyModelChanged |
Notifies the shape that a property of its model object has changed. |
NotifyStyleChanged |
Notifies the shape that the given style has changed. |
Rotates the shape. |
|
ToString |
Returns the shape's shape type name. |
Name |
Description |
---|---|
ChildrenCollection |
Gets the collection that stores and manages the shape's child shapes. |
IdCore |
Specifies the IEntity.Id of this shape. |
Name |
Description |
---|---|
AssignIdCore |
Implementation of IEntity.AssignId. |
AttachGluePointToConnectionPoint |
Attaches a glue control point of this shape to a connection control point of another shape when creating a connection between shapes. |
CalculateCells |
Calculates the cells occupied by this shape in the diagram's spatial index. |
DeleteCore |
Implementation of IEntity.Delete. |
DetachGluePointFromConnectionPoint |
Detaches an attached glue control point of this shape from a connection control point of another shape when disconnecting connected shapes. |
InitializeToDefault |
Initializes a shape with default values. |
LoadFieldsCore |
Implementation of IEntity.LoadFields. |
LoadInnerObjectsCore |
Implementation of IEntity.LoadInnerObjects. |
SaveFieldsCore |
Implementation of IEntity.SaveFields. |
SaveInnerObjectsCore |
Implementation of IEntity.SaveInnerObjects. |
Derived classes are:
Namespace: Dataweb.NShape
Assembly: Dataweb.NShape