NShape Reference
ShapeAggregation Class

<< Click to Display Table of Contents >>

Navigation:  Class Reference > Namespace Dataweb.NShape.Advanced >

NShape Reference
ShapeAggregation Class

Previous pageReturn to chapter overviewNext page

Manages a collection of shapes in shape groups or composite shapes.

Syntax

public abstract class ShapeAggregation : ShapeCollection

Description

ShapeAggregation stores the list of shapes and all additional caching information required to construct an aggregated shape like a shape group or a composite shape.

Public Properties

Name

Description

Owner

The shape that owns the aggregation.

Public Methods

Name

Description

ContainsPoint

Tests if the any of the aggregation's child shapes contains the given coordinates.

CopyFrom

Copies as many properties as possible from the given source.

Draw

Draws the aggregation's shapes.

DrawOutline

Draws the aggregation's shape's outlines.

IntersectsWith

Tests if the any of the aggregation's child shapes intersects with the given area.

NotifyChildMoved

This method is called by the aggregation's child shapes in order to notify the aggregation that one of the child shapes has moved.

NotifyChildResized

This method is called by the aggregation's child shapes in order to notify the aggregation that one of the child shapes has resized.

NotifyChildRotated

This method is called by the aggregation's child shapes in order to notify the aggregation that one of the child shapes has rotated.

NotifyParentMoved

Notifies the aggregation's child shapes that their parent has moved. Rotates all children according to the parent's rotation.

NotifyParentRotated

Notifies the aggregation's child shapes that their parent has rotated. Rotates all children according to the parent's rotation.

NotifyParentSized

Notifies the child shapes that their parent has been resized. The action performed depends on the implementing class.

NotifyStyleChanged

Notifies the aggregation and its children that

SetPreviewStyles

Transforms the aggregation's child shapes into preview shapes.

Protected Properties

Name

Description

UpdateSuspended

Indicates wether the aggregation should update itself on moving, resizing or rotating of a child shape.

Protected Methods

Name

Description

ClearCore

Implementation of deleting and removing all children from the aggregation.

Constructor

Constructs a new instance.

InsertCore

Implementation of inserting a new shape.

Invalidate

Invalidate the aggregation's child shapes.

RemoveCore

Implementation of removing a shape from the aggregation.

ReplaceCore

Implementation of replacing a child shape with an other shape.

ResumeUpdate

Resumes updating the updating the aggregation when child shapes move, resize of rotate.

SuspendUpdate

Temporarily suspends updating the aggregation when child shapes move, resize of rotate. Calls of SuspendUpdate are cumulative, so each SuspendUpdate call has to be finished by a call of ResumeUpdate.

Derived Classes

Derived classes are:

CompositeShapeAggregation

GroupShapeAggregation

Requirements

Namespace: Dataweb.NShape

Assembly: Dataweb.NShape