X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;ds=sidebyside;f=MooViewCounter.java;h=2775027b2e0d1f64702ebad376c6a29ee3c4756b;hb=f852147b2a61dcfebc065b38dff854f609899ff0;hp=db6a036fb0fd43f65d51ab483f56c1fc154bedc5;hpb=4e7d6f8b7dd7fbcef2282674b5442d78cf220489;p=moosique.git diff --git a/MooViewCounter.java b/MooViewCounter.java index db6a036..2775027 100644 --- a/MooViewCounter.java +++ b/MooViewCounter.java @@ -1,25 +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 () { - + 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, + } + } } }