C# Class PurplePen.AddControlMode

Inheritance: BaseMode
Show file Open project: petergolde/PurplePen Class Usage Examples

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AddControlMode() public method

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
return System

BeginMode() public method

public BeginMode ( ) : void
return void

CreateLegHighlights() public static method

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
return PurplePen.CourseObj[]

EndMode() public method

public EndMode ( ) : void
return void

GetHighlights() public method

public GetHighlights ( Pane pane ) : IMapViewerHighlight[]
pane Pane
return IMapViewerHighlight[]

GetToolTip() public method

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
return bool

LeftButtonClick() public method

public LeftButtonClick ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
return void

LeftButtonDown() public method

public LeftButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
return MapViewer.DragAction

LeftButtonDrag() public method

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
return void

MouseMoved() public method

public MouseMoved ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location System.Drawing.PointF
pixelSize float
displayUpdateNeeded bool
return void