C# 클래스 DiagramEdge, UnityClassDiagram

상속: DiagramSelectableElement
파일 보기 프로젝트 열기: sashcode/UnityClassDiagram 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
handles List
lineColor Color
sourceAnchor EdgeAnchorHandle,
targetAnchor EdgeAnchorHandle,
targetId string
typeId int

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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

메소드 상세

Draw() 공개 메소드

public Draw ( DiagramContext, context ) : void
context DiagramContext,
리턴 void

DrawHandle() 공개 메소드

public DrawHandle ( DiagramContext, context ) : void
context DiagramContext,
리턴 void

GetDragTracker() 공개 메소드

public GetDragTracker ( ) : DiagramDragTracker,
리턴 DiagramDragTracker,

GetEdgeHandles() 공개 메소드

public GetEdgeHandles ( ) : EdgeHandle[],
리턴 EdgeHandle[],

GetHandles() 공개 메소드

public GetHandles ( ) : DiagramHandle[],
리턴 DiagramHandle[],

HitTest() 공개 메소드

public HitTest ( DiagramContext, context, Vector2 position ) : DiagramElement
context DiagramContext,
position Vector2
리턴 DiagramElement

Log() 공개 메소드

public Log ( string text ) : void
text string
리턴 void

LogError() 공개 메소드

public LogError ( string text ) : void
text string
리턴 void

SetSource() 공개 메소드

public SetSource ( DiagramNode, node ) : void
node DiagramNode,
리턴 void

SetTarget() 공개 메소드

public SetTarget ( DiagramNode, node ) : void
node DiagramNode,
리턴 void

UpdateAnchor() 공개 메소드

public UpdateAnchor ( DiagramContext, context ) : void
context DiagramContext,
리턴 void

프로퍼티 상세

handles 공개적으로 프로퍼티

public List handles
리턴 List

lineColor 공개적으로 프로퍼티

public Color lineColor
리턴 Color

sourceAnchor 공개적으로 프로퍼티

public EdgeAnchorHandle, sourceAnchor
리턴 EdgeAnchorHandle,

targetAnchor 공개적으로 프로퍼티

public EdgeAnchorHandle, targetAnchor
리턴 EdgeAnchorHandle,

targetId 공개적으로 프로퍼티

public string targetId
리턴 string

typeId 공개적으로 프로퍼티

public int typeId
리턴 int