C# Класс BoxDiagrams.DiagramControl

A control that manages a set of Shape objects and manages a mouse-based user interface for drawing things.
This class has the following responsibilities: TODO
Наследование: Util.WinForms.LLShapeWidgetControl
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
HitTestRadius Loyc.Geometry.Vector
KeyMap Dictionary,Symbol>

Защищенные свойства (Protected)

Свойство Тип Описание
_focusShape Shape
_selectedShapes MSet

Private Properties

Свойство Тип Описание
AddShape void
AfterAction void
AfterShapesAdded void
AfterShapesRemoved void
BeginRemoveAnimation void
ClearText bool
ClickSelect void
Copy bool
Cut bool
DeleteSelected bool
DeleteShapes void
DeserializeAndEliminateDuplicateStyles BoxDiagrams.DiagramDocumentCore
DragAdornersChanged void
DuplicateSelected bool
HitTest Util.WinForms.HitTestResult
MatrixChanged void
PageDown bool
PageUp bool
Paste bool
PasteAndSelect BoxDiagrams.DiagramDocumentCore
RecreateSelectionAdorners void
S Symbol
Scroll void
ScrollDown bool
ScrollLeft bool
ScrollRight bool
ScrollUp bool
SelectAll bool
SerializeSelected System.IO.MemoryStream
ToPixelSpace Loyc.Geometry.Point
ToShapeSpace Loyc.Geometry.Point
ToShapeSpace Loyc.Geometry.Vector
Zoom void
ZoomIn bool
ZoomOut bool

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

Метод Описание
DiagramControl ( ) : System
GetBestAnchor ( Loyc.Geometry.Point input, int exitAngleMod8 = -1 ) : Anchor
Load ( string filename ) : void
ProcessShortcutKey ( KeyEventArgs e ) : bool
Save ( string filename ) : void
ShapesOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable
WidgetsOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable

Защищенные методы

Метод Описание
GetSelType ( Shape shape ) : SelType
IsInputKey ( Keys keyData ) : bool
OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
ShapesChanged ( ) : void

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

Метод Описание
AddShape ( Shape newShape ) : void
AfterAction ( bool @do ) : void
AfterShapesAdded ( IReadOnlyCollection newShapes ) : void
AfterShapesRemoved ( IReadOnlyCollection eraseSet ) : void
BeginRemoveAnimation ( MSet erasedShapes ) : void
ClearText ( bool run = true ) : bool
ClickSelect ( Shape clickedShape ) : void
Copy ( bool run = true ) : bool
Cut ( bool run = true ) : bool
DeleteSelected ( bool run = true ) : bool
DeleteShapes ( Set eraseSet ) : void
DeserializeAndEliminateDuplicateStyles ( Stream buf ) : BoxDiagrams.DiagramDocumentCore
DragAdornersChanged ( ) : void
DuplicateSelected ( bool run = true ) : bool
HitTest ( Loyc.Geometry.Point mouseLoc ) : Util.WinForms.HitTestResult
MatrixChanged ( ) : void
PageDown ( bool run = true ) : bool
PageUp ( bool run = true ) : bool
Paste ( bool run = true ) : bool
PasteAndSelect ( Stream buf, Loyc.Geometry.Vector offset ) : BoxDiagrams.DiagramDocumentCore
RecreateSelectionAdorners ( ) : void
S ( string s ) : Symbol
Scroll ( Loyc.Geometry.Vector pxAmount ) : void
ScrollDown ( bool run = true ) : bool
ScrollLeft ( bool run = true ) : bool
ScrollRight ( bool run = true ) : bool
ScrollUp ( bool run = true ) : bool
SelectAll ( bool run = true ) : bool
SerializeSelected ( ) : MemoryStream
ToPixelSpace ( Loyc.Geometry.Point px ) : Loyc.Geometry.Point
ToShapeSpace ( Loyc.Geometry.Point px ) : Loyc.Geometry.Point
ToShapeSpace ( Loyc.Geometry.Vector px ) : Loyc.Geometry.Vector
Zoom ( float factor ) : void
ZoomIn ( bool run = true ) : bool
ZoomOut ( bool run = true ) : bool

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

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

public DiagramControl ( ) : System
Результат System

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

public GetBestAnchor ( Loyc.Geometry.Point input, int exitAngleMod8 = -1 ) : Anchor
input Loyc.Geometry.Point
exitAngleMod8 int
Результат Anchor

GetSelType() защищенный Метод

protected GetSelType ( Shape shape ) : SelType
shape Shape
Результат SelType

IsInputKey() защищенный Метод

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Результат bool

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

public Load ( string filename ) : void
filename string
Результат void

OnKeyDown() защищенный Метод

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnKeyPress() защищенный Метод

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
Результат void

OnKeyUp() защищенный Метод

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnMouseMove() защищенный Метод

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

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

public ProcessShortcutKey ( KeyEventArgs e ) : bool
e System.Windows.Forms.KeyEventArgs
Результат bool

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

public Save ( string filename ) : void
filename string
Результат void

ShapesChanged() защищенный Метод

protected ShapesChanged ( ) : void
Результат void

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

public ShapesOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable
mousePos Loyc.Geometry.Point
Результат IEnumerable

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

public WidgetsOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable
mousePos Loyc.Geometry.Point
Результат IEnumerable

Описание свойств

HitTestRadius публичное свойство

public Vector,Loyc.Geometry HitTestRadius
Результат Loyc.Geometry.Vector

KeyMap публичное свойство

public Dictionary,Symbol> KeyMap
Результат Dictionary,Symbol>

_focusShape защищенное свойство

protected Shape _focusShape
Результат Shape

_selectedShapes защищенное свойство

protected MSet _selectedShapes
Результат MSet