C# Class NClass.DiagramEditor.Diagrams.Connections.Connection

Inheritance: DiagramElement
Afficher le fichier Open project: gbaychev/NClass Class Usage Examples

Protected Properties

Свойство Type Description
TextMargin Size

Private Properties

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

Méthodes publiques

Méthode Description
Draw ( IGraphics g, bool onScreen, Style style ) : void
InitOrientations ( ) : void
ToString ( ) : string
ValidatePosition ( int padding ) : void

Méthodes protégées

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

Private Methods

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

Method Details

CalculateDrawingArea() protected méthode

protected CalculateDrawingArea ( Style style, bool printing, float zoom ) : RectangleF
style Style
printing bool
zoom float
Résultat System.Drawing.RectangleF

CloneRelationship() protected abstract méthode

protected abstract CloneRelationship ( IDiagram diagram, Shape first, Shape second ) : bool
diagram IDiagram
first NClass.DiagramEditor.Diagrams.Shapes.Shape
second NClass.DiagramEditor.Diagrams.Shapes.Shape
Résultat bool

Connection() protected méthode

/// 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
Résultat System

Draw() public méthode

public Draw ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Résultat void

DrawEndCap() protected méthode

protected DrawEndCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Résultat void

DrawSelectionLines() protected méthode

protected DrawSelectionLines ( Graphics g, float zoom, Point offset ) : void
g System.Drawing.Graphics
zoom float
offset Point
Résultat void

DrawStartCap() protected méthode

protected DrawStartCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
Résultat void

GetAngle() protected méthode

protected GetAngle ( Point point1, Point point2 ) : float
point1 Point
point2 Point
Résultat float

GetContextMenuItems() protected méthode

protected GetContextMenuItems ( IDiagram diagram ) : IEnumerable
diagram IDiagram
Résultat IEnumerable

GetLogicalArea() protected final méthode

protected final GetLogicalArea ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetMaximalOffset() protected méthode

protected GetMaximalOffset ( Size offset, int padding ) : Size
offset System.Drawing.Size
padding int
Résultat System.Drawing.Size

InitOrientations() public méthode

public InitOrientations ( ) : void
Résultat void

Offset() protected final méthode

protected final Offset ( Size offset ) : void
offset System.Drawing.Size
Résultat void

OnBendPointMove() protected méthode

protected OnBendPointMove ( BendPointEventArgs e ) : void
e BendPointEventArgs
Résultat void

OnDeserializing() protected méthode

protected OnDeserializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
Résultat void

OnMouseMove() protected méthode

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

OnMouseUp() protected méthode

protected OnMouseUp ( AbsoluteMouseEventArgs e ) : void
e AbsoluteMouseEventArgs
Résultat void

OnRouteChanged() protected méthode

protected OnRouteChanged ( EventArgs e ) : void
e EventArgs
Résultat void

OnSerializing() protected méthode

protected OnSerializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
Résultat void

Paste() protected méthode

protected Paste ( IDiagram diagram, Size offset, Shape first, Shape second ) : Connection
diagram IDiagram
offset Size
first Shape
second Shape
Résultat Connection

Reroute() protected méthode

protected Reroute ( ) : void
Résultat void

Reverse() protected méthode

protected Reverse ( ) : void
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

TrySelect() protected final méthode

protected final TrySelect ( RectangleF frame ) : bool
frame RectangleF
Résultat bool

ValidatePosition() public méthode

public ValidatePosition ( int padding ) : void
padding int
Résultat void

Property Details

TextMargin protected_oe static_oe property

protected static Size TextMargin
Résultat Size