C# Class PurplePen.BaseMode

Inheritance: ICommandMode
Show file Open project: petergolde/PurplePen

Public Methods

Method Description
BeginMode ( ) : void
CanCancel ( ) : bool
EndMode ( ) : void
GetHighlights ( Pane pane ) : IMapViewerHighlight[]
GetMouseCursor ( Pane pane, PointF location, float pixelSize ) : Cursor
GetToolTip ( Pane pane, PointF location, float pixelSize, string &tipText, string &titleText ) : bool
LeftButtonCancelDrag ( Pane pane, bool &displayUpdateNeeded ) : void
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
LeftButtonEndDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
LeftButtonUp ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
MouseMoved ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
RightButtonCancelDrag ( Pane pane, bool &displayUpdateNeeded ) : void
RightButtonClick ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
RightButtonDown ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : MapViewer.DragAction
RightButtonDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
RightButtonEndDrag ( Pane pane, PointF location, PointF locationStart, float pixelSize, bool &displayUpdateNeeded ) : void
RightButtonUp ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void

Protected Methods

Method Description
ConvertTextPartsToToolTip ( TextPart textParts, string &tipText, string &tipTitle ) : void

Method Details

BeginMode() public method

public BeginMode ( ) : void
return void

CanCancel() public method

public CanCancel ( ) : bool
return bool

ConvertTextPartsToToolTip() protected method

protected ConvertTextPartsToToolTip ( TextPart textParts, string &tipText, string &tipTitle ) : void
textParts TextPart
tipText string
tipTitle string
return void

EndMode() public method

public EndMode ( ) : void
return void

GetHighlights() public method

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

GetMouseCursor() public method

public GetMouseCursor ( Pane pane, PointF location, float pixelSize ) : Cursor
pane Pane
location System.Drawing.PointF
pixelSize float
return System.Windows.Forms.Cursor

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

LeftButtonCancelDrag() public method

public LeftButtonCancelDrag ( Pane pane, bool &displayUpdateNeeded ) : void
pane Pane
displayUpdateNeeded bool
return void

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

LeftButtonEndDrag() public method

public LeftButtonEndDrag ( 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

LeftButtonUp() public method

public LeftButtonUp ( Pane pane, PointF location, float pixelSize, bool &displayUpdateNeeded ) : void
pane Pane
location 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

RightButtonCancelDrag() public method

public RightButtonCancelDrag ( Pane pane, bool &displayUpdateNeeded ) : void
pane Pane
displayUpdateNeeded bool
return void

RightButtonClick() public method

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

RightButtonDown() public method

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

RightButtonDrag() public method

public RightButtonDrag ( 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

RightButtonEndDrag() public method

public RightButtonEndDrag ( 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

RightButtonUp() public method

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