Class TDiagramView

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TDiagramView = class(TCustomControl)

Description

This class shows a model and allows the user to interact with it

Hierarchy

Overview

Methods

Public constructor create(aowner:TComponent); override;
Public destructor destroy; override;
Public procedure SetModel(amodel: TAbstractDiagramModel; takeOwnership: boolean=false);
Public procedure paint; override;
Public procedure MouseDown(Button: TMouseButton; Shift:TShiftState; X,Y:Integer); override;
Public procedure MouseMove(Shift: TShiftState; X,Y: Integer); override;
Public procedure MouseUp(Button: TMouseButton; Shift:TShiftState; X,Y:Integer); override;
Public procedure KeyUp(var Key: Word; Shift: TShiftState); override;
Public procedure DoExit; override;

Properties

Published property Drawer: TDiagramDrawer read FDrawer;
Published property PointMovement: TDiagramPointMovement read FPointMovement write SetPointMovement;
Published property AllowedEditActions: TDiagramEditActions read FAllowedEditActions write SetAllowedEditActions;
Published property Model: TAbstractDiagramModel read FModel write SetModel;
Published property OnAlignInsertBefore;
Published property OnAlignPosition;
Published property OnDockDrop;
Published property OnDockOver;
Published property OnEnter;
Published property OnExit;
Published property OnKeyDown;
Published property OnKeyPress;
Published property OnKeyUp;
Published property OnUnDock;
Published property OnUTF8KeyPress;
Published property OnConstrainedResize;
Published property OnContextPopup;
Published property OnDblClick;
Published property OnTripleClick;
Published property OnQuadClick;
Published property OnDragDrop;
Published property OnDragOver;
Published property OnEndDock;
Published property OnEndDrag;
Published property OnMouseDown;
Published property OnMouseMove;
Published property OnMouseUp;
Published property OnMouseEnter;
Published property OnMouseLeave;
Published property OnMouseWheel;
Published property OnMouseWheelDown;
Published property OnMouseWheelUp;
Published property OnStartDock;
Published property OnStartDrag;

Description

Methods

Public constructor create(aowner:TComponent); override;
 
Public destructor destroy; override;
 
Public procedure SetModel(amodel: TAbstractDiagramModel; takeOwnership: boolean=false);

Sets the model, if takeOwnership is true, the model will automatically be freed if the view is freed

Public procedure paint; override;
 
Public procedure MouseDown(Button: TMouseButton; Shift:TShiftState; X,Y:Integer); override;
 
Public procedure MouseMove(Shift: TShiftState; X,Y: Integer); override;
 
Public procedure MouseUp(Button: TMouseButton; Shift:TShiftState; X,Y:Integer); override;
 
Public procedure KeyUp(var Key: Word; Shift: TShiftState); override;
 
Public procedure DoExit; override;
 

Properties

Published property Drawer: TDiagramDrawer read FDrawer;

Drawer drawing the diagram, use it to read/set everything relating to the visual output

Published property PointMovement: TDiagramPointMovement read FPointMovement write SetPointMovement;

Specifies how points are moved

Published property AllowedEditActions: TDiagramEditActions read FAllowedEditActions write SetAllowedEditActions;

Controls how the model can be modified

Published property Model: TAbstractDiagramModel read FModel write SetModel;

The model assigned to this view

Published property OnAlignInsertBefore;
 
Published property OnAlignPosition;
 
Published property OnDockDrop;
 
Published property OnDockOver;
 
Published property OnEnter;
 
Published property OnExit;
 
Published property OnKeyDown;
 
Published property OnKeyPress;
 
Published property OnKeyUp;
 
Published property OnUnDock;
 
Published property OnUTF8KeyPress;
 
Published property OnConstrainedResize;
 
Published property OnContextPopup;
 
Published property OnDblClick;
 
Published property OnTripleClick;
 
Published property OnQuadClick;
 
Published property OnDragDrop;
 
Published property OnDragOver;
 
Published property OnEndDock;
 
Published property OnEndDrag;
 
Published property OnMouseDown;
 
Published property OnMouseMove;
 
Published property OnMouseUp;
 
Published property OnMouseEnter;
 
Published property OnMouseLeave;
 
Published property OnMouseWheel;
 
Published property OnMouseWheelDown;
 
Published property OnMouseWheelUp;
 
Published property OnStartDock;
 
Published property OnStartDrag;
 

Generated by PasDoc 0.11.0 on 2012-07-31 14:28:32