Package OpenCAGE.Actions.Collapse

Package for collapse actions

Class Collapse_Action

extends OpenCAGE.Actions.Action

This action will collapse objects together into a new parent node. You must get this action from the parent of the new parent node, i.e. the object where the new parent node is created. Then add all nodes and edges to the action. After that call execute to collapse the nodes and edges.

Operations

public Add ( OpenCAGE.GIF.Node_Model Node );

Adds a node to this action.

public Execute (void);

Executes the action. [This description is adopted from 'OpenCAGE.Actions.Action'.]

Precondition: All required data was set. [This precondition is adopted from 'OpenCAGE.Actions.Action'.]

Postcondition: The action was executed. [This postcondition is adopted from 'OpenCAGE.Actions.Action'.]

public Cancel (void);

Cancels an action. Note: this will do nothing in most cases. But you should use it to a) document your intention and b) it might be usefull for some actions in the future... [This description is adopted from 'OpenCAGE.Actions.Action'.]

Precondition: The action wasn't executed yet. [This precondition is adopted from 'OpenCAGE.Actions.Action'.]

Postcondition: The action will not be executed. [This postcondition is adopted from 'OpenCAGE.Actions.Action'.]

public Set_Collapse_Node_Name( Ada.Strings.Unbounded.Unbounded_String To);