Exemple #1
0
      /////////////////////////////////////////////////////////////////
      // DATASOURCE DEFINITIONS
      /////////////////////////////////////////////////////////////////

      /**
       * <p>Adds a custom, {@link org.Rrd4n.data.Plottable plottable} datasource (<b>PDEF</b>).
       * The datapoints should be made available by a class extending
       * {@link org.Rrd4n.data.Plottable Plottable} class.</p>
       *
       * @param name      source name.
       * @param plottable class that extends Plottable class and is suited for graphing.
       */
      public void addDatasource(String name, Plottable plottable)
      {
         sources.Add(new DataPDef(name, plottable));
      }
Exemple #2
0
 public DataPDef(String name, Plottable plottable)
     : base(name)
 {
     this.plottable = plottable;
 }
        /////////////////////////////////////////////////////////////////
        // DATASOURCE DEFINITIONS
        /////////////////////////////////////////////////////////////////

        /**
         * <p>Adds a custom, {@link org.Rrd4n.data.Plottable plottable} datasource (<b>PDEF</b>).
         * The datapoints should be made available by a class extending
         * {@link org.Rrd4n.data.Plottable Plottable} class.</p>
         *
         * @param name      source name.
         * @param plottable class that extends Plottable class and is suited for graphing.
         */
        public void addDatasource(String name, Plottable plottable)
        {
            sources.Add(new DataPDef(name, plottable));
        }
Exemple #4
0
 public DataPDef(String name, Plottable plottable)
     : base(name)
 {
     this.plottable = plottable;
 }