Package com.gmail.jafelds.ppedits.gui.components

Examples of com.gmail.jafelds.ppedits.gui.components.BPMComponent


     
      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);
      }
View Full Code Here

TOP

Related Classes of com.gmail.jafelds.ppedits.gui.components.BPMComponent

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.