Map<Double, Double> b = sqlite.getBPMsBySong(sName);
for (Map.Entry<Double, Double> c : b.entrySet())
{
double be = c.getKey();
BPMComponent bc = new BPMComponent(col, c.getValue());
int sY = (int)(ARROW_SIZE - 7 + be * ARROW_SIZE);
bc.setBounds(ARROW_SIZE * 6, sY, nX, nY);
bc.setPreferredSize(d);
bc.setSize(d);
bc.setMaximumSize(d);
bc.setMinimumSize(d);
bpms.put(be, bc);
stepChart.add(bc);
stepChart.setLayer(bc, 2000);
}
b = sqlite.getStopsBySong(sName);
for (Map.Entry<Double, Double> c : b.entrySet())
{
double be = c.getKey();
STPComponent bc = new STPComponent(col, c.getValue());
int sY = (int)(ARROW_SIZE - 7 + be * ARROW_SIZE);
int sX = 0;
if (col == 5)
{
sX = (int)(ARROW_SIZE * 2.5);
}
else if (col == 6)
{
sX = ARROW_SIZE * 2;
}
bc.setBounds(sX, sY, nX, nY);
bc.setPreferredSize(d);
bc.setSize(d);
bc.setMaximumSize(d);
bc.setMinimumSize(d);
stps.put(be, bc);
stepChart.add(bc);
stepChart.setLayer(bc, 2000);
}