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

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


        Arrows a = Arrows.getArrowByColumn(ch.getStyle(), col);
       
        Point p = new Point(sX, sY);
        Rectangle sB = shadow.getBounds();
       
        NoteComponent n = notes.get(p);
        Syncs z = Syncs.getHighestEnum(beat);
       
        isSaved = false;
        mSave.setEnabled(true);
       
        if (n != null)
        {
          /*
           * No matter what, the old NoteComponent in use has to
           * go away. Remove it. At this point, determine if
           * the type to see if it's the same. If it is
           * the same, remove it from the collection.
           * Otherwise, replace it.
           */
          stepChart.remove(n);
          ch.getMeasure(measure).getBeat(beat).resetNote(col);
          if (n.getNote().equals(aNote))
          {
            notes.remove(p);
            updateStats();
            return;
          }
        }
        n = new NoteComponent(aNote, z, a);
        n.setPreferredSize(ARR);
        n.setSize(ARR);
        n.setMinimumSize(ARR);
        n.setMaximumSize(ARR);
        n.setBounds(sB);
       
        notes.put(p, n);
        stepChart.add(n);
        stepChart.setLayer(n, 2000 + sY);
       
        ch.getMeasure(measure).getBeat(beat).setNote(col, n.getNote());
        updateStats();
      }
     
     
     
View Full Code Here


              {
                continue ROW_LOOP;
              }
              Point p = new Point(j * ARROW_SIZE + ARROW_SIZE,
                  i * MAX_BEATS + k + ARROW_SIZE);
              NoteComponent n = new NoteComponent(c.getNote(j),
                  Syncs.getHighestEnum(k),
                  Arrows.getArrowByColumn(j, s));
              n.setSize(ARR);
              n.setPreferredSize(ARR);
              n.setMaximumSize(ARR);
              n.setMinimumSize(ARR);
              n.setBounds((int)p.getX(), (int)p.getY(),
                  ARROW_SIZE, ARROW_SIZE);
              notes.put(p, n);
              stepChart.add(n);
              stepChart.setLayer(n, (int) (2000 + p.getY()));
            }
View Full Code Here

        Arrows a = Arrows.getArrowByColumn(ch.getStyle(), col);
       
        Point p = new Point(sX, sY);
        Rectangle sB = shadow.getBounds();
       
        NoteComponent n = notes.get(p);
        Syncs z = Syncs.getHighestEnum(beat);
       
        isSaved = false;
        mSave.setEnabled(true);
       
        if (n != null)
        {
          /*
           * No matter what, the old NoteComponent in use has to
           * go away. Remove it. At this point, determine if
           * the type to see if it's the same. If it is
           * the same, remove it from the collection.
           * Otherwise, replace it.
           */
          stepChart.remove(n);
          ch.getMeasure(measure).getBeat(beat).resetNote(col);
          if (n.getNote().equals(aNote))
          {
            notes.remove(p);
            updateStats();
            return;
          }
        }
        n = new NoteComponent(aNote, z, a);
        n.setPreferredSize(ARR);
        n.setSize(ARR);
        n.setMinimumSize(ARR);
        n.setMaximumSize(ARR);
        n.setBounds(sB);
       
        notes.put(p, n);
        stepChart.add(n);
        stepChart.setLayer(n, 2000 + sY);
       
        ch.getMeasure(measure).getBeat(beat).setNote(col, n.getNote());
        updateStats();
      }
View Full Code Here

              {
                continue ROW_LOOP;
              }
              Point p = new Point(j * ARROW_SIZE + ARROW_SIZE,
                  i * MAX_BEATS + k + ARROW_SIZE);
              NoteComponent n = new NoteComponent(c.getNote(j),
                  Syncs.getHighestEnum(k),
                  Arrows.getArrowByColumn(j, s));
              n.setSize(ARR);
              n.setPreferredSize(ARR);
              n.setMaximumSize(ARR);
              n.setMinimumSize(ARR);
              n.setBounds((int)p.getX(), (int)p.getY(),
                  ARROW_SIZE, ARROW_SIZE);
              notes.put(p, n);
              stepChart.add(n);
              stepChart.setLayer(n, (int) (2000 + p.getY()));
            }
View Full Code Here

TOP

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

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.