public InstanceGraphModelType( string title, string subTitle, Encoding xEncoding, Encoding yEncoding, GetXFromInstance <INSTANCE> getX, GetYFromInstance <INSTANCE> getY ) : base( title, subTitle, xEncoding, yEncoding, 1, null, null, (input, prepared) => input.Count(), (input, prepared, line, index) => getX.Invoke(input.ElementAt(index)), (input, prepared, line, index) => getY.Invoke(input.ElementAt(index))) { }
public SingleLineGraphModelType( string title, string subTitle, Encoding xEncoding, Encoding yEncoding, GetXFromInstance <INSTANCE> getX, GetYFromInstance <INSTANCE> getY) : base( title, subTitle, xEncoding, yEncoding, instances => null, getX, (input, prepared, line, index) => getY.Invoke(input.ElementAt(index))) { }
public MultiLineKeyedGraphModelType( string title, string subTitle, Encoding xEncoding, Encoding yEncoding, GetXFromInstance <INSTANCE> getX, GetYFromInstance <INSTANCE> getY, GetKey <INSTANCE, KEY> getKey, GetLabel <KEY> getLabel) : base( title, subTitle, xEncoding, yEncoding, getX, getY) { this.getKey = getKey; this.getLabel = getLabel; }
public SingleLineInstanceGraphModelTypeWithPrepared( string title, string subTitle, Encoding xEncoding, Encoding yEncoding, Prepare <IEnumerable <INSTANCE>, PREPARED> prepare, GetXFromInstance <INSTANCE> getX, GetYFromInputAndPrepared <IEnumerable <INSTANCE>, PREPARED> getY) : base( title, subTitle, xEncoding, yEncoding, 1, prepare, null, (input, prepared) => input.Count(), (input, prepared, line, index) => getX.Invoke(input.ElementAt(index)), getY) { }