Class CeresNodeView
Inheritance
object
CeresNodeView
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Assembly: cs.temp.dll.dll
Syntax
public abstract class CeresNodeView : ICeresNodeView
Constructors
CeresNodeView()
Default constructor without initialization, please initialize node view in implementation
Declaration
protected CeresNodeView()
Fields
FieldInfos
Declaration
protected readonly List<FieldInfo> FieldInfos
Field Value
Type |
Description |
System.Collections.Generic.List<T><FieldInfo> |
|
FieldResolvers
Declaration
protected readonly List<IFieldResolver> FieldResolvers
Field Value
PortViews
Declaration
protected readonly List<CeresPortView> PortViews
Field Value
Type |
Description |
System.Collections.Generic.List<T><CeresPortView> |
|
Properties
GraphView
The graph this view attached to
Declaration
public CeresGraphView GraphView { get; }
Property Value
Guid
Graph scope node view guid
Declaration
public string Guid { get; set; }
Property Value
NodeElement
Node visual element of this view
Declaration
public NodeElement NodeElement { get; }
Property Value
Type |
Description |
NodeElement |
|
NodeInstance
Node instance contained by this view
Declaration
public CeresNode NodeInstance { get; }
Property Value
NodeType
Node instance type contained by this view
Declaration
public Type NodeType { get; }
Property Value
Methods
AddPortView(CeresPortView)
Declaration
public virtual void AddPortView(CeresPortView portView)
Parameters
FillDefaultNodePorts()
Fill node element with default ports
Declaration
protected void FillDefaultNodePorts()
FillDefaultNodeProperties()
Fill node element with default properties
Declaration
protected void FillDefaultNodeProperties()
FillDefaultNodeTitle()
Fill node element with default title
Declaration
protected void FillDefaultNodeTitle()
FindConnectablePortView(CeresPortView)
Find port view that is compatible to connect
Declaration
public CeresPortView FindConnectablePortView(CeresPortView portView)
Parameters
Returns
FindFieldResolver(string)
Find field resolver with field name if existed
Declaration
public IFieldResolver FindFieldResolver(string fieldName)
Parameters
Type |
Name |
Description |
string |
fieldName |
|
Returns
FindFieldResolver<T>(string)
Declaration
public T FindFieldResolver<T>(string fieldName) where T : class, IFieldResolver
Parameters
Type |
Name |
Description |
string |
fieldName |
|
Returns
Type Parameters
FindPortView(string, int)
Find port view with property name if existed
Declaration
public CeresPortView FindPortView(string propertyName, int portIndex = 0)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
int |
portIndex |
|
Returns
FindPortViewWithDisplayName(string, int)
Find port view with display name if existed
Declaration
public CeresPortView FindPortViewWithDisplayName(string displayName, int portIndex = 0)
Parameters
Type |
Name |
Description |
string |
displayName |
|
int |
portIndex |
|
Returns
FindPortViewWithDisplayType(Type, int)
Find port view with display type if existed
Declaration
public CeresPortView FindPortViewWithDisplayType(Type displayType, int portIndex = 0)
Parameters
Type |
Name |
Description |
Type |
displayType |
|
int |
portIndex |
|
Returns
GetAllPortViews()
Declaration
public CeresPortView[] GetAllPortViews()
Returns
GetContainerType()
Declaration
protected Type GetContainerType()
Returns
Declaration
public virtual string GetDefaultTooltip()
Returns
Initialize(Type, CeresGraphView)
Declaration
public void Initialize(Type nodeType, CeresGraphView graphView)
Parameters
OnSetGraphView()
Called after graph view setup
Declaration
protected virtual void OnSetGraphView()
OnSetNodeInstanceType()
Called after node setup or change node instance type
Declaration
protected virtual void OnSetNodeInstanceType()
OnSetupNodeElement()
Called in graph view initialize node style stage
Declaration
protected virtual void OnSetupNodeElement()
ReconnectEdges()
Reconnect edge from current metadata
Declaration
public void ReconnectEdges()
RemovePortView(CeresPortView)
Declaration
public virtual void RemovePortView(CeresPortView portView)
Parameters
SetGraphOwner(CeresGraphView)
Declaration
public void SetGraphOwner(CeresGraphView graphView)
Parameters
SetNodeInstance(CeresNode)
Set node instance attached to this view and restore all properties
Declaration
public virtual void SetNodeInstance(CeresNode ceresNode)
Parameters
SetNodeInstanceType(Type)
Declaration
public void SetNodeInstanceType(Type nodeType)
Parameters
Type |
Name |
Description |
Type |
nodeType |
|
Declaration
public void SetTooltip(string tooltip)
Parameters
Type |
Name |
Description |
string |
tooltip |
|
SetupNodeElement(NodeElement)
Set node element of this view
Declaration
public void SetupNodeElement(NodeElement nodeElement)
Parameters
Type |
Name |
Description |
NodeElement |
nodeElement |
|
Implements