Package digi.recipeManager.Metrics

Examples of digi.recipeManager.Metrics.Graph


    {
      metrics = new Metrics();
     
      // Graph for total recipes
     
      Graph graph = metrics.createGraph("Custom recipes");
     
      graph.addPlotter(new Metrics.Plotter("Craft recipes")
      {
        @Override
        public int getValue()
        {
          return recipes.getCraftRecipes().size();
        }
      });
     
      graph.addPlotter(new Metrics.Plotter("Combine recipes")
      {
        @Override
        public int getValue()
        {
          return recipes.getCombineRecipes().size();
        }
      });
     
      graph.addPlotter(new Metrics.Plotter("Smelt recipes")
      {
        @Override
        public int getValue()
        {
          return recipes.getSmeltRecipes().size();
        }
      });
     
      graph.addPlotter(new Metrics.Plotter("Fuels")
      {
        @Override
        public int getValue()
        {
          return recipes.getFuels().size();
View Full Code Here

TOP

Related Classes of digi.recipeManager.Metrics.Graph

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.