GPRubberShape

Unit : GPRubberShapesUnit
Association : GPRubberShapeAsn
Inherits from : GPBoxBoundedShape, GPShape

Description

A shape that "rubber-bands," drawing and erasing itself to allow the user to resize the shape before it is permanently drawn.

Public Interface

CONSTRUCTOR Init;
Initializes the GPRubberShape (with the bounding box's corner coordinates set to (0, 0)).

CONSTRUCTOR InitWithPoints (start, finish: GPPoint);
Initializes the GPRubberShape with the given locations.

DESTRUCTOR Destroy; VIRTUAL;
Destroys the GPRubberShape.

PROCEDURE StartDraw (target: GPDrawingAreaAsn);
Starts the drawing process by drawing the shape in its initial location.

PROCEDURE Draw (target: GPDrawingAreaAsn);
Erases the shape from its old location and draws it in its new location.

PROCEDURE FinishDraw (target: GPDrawingAreaAsn);
Draws the line in its final location, and sets the shape to be reused later.

PROCEDURE Copy: GPRubberShapeAsn; VIRTUAL;
Produce a copy of the GPRubberShape.

Subclasses

GPRubberFramedOval, GPRubberFramedRect, GPRubberLine

Please report any problems with GP or the documentation to GP Support .


GP Home Page GP Documentation
Loring Holden