C# Класс NClass.DiagramEditor.Diagrams.Connections.Connection

Наследование: DiagramElement
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
TextMargin Size

Private Properties

Свойство Тип Описание
AddEndSegment void
AddInnerSegment FlowDirection
AddStartSegment FlowDirection
AutoRoute void
BendPointDoubleClicked bool
BendPointPressed bool
ClearBendPoints void
Deserialize void
DoubleClicked void
DrawCaps void
DrawLabel void
DrawLine void
EndShapeResizing void
GetBendPoint NClass.DiagramEditor.ClassDiagram.Connections.BendPoint
GetEndCapArea System.Drawing.RectangleF
GetLabelArea System.Drawing.RectangleF
GetLineCenter System.Drawing.PointF
GetNextNextPoint Point
GetRouteArea System.Drawing.Rectangle
GetStartCapArea System.Drawing.RectangleF
MouseMoved void
MousePressed void
MouseUpped void
Picked bool
Picked bool
RecalculateOrientations void
RelocateAutoBendPoints void
RerouteFromBendPoints void
Serialize void
ShapeMoving void
ShowPropertiesDialog void
StartShapeResizing void

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

Метод Описание
Draw ( IGraphics g, bool onScreen, Style style ) : void
InitOrientations ( ) : void
ToString ( ) : string
ValidatePosition ( int padding ) : void

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

Метод Описание
CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
CloneRelationship ( IDiagram diagram, Shape first, Shape second ) : bool
Connection ( Relationship relationship, Shape startShape, Shape endShape ) : System
DrawEndCap ( IGraphics g, bool onScreen, Style style ) : void
DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
DrawStartCap ( IGraphics g, bool onScreen, Style style ) : void
GetAngle ( Point point1, Point point2 ) : float
GetContextMenuItems ( IDiagram diagram ) : IEnumerable
GetLogicalArea ( ) : Rectangle
GetMaximalOffset ( Size offset, int padding ) : Size
Offset ( Size offset ) : void
OnBendPointMove ( BendPointEventArgs e ) : void
OnDeserializing ( SerializeEventArgs e ) : void
OnMouseDown ( AbsoluteMouseEventArgs e ) : void
OnMouseMove ( AbsoluteMouseEventArgs e ) : void
OnMouseUp ( AbsoluteMouseEventArgs e ) : void
OnRouteChanged ( EventArgs e ) : void
OnSerializing ( SerializeEventArgs e ) : void
Paste ( IDiagram diagram, Size offset, Shape first, Shape second ) : Connection
Reroute ( ) : void
Reverse ( ) : void
TrySelect ( RectangleF frame ) : bool

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

Метод Описание
AddEndSegment ( ) : void
AddInnerSegment ( LinkedListNode current, FlowDirection direction ) : FlowDirection
AddStartSegment ( ) : FlowDirection
AutoRoute ( ) : void
BendPointDoubleClicked ( AbsoluteMouseEventArgs e ) : bool
BendPointPressed ( AbsoluteMouseEventArgs e ) : bool
ClearBendPoints ( ) : void
Deserialize ( XmlElement node ) : void
DoubleClicked ( AbsoluteMouseEventArgs e ) : void
DrawCaps ( IGraphics g, bool onScreen, Style style ) : void
DrawLabel ( IGraphics g, bool onScreen, Style style ) : void
DrawLine ( IGraphics g, bool onScreen, Style style ) : void
EndShapeResizing ( object sender, ResizeEventArgs e ) : void
GetBendPoint ( AbsoluteMouseEventArgs e ) : BendPoint
GetEndCapArea ( ) : RectangleF
GetLabelArea ( Style style ) : RectangleF
GetLineCenter ( bool &horizontal ) : PointF
GetNextNextPoint ( LinkedListNode current ) : Point
GetRouteArea ( ) : Rectangle
GetStartCapArea ( ) : RectangleF
MouseMoved ( AbsoluteMouseEventArgs e ) : void
MousePressed ( AbsoluteMouseEventArgs e ) : void
MouseUpped ( AbsoluteMouseEventArgs e ) : void
Picked ( PointF mouseLocation, float zoom ) : bool
Picked ( RectangleF rectangle ) : bool
RecalculateOrientations ( ) : void
RelocateAutoBendPoints ( ) : void
RerouteFromBendPoints ( ) : void
Serialize ( XmlElement node ) : void
ShapeMoving ( object sender, MoveEventArgs e ) : void
ShowPropertiesDialog ( ) : void
StartShapeResizing ( object sender, ResizeEventArgs e ) : void

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

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

protected CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
style Style
printing bool
zoom float
Результат System.Drawing.RectangleF

CloneRelationship() защищенный абстрактный Метод

protected abstract CloneRelationship ( IDiagram diagram, Shape first, Shape second ) : bool
diagram IDiagram
first NClass.DiagramEditor.Diagrams.Shapes.Shape
second NClass.DiagramEditor.Diagrams.Shapes.Shape
Результат bool

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

/// is null.-or- /// is null.-or- /// is null. ///
protected Connection ( Relationship relationship, Shape startShape, Shape endShape ) : System
relationship NClass.Core.Relationship
startShape NClass.DiagramEditor.Diagrams.Shapes.Shape
endShape NClass.DiagramEditor.Diagrams.Shapes.Shape
Результат System

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

public Draw ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Результат void

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

protected DrawEndCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Результат void

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

protected DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
g System.Drawing.Graphics
zoom float
offset Point
Результат void

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

protected DrawStartCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Результат void

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

protected GetAngle ( Point point1, Point point2 ) : float
point1 Point
point2 Point
Результат float

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

protected GetContextMenuItems ( IDiagram diagram ) : IEnumerable
diagram IDiagram
Результат IEnumerable

GetLogicalArea() защищенный закрытый Метод

protected final GetLogicalArea ( ) : Rectangle
Результат System.Drawing.Rectangle

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

protected GetMaximalOffset ( Size offset, int padding ) : Size
offset System.Drawing.Size
padding int
Результат System.Drawing.Size

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

public InitOrientations ( ) : void
Результат void

Offset() защищенный закрытый Метод

protected final Offset ( Size offset ) : void
offset System.Drawing.Size
Результат void

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

protected OnBendPointMove ( BendPointEventArgs e ) : void
e BendPointEventArgs
Результат void

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

protected OnDeserializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
Результат void

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

protected OnMouseDown ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
Результат void

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

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

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

protected OnMouseUp ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
Результат void

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

protected OnRouteChanged ( EventArgs e ) : void
e EventArgs
Результат void

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

protected OnSerializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
Результат void

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

protected Paste ( IDiagram diagram, Size offset, Shape first, Shape second ) : Connection
diagram IDiagram
offset Size
first Shape
second Shape
Результат Connection

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

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

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

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

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

public ToString ( ) : string
Результат string

TrySelect() защищенный закрытый Метод

protected final TrySelect ( RectangleF frame ) : bool
frame RectangleF
Результат bool

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

public ValidatePosition ( int padding ) : void
padding int
Результат void

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

TextMargin защищенное статическое свойство

protected static Size TextMargin
Результат Size