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

Inheritance: DiagramElement
ファイルを表示 Open project: gbaychev/NClass Class Usage Examples

Protected Properties

Property Type Description
TextMargin Size

Private Properties

Property 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

Public Methods

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

Protected Methods

Method 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

Method 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 method

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

CloneRelationship() protected abstract method

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

Connection() protected method

/// 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
return System

Draw() public method

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

DrawEndCap() protected method

protected DrawEndCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
return void

DrawSelectionLines() protected method

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

DrawStartCap() protected method

protected DrawStartCap ( IGraphics g, bool onScreen, Style style ) : void
g IGraphics
onScreen bool
style Style
return void

GetAngle() protected method

protected GetAngle ( Point point1, Point point2 ) : float
point1 Point
point2 Point
return float

GetContextMenuItems() protected method

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

GetLogicalArea() protected final method

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

GetMaximalOffset() protected method

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

InitOrientations() public method

public InitOrientations ( ) : void
return void

Offset() protected final method

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

OnBendPointMove() protected method

protected OnBendPointMove ( BendPointEventArgs e ) : void
e BendPointEventArgs
return void

OnDeserializing() protected method

protected OnDeserializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
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

OnRouteChanged() protected method

protected OnRouteChanged ( EventArgs e ) : void
e EventArgs
return void

OnSerializing() protected method

protected OnSerializing ( SerializeEventArgs e ) : void
e SerializeEventArgs
return void

Paste() protected method

protected Paste ( IDiagram diagram, Size offset, Shape first, Shape second ) : Connection
diagram IDiagram
offset Size
first Shape
second Shape
return Connection

Reroute() protected method

protected Reroute ( ) : void
return void

Reverse() protected method

protected Reverse ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string

TrySelect() protected final method

protected final TrySelect ( RectangleF frame ) : bool
frame RectangleF
return bool

ValidatePosition() public method

public ValidatePosition ( int padding ) : void
padding int
return void

Property Details

TextMargin protected_oe static_oe property

protected static Size TextMargin
return Size