All Downloads are FREE. Search and download functionalities are using the official Maven repository.

us.ihmc.simulationconstructionset.gui.config.GraphGroup Maven / Gradle / Ivy

There is a newer version: 0.25.2
Show newest version
package us.ihmc.simulationconstructionset.gui.config;

import java.util.ArrayList;

public class GraphGroup
{
   private String name;
   private final ArrayList graphLists = new ArrayList<>();
   private int numColumns = 1;

   public GraphGroup(String name)
   {
      this.name = name;
   }

   public void setName(String name)
   {
      this.name = name;
   }

   public String getName()
   {
      return name;
   }

   public void addGraphVars(ArrayList varNames)
   {
      graphLists.addAll(varNames);
   }

   public void addGraphVars(String[][] varNames)
   {
      for (int i = 0; i < varNames.length; i++)
      {
         graphLists.add(new String[][] {varNames[i], {""}});
      }
   }

   public void addGraphVars(String[][][] varNamesAndConfigs)
   {
      for (int i = 0; i < varNamesAndConfigs.length; i++)
      {
         graphLists.add(varNamesAndConfigs[i]);
      }
   }

   public ArrayList getGraphVars()
   {
      return graphLists;
   }

   public void setNumColumns(int numColumns)
   {
      this.numColumns = numColumns;
   }

   public int getNumColumns()
   {
      return numColumns;
   }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy