Class TUndoInsertPoint

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoInsertPoint = class(TCustomUpdateScreenObjectUndo)

Description

TUndoInsertPoint inserts a point into a TScreenObject.

Hierarchy

Overview

Fields

Private FCanInsert: boolean;
Private FPoint: TPoint2D;
Private FPosition: integer;
Private FScreenObject: TScreenObject;
Private FSectionStarts: TValueArrayStorage;
Private FPoints: TRealPointArray;

Methods

Protected function Description: string; override;
Public constructor Create(const AScreenObject: TScreenObject; const APosition: integer; const APoint: TPoint2D);
Public destructor Destroy; override;
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;

Description

Fields

Private FCanInsert: boolean;

FCanInsert indicates whether or not the point can be inserted.

Private FPoint: TPoint2D;

FPoint is the point to be inserted.

Private FPosition: integer;

FPosition is the position in TScreenObject.Points where FPoint should be inserted.

Private FScreenObject: TScreenObject;

FScreenObject is the TScreenObject into which FPoint is being inserted.

Private FSectionStarts: TValueArrayStorage;
 
Private FPoints: TRealPointArray;
 

Methods

Protected function Description: string; override;

Description describes what this TUndoInsertPoint does. It is used in menu captions and hints.

Public constructor Create(const AScreenObject: TScreenObject; const APosition: integer; const APoint: TPoint2D);

Create creates an instance of TUndoInsertPoint.

Parameters
AScreenObject
is is the TScreenObject into which APoint is being inserted.
APosition
is the position in TScreenObject.Points where APoint should be inserted.
APoint
is the point to be inserted.
Public destructor Destroy; override;
 
Public procedure DoCommand; override;

DoCommand inserts the point.

Public procedure Redo; override;

Redo calls DoCommand.

Public procedure Undo; override;

Undo deletes the point.


Generated by PasDoc 0.12.1 on 2013-05-13 15:42:06