C# Класс PurplePen.AddControlMode

Наследование: BaseMode
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AddControlMode ( Controller controller, SelectionMgr selectionMgr, UndoMgr undoMgr, EventDB eventDB, SymbolDB symbolDB, bool allControls, ControlPointKind controlKind, bool exchangeAtControl ) : System
BeginMode ( ) : void
CreateLegHighlights ( EventDB eventDB, PointF newPoint, Id controlDrag, ControlPointKind controlKind, Id courseControlId1, Id courseControlId2, float scaleRatio, CourseAppearance appearance ) : PurplePen.CourseObj[]
EndMode ( ) : void
GetHighlights ( Pane pane ) : IMapViewerHighlight[]
GetToolTip ( Pane pane, PointF location, float pixelSize, string &tipText, string &titleText ) : bool
LeftButtonClick ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
LeftButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
LeftButtonDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
MouseMoved ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void

Приватные методы

Метод Описание
CreateLegHighlight ( EventDB eventDB, PointF pt1, ControlPointKind kind1, Id controlId1, PointF pt2, ControlPointKind kind2, Id controlId2, float scaleRatio, CourseAppearance appearance ) : LegCourseObj
GetControlInsertionPoint ( PointF pt, CourseDesignator &courseDesignator, Id &courseControlId1, Id &courseControlId2 ) : void
HitTestPoint ( PointF mouseLocation, float pixelSize, PointF &highlightLocation ) : Id
SetHighlightLocation ( PointF highlightLocation, float pixelSize, bool &displayUpdateNeeded ) : void

Описание методов

AddControlMode() публичный Метод

public AddControlMode ( Controller controller, SelectionMgr selectionMgr, UndoMgr undoMgr, EventDB eventDB, SymbolDB symbolDB, bool allControls, ControlPointKind controlKind, bool exchangeAtControl ) : System
controller Controller
selectionMgr SelectionMgr
undoMgr UndoMgr
eventDB EventDB
symbolDB SymbolDB
allControls bool
controlKind ControlPointKind
exchangeAtControl bool
Результат System

BeginMode() публичный Метод

public BeginMode ( ) : void
Результат void

CreateLegHighlights() публичный статический Метод

public static CreateLegHighlights ( EventDB eventDB, PointF newPoint, Id controlDrag, ControlPointKind controlKind, Id courseControlId1, Id courseControlId2, float scaleRatio, CourseAppearance appearance ) : PurplePen.CourseObj[]
eventDB EventDB
newPoint System.Drawing.PointF
controlDrag Id
controlKind ControlPointKind
courseControlId1 Id
courseControlId2 Id
scaleRatio float
appearance CourseAppearance
Результат PurplePen.CourseObj[]

EndMode() публичный Метод

public EndMode ( ) : void
Результат void

GetHighlights() публичный Метод

public GetHighlights ( Pane pane ) : IMapViewerHighlight[]
pane Pane
Результат IMapViewerHighlight[]

GetToolTip() публичный Метод

public GetToolTip ( Pane pane, PointF location, float pixelSize, string &tipText, string &titleText ) : bool
pane Pane
location System.Drawing.PointF
pixelSize float
tipText string
titleText string
Результат bool

LeftButtonClick() публичный Метод

public LeftButtonClick ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
Результат void

LeftButtonDown() публичный Метод

public LeftButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
Результат MapViewer.DragAction

LeftButtonDrag() публичный Метод

public LeftButtonDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location System.Drawing.PointF
locationStart System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
Результат void

MouseMoved() публичный Метод

public MouseMoved ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
Результат void