]> ruin.nu Git - moosique.git/blobdiff - MooViewCounter.java
some minor changes
[moosique.git] / MooViewCounter.java
index 237d52313f8e53afa96dd5a4ea33a81b2b34dd04..de745d2e94c6b163d53351170b5d1a5c1f10c672 100644 (file)
@@ -1,18 +1,32 @@
 import javax.swing.*;
+import java.awt.*;
 
-/*
+/**
  * 
  * 
  * @author  Andersson, Andreen, Lanneskog, Pehrson
  * @version 1
  */
  
-public class MooViewCounter {
+public class MooViewCounter extends JPanel {
 
-       /* 
+       /** 
         * Creates 
         */
-       public MooViewCounter () {
+       public MooViewCounter (int beatsPerMeasure1,int beatsPerMeasure2) {
+       
+       }
+
+       public void paintComponent(Graphics g) {
+               super.paintComponent(g);
 
+               if (!(g instanceof Graphics2D)) return;
+               Graphics2D g2 = (Graphics2D)g;
+               
+               for (int i = 0; i < 10; i++) {
+                       for (int j = 0; j < 10; j++) {
+                               // g2.drawLine(0,i*20, 
+                       }
+               }
        }
 }