C# Class DiagramEdge, UnityClassDiagram

Inheritance: DiagramSelectableElement
显示文件 Open project: sashcode/UnityClassDiagram Class Usage Examples

Public Properties

Property Type Description
handles List
lineColor Color
sourceAnchor EdgeAnchorHandle,
targetAnchor EdgeAnchorHandle,
targetId string
typeId int

Public Methods

Method Description
Draw ( DiagramContext, context ) : void
DrawHandle ( DiagramContext, context ) : void
GetDragTracker ( ) : DiagramDragTracker,
GetEdgeHandles ( ) : EdgeHandle[],
GetHandles ( ) : DiagramHandle[],
HitTest ( DiagramContext, context, Vector2 position ) : DiagramElement
Log ( string text ) : void
LogError ( string text ) : void
SetSource ( DiagramNode, node ) : void
SetTarget ( DiagramNode, node ) : void
UpdateAnchor ( DiagramContext, context ) : void

Private Methods

Method Description
DrawAnchor ( Vector2 destAnchorPos, float angle, Texture2D texAnchor ) : void
GetAnchorPos ( Vector2 pointA, Rect wr2, Vector2 pointB ) : Vector2
calcPosition ( Vector2 topLeft, Vector2 bottomRight, Vector2 pointA ) : float
drawLine ( Vector2 pointA, Vector2 pointB, Color color, bool mouse, Texture2D srcAnchor, Texture2D destAnchor ) : void

Method Details

Draw() public method

public Draw ( DiagramContext, context ) : void
context DiagramContext,
return void

DrawHandle() public method

public DrawHandle ( DiagramContext, context ) : void
context DiagramContext,
return void

GetDragTracker() public method

public GetDragTracker ( ) : DiagramDragTracker,
return DiagramDragTracker,

GetEdgeHandles() public method

public GetEdgeHandles ( ) : EdgeHandle[],
return EdgeHandle[],

GetHandles() public method

public GetHandles ( ) : DiagramHandle[],
return DiagramHandle[],

HitTest() public method

public HitTest ( DiagramContext, context, Vector2 position ) : DiagramElement
context DiagramContext,
position Vector2
return DiagramElement

Log() public method

public Log ( string text ) : void
text string
return void

LogError() public method

public LogError ( string text ) : void
text string
return void

SetSource() public method

public SetSource ( DiagramNode, node ) : void
node DiagramNode,
return void

SetTarget() public method

public SetTarget ( DiagramNode, node ) : void
node DiagramNode,
return void

UpdateAnchor() public method

public UpdateAnchor ( DiagramContext, context ) : void
context DiagramContext,
return void

Property Details

handles public_oe property

public List handles
return List

lineColor public_oe property

public Color lineColor
return Color

sourceAnchor public_oe property

public EdgeAnchorHandle, sourceAnchor
return EdgeAnchorHandle,

targetAnchor public_oe property

public EdgeAnchorHandle, targetAnchor
return EdgeAnchorHandle,

targetId public_oe property

public string targetId
return string

typeId public_oe property

public int typeId
return int