C# Class DiagramEdge, UnityClassDiagram

Inheritance: DiagramSelectableElement
Afficher le fichier Open project: sashcode/UnityClassDiagram Class Usage Examples

Méthodes publiques

Свойство Type Description
handles List
lineColor Color
sourceAnchor EdgeAnchorHandle,
targetAnchor EdgeAnchorHandle,
targetId string
typeId int

Méthodes publiques

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

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

public Draw ( DiagramContext, context ) : void
context DiagramContext,
Résultat void

DrawHandle() public méthode

public DrawHandle ( DiagramContext, context ) : void
context DiagramContext,
Résultat void

GetDragTracker() public méthode

public GetDragTracker ( ) : DiagramDragTracker,
Résultat DiagramDragTracker,

GetEdgeHandles() public méthode

public GetEdgeHandles ( ) : EdgeHandle[],
Résultat EdgeHandle[],

GetHandles() public méthode

public GetHandles ( ) : DiagramHandle[],
Résultat DiagramHandle[],

HitTest() public méthode

public HitTest ( DiagramContext, context, Vector2 position ) : DiagramElement
context DiagramContext,
position Vector2
Résultat DiagramElement

Log() public méthode

public Log ( string text ) : void
text string
Résultat void

LogError() public méthode

public LogError ( string text ) : void
text string
Résultat void

SetSource() public méthode

public SetSource ( DiagramNode, node ) : void
node DiagramNode,
Résultat void

SetTarget() public méthode

public SetTarget ( DiagramNode, node ) : void
node DiagramNode,
Résultat void

UpdateAnchor() public méthode

public UpdateAnchor ( DiagramContext, context ) : void
context DiagramContext,
Résultat void

Property Details

handles public_oe property

public List handles
Résultat List

lineColor public_oe property

public Color lineColor
Résultat Color

sourceAnchor public_oe property

public EdgeAnchorHandle, sourceAnchor
Résultat EdgeAnchorHandle,

targetAnchor public_oe property

public EdgeAnchorHandle, targetAnchor
Résultat EdgeAnchorHandle,

targetId public_oe property

public string targetId
Résultat string

typeId public_oe property

public int typeId
Résultat int