C# Class NClass.DiagramEditor.Diagrams.DiagramElement

Inheritance: IModifiable
Mostrar archivo Open project: gbaychev/NClass Class Usage Examples

Public Methods

Method Description
Clean ( ) : void
Draw ( IGraphics g ) : void
Draw ( IGraphics g, Style style ) : void
Draw ( IGraphics g, bool onScreen ) : void
Draw ( IGraphics g, bool onScreen, Style style ) : void
MoveDown ( ) : void
MoveUp ( ) : void
SelectNext ( ) : void
SelectPrevious ( ) : void

Protected Methods

Method Description
CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
ConfirmMemberDelete ( ) : bool
DeleteSelectedMember ( bool showConfirmation ) : bool
DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
GetContextMenuItems ( IDiagram diagram ) : IEnumerable
GetLogicalArea ( ) : Rectangle
GetMaximalOffset ( Size offset, int padding ) : Size
HideEditor ( ) : void
HideWindow ( PopupWindow window ) : void
MoveWindow ( ) : void
Offset ( Size offset ) : void
OnActivated ( EventArgs e ) : void
OnActivating ( EventArgs e ) : void
OnDeactivated ( EventArgs e ) : void
OnDeactivating ( EventArgs e ) : void
OnDoubleClick ( AbsoluteMouseEventArgs e ) : void
OnModified ( EventArgs e ) : void
OnMouseDown ( AbsoluteMouseEventArgs e ) : void
OnMouseMove ( AbsoluteMouseEventArgs e ) : void
OnMouseUp ( AbsoluteMouseEventArgs e ) : void
OnSelectionChanged ( EventArgs e ) : void
ShowEditor ( ) : void
ShowWindow ( PopupWindow window ) : void
TrySelect ( RectangleF frame ) : bool

Private Methods

Method Description
DeleteSelectedMember ( ) : bool
Deserialize ( XmlElement node ) : void
DoubleClicked ( AbsoluteMouseEventArgs e ) : void
GetPrintingClip ( Style style, float zoom ) : RectangleF
GetPrintingClip ( float zoom ) : RectangleF
GetVisibleArea ( Style style, float zoom ) : RectangleF
GetVisibleArea ( float zoom ) : RectangleF
MouseMoved ( AbsoluteMouseEventArgs e ) : void
MousePressed ( AbsoluteMouseEventArgs e ) : void
MouseUpped ( AbsoluteMouseEventArgs e ) : void
Serialize ( XmlElement node ) : void

Method Details

CalculateDrawingArea() protected abstract method

protected abstract CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
style Style
printing bool
zoom float
return System.Drawing.RectangleF

Clean() public method

public Clean ( ) : void
return void

ConfirmMemberDelete() protected method

protected ConfirmMemberDelete ( ) : bool
return bool

DeleteSelectedMember() protected method

protected DeleteSelectedMember ( bool showConfirmation ) : bool
showConfirmation bool
return bool

Draw() public method

public Draw ( IGraphics g ) : void
g IGraphics
return void

Draw() public method

/// is null. ///
public Draw ( IGraphics g, Style style ) : void
g IGraphics
style Style
return void

Draw() public method

public Draw ( IGraphics g, bool onScreen ) : void
g IGraphics
onScreen bool
return void

Draw() public abstract method

public abstract Draw ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
return void

DrawSelectionLines() protected abstract method

protected abstract DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
g System.Drawing.Graphics
zoom float
offset Point
return void

GetContextMenuItems() protected abstract method

protected abstract GetContextMenuItems ( IDiagram diagram ) : IEnumerable
diagram IDiagram
return IEnumerable

GetLogicalArea() protected abstract method

protected abstract GetLogicalArea ( ) : Rectangle
return System.Drawing.Rectangle

GetMaximalOffset() protected abstract method

protected abstract GetMaximalOffset ( Size offset, int padding ) : Size
offset System.Drawing.Size
padding int
return System.Drawing.Size

HideEditor() protected method

protected HideEditor ( ) : void
return void

HideWindow() protected method

protected HideWindow ( PopupWindow window ) : void
window PopupWindow
return void

MoveDown() public method

public MoveDown ( ) : void
return void

MoveUp() public method

public MoveUp ( ) : void
return void

MoveWindow() protected method

protected MoveWindow ( ) : void
return void

Offset() protected abstract method

protected abstract Offset ( Size offset ) : void
offset System.Drawing.Size
return void

OnActivated() protected method

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

OnActivating() protected method

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

OnDeactivated() protected method

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

OnDeactivating() protected method

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

OnDoubleClick() protected method

protected OnDoubleClick ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
return void

OnModified() protected method

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

OnMouseDown() protected method

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

OnMouseMove() protected method

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

OnMouseUp() protected method

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

OnSelectionChanged() protected method

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

SelectNext() public method

public SelectNext ( ) : void
return void

SelectPrevious() public method

public SelectPrevious ( ) : void
return void

ShowEditor() protected method

protected ShowEditor ( ) : void
return void

ShowWindow() protected method

protected ShowWindow ( PopupWindow window ) : void
window PopupWindow
return void

TrySelect() protected abstract method

protected abstract TrySelect ( RectangleF frame ) : bool
frame System.Drawing.RectangleF
return bool