C# Class 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
Inheritance: Util.WinForms.LLShapeWidgetControl
Afficher le fichier Open project: qwertie/ecsharp Class Usage Examples

Méthodes publiques

Свойство Type Description
HitTestRadius Loyc.Geometry.Vector
KeyMap Dictionary,Symbol>

Protected Properties

Свойство Type Description
_focusShape Shape
_selectedShapes MSet

Private Properties

Свойство Type Description
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

Méthodes publiques

Méthode Description
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

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
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

Method Details

DiagramControl() public méthode

public DiagramControl ( ) : System
Résultat System

GetBestAnchor() public méthode

public GetBestAnchor ( Loyc.Geometry.Point input, int exitAngleMod8 = -1 ) : Anchor
input Loyc.Geometry.Point
exitAngleMod8 int
Résultat Anchor

GetSelType() protected méthode

protected GetSelType ( Shape shape ) : SelType
shape Shape
Résultat SelType

IsInputKey() protected méthode

protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Résultat bool

Load() public méthode

public Load ( string filename ) : void
filename string
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyPress() protected méthode

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

ProcessShortcutKey() public méthode

public ProcessShortcutKey ( KeyEventArgs e ) : bool
e System.Windows.Forms.KeyEventArgs
Résultat bool

Save() public méthode

public Save ( string filename ) : void
filename string
Résultat void

ShapesChanged() protected méthode

protected ShapesChanged ( ) : void
Résultat void

ShapesOnScreen() public méthode

public ShapesOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable
mousePos Loyc.Geometry.Point
Résultat IEnumerable

WidgetsOnScreen() public méthode

public WidgetsOnScreen ( Loyc.Geometry.Point mousePos ) : IEnumerable
mousePos Loyc.Geometry.Point
Résultat IEnumerable

Property Details

HitTestRadius public_oe property

public Vector,Loyc.Geometry HitTestRadius
Résultat Loyc.Geometry.Vector

KeyMap public_oe property

public Dictionary,Symbol> KeyMap
Résultat Dictionary,Symbol>

_focusShape protected_oe property

protected Shape _focusShape
Résultat Shape

_selectedShapes protected_oe property

protected MSet _selectedShapes
Résultat MSet