C# Class NClass.DiagramEditor.Canvas

Mostrar archivo Open project: gbaychev/NClass

Private Properties

Property Type Description
CalculateZoomValue float
Canvas System
ChangeZoom void
ChangeZoom void
ConvertAbsoluteToRelative System.Point
ConvertRelativeToAbsolute PointF
DrawContent void
GetAbsoluteCenterPoint PointF
InitializeComponent void
OnDocumentRedrawed void
OnVisibleAreaChanged void
OnZoomChanged void
ScrollHorizontally void
SetScrolls void
UpdateDocumentOffset void
UpdateWindowPositions void
document_HidingWindow void
document_NeedsRedraw void
document_OffsetChanged void
document_ShowingWindow void
document_SizeChanged void
document_ZoomChanged void

Public Methods

Method Description
AutoZoom ( ) : void
AutoZoom ( bool selectedOnly ) : void
ChangeZoom ( bool enlarge ) : void
ChangeZoom ( bool enlarge, PointF zoomingCenter ) : void
ChangeZoom ( float zoom ) : void
ChangeZoom ( float zoomValue, PointF zoomingCenter ) : void
IDocumentVisualizer ( Graphics g ) : void
ZoomIn ( ) : void
ZoomOut ( ) : void

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnClientSizeChanged ( EventArgs e ) : void
OnKeyDown ( KeyEventArgs e ) : void
OnLocationChanged ( EventArgs e ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseHWheel ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void
OnPaint ( PaintEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnScroll ( ScrollEventArgs e ) : void
ProcessDialogKey ( Keys keyData ) : bool
ScrollToControl ( Control activeControl ) : System.Point
WndProc ( Message &m ) : void

Private Methods

Method Description
CalculateZoomValue ( bool enlarge ) : float
Canvas ( ) : System
ChangeZoom ( bool enlarge, RectangleF zoomingCenter ) : void
ChangeZoom ( float zoomValue, RectangleF zoomingCenter ) : void
ConvertAbsoluteToRelative ( PointF location ) : System.Point
ConvertRelativeToAbsolute ( System.Point location ) : PointF
DrawContent ( Graphics g ) : void
GetAbsoluteCenterPoint ( ) : PointF
InitializeComponent ( ) : void

Required method for Designer support - do not modify the contents of this method with the code editor.

OnDocumentRedrawed ( EventArgs e ) : void
OnVisibleAreaChanged ( EventArgs e ) : void
OnZoomChanged ( EventArgs e ) : void
ScrollHorizontally ( int offset ) : void
SetScrolls ( ) : void
UpdateDocumentOffset ( ) : void
UpdateWindowPositions ( ) : void
document_HidingWindow ( object sender, PopupWindowEventArgs e ) : void
document_NeedsRedraw ( object sender, EventArgs e ) : void
document_OffsetChanged ( object sender, EventArgs e ) : void
document_ShowingWindow ( object sender, PopupWindowEventArgs e ) : void
document_SizeChanged ( object sender, EventArgs e ) : void
document_ZoomChanged ( object sender, EventArgs e ) : void

Method Details

AutoZoom() public method

public AutoZoom ( ) : void
return void

AutoZoom() public method

public AutoZoom ( bool selectedOnly ) : void
selectedOnly bool
return void

ChangeZoom() public method

public ChangeZoom ( bool enlarge ) : void
enlarge bool
return void

ChangeZoom() public method

public ChangeZoom ( bool enlarge, PointF zoomingCenter ) : void
enlarge bool
zoomingCenter PointF
return void

ChangeZoom() public method

public ChangeZoom ( float zoom ) : void
zoom float
return void

ChangeZoom() public method

public ChangeZoom ( float zoomValue, PointF zoomingCenter ) : void
zoomValue float
zoomingCenter PointF
return void

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

IDocumentVisualizer() public method

public IDocumentVisualizer ( Graphics g ) : void
g Graphics
return void

OnClientSizeChanged() protected method

protected OnClientSizeChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnKeyDown() protected method

protected OnKeyDown ( KeyEventArgs e ) : void
e KeyEventArgs
return void

OnLocationChanged() protected method

protected OnLocationChanged ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseDoubleClick() protected method

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseDown() protected method

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseHWheel() protected method

protected OnMouseHWheel ( EventArgs e ) : void
e System.EventArgs
return void

OnMouseMove() protected method

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseUp() protected method

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnMouseWheel() protected method

protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

OnResize() protected method

protected OnResize ( EventArgs e ) : void
e System.EventArgs
return void

OnScroll() protected method

protected OnScroll ( ScrollEventArgs e ) : void
e ScrollEventArgs
return void

ProcessDialogKey() protected method

protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys
return bool

ScrollToControl() protected method

protected ScrollToControl ( Control activeControl ) : System.Point
activeControl Control
return System.Point

WndProc() protected method

protected WndProc ( Message &m ) : void
m Message
return void

ZoomIn() public method

public ZoomIn ( ) : void
return void

ZoomOut() public method

public ZoomOut ( ) : void
return void