X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=MooViewCounter.java;h=16d34b9c42b9abdb3f7767e73683af5c268faad4;hb=f520dce96c76f627677c5d9957e8371d02a31ec0;hp=8383b6cb44405a8749a0ba046101689c7d05e8d6;hpb=83ec11f99e143607d057db2a68c262ca9672e524;p=moosique.git diff --git a/MooViewCounter.java b/MooViewCounter.java index 8383b6c..16d34b9 100644 --- a/MooViewCounter.java +++ b/MooViewCounter.java @@ -46,6 +46,11 @@ public class MooViewCounter extends JPanel { } } + + /** + * Draws the ruler-like fields. + * @param g The Graphics object it operates on. + */ public void paintComponent(Graphics g) { super.paintComponent(g); if (!(g instanceof Graphics2D)) return; @@ -59,4 +64,4 @@ public class MooViewCounter extends JPanel { g2.drawLine(0, c * CELL_HEIGHT * measure, 30, c * CELL_HEIGHT * measure); // 1/1 } } -} \ No newline at end of file +}