Ejemplo n.º 1
0
        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)))
        {
        }
Ejemplo n.º 2
0
        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)))
        {
        }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
        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)
        {
        }