/// <summary> /// Request that the action be taken. If it is currently deferred, then /// the action won't be taken. /// </summary> /// <param name="requestData"></param> public void requestAction(Node requestData) { if (isActionDeferred()) setActionRequired(); else actionFunction(staticData, requestData); }
/// <summary> /// Driven nodes use AttributeParameters as input parameters. /// </summary> /// <param name="pd"></param> /// <param name="n"></param> /// <param name="index"></param> /// <returns></returns> public override Parameter newParameter(ParameterDefinition pd, Node n, int index) { if (pd.IsInput) return new AttributeParameter(pd, n, index); else return new Parameter(pd); }
public AttributeParameter(ParameterDefinition pd, Node n, int index) : base(pd) { set2ndValue("NULL"); node = n; this.index = index; syncOnTypeMatch = true; }
public override void changeExistanceWork(Node n, bool adding) { base.changeExistanceWork(n, adding); if (saveWebPageCmd != null) { saveWebPageCmd.deactivate(); saveAppletCmd.deactivate(); } }
public Ark(Node fromNode, int fp, Node toNode, int tp) { arcStandIn = null; from = fromNode; fromParameter = fp; to = toNode; toParameter = tp; from.addOutputArk(this, fp); to.addInputArk(this, tp); }
public void pickFrom(Node n) { if (n != null) { ImageNode imn = (ImageNode)n; setInputValueQuietly(PICKFROM, imn.getPickIdentifier()); } else { setInputValueQuietly(PICKFROM, "NULL"); setInputValueQuietly(PICKPTS, "NULL"); } }
// Match output_index of this node to input_index of n. Returns true // if they can connect. public override bool typeMatchOutputToInput(int output_index, Node n, int input_index) { Debug.Assert(output_index >= 1); Debug.Assert(input_index >= 1); List<DXType> tout = getOutputTypes(output_index); List<DXType> tin = n.getInputTypes(input_index); Debug.Assert(tout != null && tin != null); List<DXType> newTypesList = DXType.IntersectTypeLists(tin, tout); return (newTypesList != null && newTypesList.Count > 0); }
protected InteractorStandIn(WorkSpace w, Node n) : base(w, n) { }
public static new StandIn AllocateStandIn(WorkSpace w, Node n) { StandIn si = new InteractorStandIn(w, n); si.createStandIn(); return si; }
protected bool spreadOutSpaghettiFrom(Node n, ref int min) { throw new Exception("Not Yet Implemented"); }
public static bool IsSingleOutputNoInputNode(Node n) { throw new Exception("Not Yet Implemented"); }
public static ConfigurationDialog AllocatedConfigurationDialog(Form parent, Node node) { return new ImageCDB(parent, node); }
protected void respositionDecorators(List<Decorator> decorators, bool sameEventFlag, Node[] reflow, int reflowCount) { throw new Exception("Not Yet Implemented"); }
private int computeRequiredHopsToSiblingsOf(Node n) { throw new Exception("Not Yet Implemented"); }
private void fixForTooManyReceivers(Node n, ref int min) { throw new Exception("Not Yet Implemented"); }
private void adjustDescendantHops(Node parent, int newHopCount) { throw new Exception("Not Yet Implemented"); }
private bool adjustHopCounts(Node[] reflow, int reflow_count, ref int min) { throw new Exception("Not Yet Implemented"); }
private void adjustAncestorHops(Node parent, int newHopCount, ref int min) { throw new Exception("Not Yet Implemented"); }
private static bool CanMoveTo(LayoutInfo info, int x, int y, Node[] reflow, int count, List<Decorator> decorators) { throw new Exception("Not Yet Implemented"); }
protected void unmarkAllNodes(Node[] reflow, int reflowCount) { throw new Exception("Not Yet Implemented"); }
// // If the min or max input has changed, update the attribute parameter // (integer list of min and max) and then call the super class method // if the input is not the attribute parameter. // protected override void ioParameterStatusChanged(bool input, int index, Node.NodeParameterStatusChange status) { throw new Exception("not implemented yet"); }
public virtual void javifyNode(Node webOptions, Node w2) { throw new Exception("Not Yet Implemented"); }
public ImageCDB(Form parent, Node node) : base("imageConfigurationDialog", parent, node) { }
protected void prepareAnnotationPlacement(List<Decorator> decorators, Node[] reflow, int reflowCount, List<Decorator> allDecorators, WorkSpace workSpace, ref int widest, ref int tallest) { throw new Exception("Not Yet Implemented"); }
public static new ConfigurationDialog AllocateConfigurationDialog(Form parent, Node node) { throw new Exception("Not Yet Implemented"); }
public static Ark IsSingleInputNoOutputNode(Node n, ref bool sharesAnOutput, bool positioned) { throw new Exception("Not Yet Implemented"); }
public virtual bool isJavified(Node webOptions) { throw new Exception("Not Yet Implemented"); }
protected void respositionNewPlacements(Node n, bool disjoint, List<Node> placed) { throw new Exception("Not Yet Implemented"); }
/// <summary> /// Return TRUE if the node's standin can move to x,y without // causing overlap with any other node in the list. /// </summary> /// <param name="n"></param> /// <param name="x"></param> /// <param name="y"></param> /// <returns></returns> private bool nodeCanMoveTo(Node n, int x, int y) { throw new Exception("Not Yet Implemented"); }
private void repositionGroups(Node[] reflow, int reflowCount) { throw new Exception("Not Yet Implemented"); }