us.ihmc.simulationconstructionset.gui.MinimalGraphIndicesHolder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simulation-construction-set
Show all versions of simulation-construction-set
Simulation Construction Set
package us.ihmc.simulationconstructionset.gui;
import java.util.ArrayList;
import us.ihmc.graphicsDescription.graphInterfaces.GraphIndicesHolder;
public class MinimalGraphIndicesHolder implements GraphIndicesHolder
{
ArrayList keyPoints = new ArrayList<>();
int leftPlotIndex = 0;
int rightPlotIndex = 100;
int inPoint = 50;
int index = 60;
int outPoint = 75;
int maxIndex = 200;
@Override
public void tickLater(int i)
{
index = index + i;
}
@Override
public void setRightPlotIndex(int newRightIndex)
{
rightPlotIndex = newRightIndex;
}
@Override
public void setLeftPlotIndex(int newLeftIndex)
{
leftPlotIndex = newLeftIndex;
}
@Override
public void setIndexLater(int newIndex)
{
index = newIndex;
}
@Override
public int getRightPlotIndex()
{
return rightPlotIndex;
}
@Override
public int getMaxIndex()
{
return maxIndex;
}
@Override
public int getLeftPlotIndex()
{
return leftPlotIndex;
}
@Override
public ArrayList getKeyPoints()
{
return keyPoints;
}
@Override
public int getIndex()
{
return index;
}
@Override
public int getInPoint()
{
return inPoint;
}
@Override
public int getOutPoint()
{
return outPoint;
}
@Override
public boolean isIndexAtOutPoint()
{
return (getIndex() == getOutPoint());
}
}