예제 #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)))
        {
        }
예제 #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)))
        {
        }
예제 #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;
 }