GetNodeAdapter() 공개 메소드

public GetNodeAdapter ( int typeId ) : NodeAdapter,
typeId int
리턴 NodeAdapter,
예제 #1
0
 public DiagramElement HitTest(DiagramContext context,Vector2 position)
 {
     //Debug.Log(" node log  " + position);
     if(rect.Contains(position)){
         return this;
     }
     NodeAdapter adapter = context.GetNodeAdapter(typeId);
     if(adapter.HitTest(this , context , position)){
         return this;
     }
     return null;
 }
예제 #2
0
 public virtual void DrawNode(DiagramContext context)
 {
     NodeAdapter adapter = context.GetNodeAdapter(typeId);
     adapter.DrawNode(this , context);
 }